Skip to content

figures not showing in IJulia #118

Closed

Description

@axsk

image

Ran into this problem about two weeks ago, and it still persists with newest Julia nightly and Pkg.update(). (Gadfly plots are working..)
Is there anyone else who can confirm this?

Here the code:

using PyPlot
x = linspace(0,2*pi,1000)
y = sin(3*x + 4*cos(2*x));
plot(x, y, color="red", linewidth=2.0, linestyle="--")

Activity

  1. stevengj commented on Mar 2, 2015

    @stevengj
    Member

    I just ran into this myself. On my laptop (where I had been having other package problems), I got rid of it by deleting the ~/.julia directory and re-installing the packages, but now I ran into it on my other machine too; I'm not sure what is going on yet.

    I am on a Mac; is that the case for you too?

  2. axsk commented on Mar 2, 2015

    @axsk
    Author

    I am using 32bit-Julia on Windows8.
    Maybe #119 is connected to this problem, as both involve IJulia.

  3. stevengj commented on Mar 2, 2015

    @stevengj
    Member

    The error seems related to PNG (binary image) output, as SVG (ascii data) output works (do PyPlot.svg(true))

  4. stevengj commented on Mar 2, 2015

    @stevengj
    Member

    It seems to come from JuliaPy/PyCall.jl@183c915 ... reverting this patch fixes the problem (on Python 2). I think that the problem is that on Python 2 it is trying to convert binary data to a UTF-8 string and getting confused by the encoding. I need to figure out the correct conversion here.

  5. stevengj commented on Mar 3, 2015

    @stevengj
    Member

    Should be fixed by the latest PyCall version.

  6. axsk commented on Mar 25, 2015

    @axsk
    Author

    Although late, thank you!
    It's working :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions