-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plotting has several issues #4878
Comments
|
Thanks - started fresh, but Gadfly still does not plot. |
Compiling with Homebrew won't solve any of these problems. Your Julia installation is fine, it's the graphics packages you're having troubles with. |
Are you still getting this error:
Because if so, you've still got |
Regarding PyPlot, are you using anaconda? See #4116. I now use pyqt from Homebrew and PyPlot works fine. |
This error
is in Winston and should be fixed with PR #108 |
Note that I think John intends to point to JuliaGraphics/Winston.jl#108, which is pull request 108 from the Winston.jl repository. |
Hi staticfloat, 1 and 2 and 3: OK, thanks. I have the anaconda python 2.7.5. no more error for Gadfly, but still no output (nothing happens). Hi Andreas: I wouldn't mind trying to get a brew setup to work, but I don't know what I should do for that setup. Cheers, and thanks!
|
They changed some of the formulas for Qt very recently, so I only got it working after a brew update. I installed |
@hbauschke Outside of IJulia, I do not believe Gadfly displays the plots to the user; they are written to file. When you use the line Can you be more specific when you say "Julia bombs"? Can you invoke julia from a terminal so we can see what exactly happens after Julia exits? To do this, open up a new Terminal window, navigate to where you have stored the julia .app file, and run the julia executable (Note that I assume you have put it on your Desktop):
That's what it prints out on my machine. |
It doesn't look like there is anything to do for this in the core system; reopen if I'm wrong. |
Hi Elliot, I switched to the homebrew variant, and I don't get an error anymore. Thanks!
On 11/22/2013, 12:05 AM, Elliot Saba wrote:
Heinz Bauschke, Ph.D. Professor of Mathematics |
Sorry, forgot the actual output ~/Dropbox/Shared/springer(shared)/HeinzFinal> julia julia> using PyPlot julia> On 11/22/2013, 12:05 AM, Elliot Saba wrote:
Heinz Bauschke, Ph.D. Professor of Mathematics |
What is the workaround? On OSX 10.8 with anaconda, I get
|
@schuberm Those Can you plot from python? E.g. if you open a python shell, does this pop anything up: import matplotlib.pyplot as plt
plt.plot([4,2,3,1]) |
@staticfloat plotting in python does nothing. I guess my anaconda installation is messed up too. Turns out I'm good a breaking things. |
Don't worry about it; we've all been there. I'm not familiar enough with Anaconda to tell you how to fix it; but the search terms you should be looking for are "matplotlib backends". There are multiple libraries you can use as a backend to matplotlib, If you want to "just plot something already", you could try installing Winston: Pkg.add("Winston")
using Winston
plot([4,2,3,1]) That should pop something up on your screen, and might be all you need to get going. |
@staticfloat Python is fine, we were forgetting the plt.show() part. No change on the Julia side. |
Aha, I have interactive plotting enabled in my matplotlib rc file, so I don't need the I suggest you open an issue on the PyPlot issue tracker, as you will get the attention of the people who are more familiar with how that code works. They will be able to debug the specific issues you're having a lot better than I will. |
Hello, using Version 0.2.0 (2013-11-16 23:44 UTC)
on x86_64-apple-darwin12.5.0
and trying to do the plot examples, I have run into several issues:
1/ Winston - essentially works but there are warnings:
Warning: Possible conflict in library symbol dtrtri_
Warning: Possible conflict in library symbol dgetri_
Warning: Possible conflict in library symbol dgetrf_
2/ Gadfly - does not work see below
julia> using Gadfly
Warning: New definition
|(NAtype,Any) at /Users/bauschke/.julia/DataArrays/src/operators.jl:502
is ambiguous with:
|(Any,SynchronousStepCollection) at /Users/bauschke/.julia/BinDeps/src/BinDeps.jl:286.
To fix, define
|(NAtype,SynchronousStepCollection)
before the new definition.
Warning: New definition
|(Any,NAtype) at /Users/bauschke/.julia/DataArrays/src/operators.jl:502
is ambiguous with:
|(SynchronousStepCollection,Any) at /Users/bauschke/.julia/BinDeps/src/BinDeps.jl:283.
To fix, define
|(SynchronousStepCollection,NAtype)
before the new definition.
Warning: using Gadfly.plot in module Main conflicts with an existing identifier.
julia> draw(SVG("output.svg", 6inch, 3inch), plot([sin, cos], 0, 25))
ERROR: no method Curve(Array{Function,1},Int64,Dict{Any,Any})
in plot at /Users/bauschke/.julia/Winston/src/plot.jl:118
in plot at /Users/bauschke/.julia/Winston/src/plot.jl:142
3/ Gaston works - but there are warnings:
julia> using Gaston
Warning: using Gaston.plot in module Main conflicts with an existing identifier.
julia> Gaston.set_terminal("aqua")
WARNING: contains(collection, item) is deprecated, use in(item, collection) instead
in depwarn at deprecated.jl:29
in contains at reduce.jl:247
in validate_terminal at /Users/bauschke/.julia/Gaston/src/gaston_aux.jl:268
in set_terminal at /Users/bauschke/.julia/Gaston/src/gaston_config.jl:8
"aqua"
4/ Pyplot - crashes immediately with a "Fatal error"(? disappears quickly) after doing
using PyPlot
I am now trying to use homebrew to build julia. Is there any version for the Mac (Mavericks) out there that actually does do the examples?
Cheers,
Heinz.
The text was updated successfully, but these errors were encountered: