Gabriel, Any ideas about why Winston doesn't work?
plot([sin(a) for a in 0.0:0.1:2 * pi]) `set_source_rgb` has no method matching set_source_rgb(::CairoContext, ::Float64, ::Float64, ::Float64) in savepng at /Users/ericshain/.julia/v0.3/Winston/src/Winston.jl:1849 in writemime at /Users/ericshain/.julia/v0.3/Winston/src/Winston.jl:2638 in base64 at base64.jl:125 in display_dict at /Users/ericshain/.julia/v0.3/IJulia/src/execute_request.jl:34 Eric On Saturday, February 14, 2015 at 12:15:49 PM UTC-6, Gabriel Mitchell wrote: > > The Gadfly error message is correct. There indeed is no method with that > type signature. The closest thing would be something like: > > plot(x=[1:10],y=[1:10].^2) > > To get a list of methods you can call methods(plot). Better yet, check out > the github page or documentation for Gadfly: > https://github.com/dcjones/Gadfly.jl > http://gadflyjl.org/ > > Best, > G > > On Saturday, February 14, 2015 at 6:41:42 PM UTC+1, Eric S wrote: >> >> I've searched the group for answers but haven't figured this out. I'm >> trying to get inline graphics in an Julia Notebook. So far I've been unable >> to plot (inline or otherwise) with any of the graphics modules including >> Gadfly, PyPlot or Winston. I can plot in the terminal, but not in Julia >> Notebook. I usually get a message like (for Gadfly): >> >> "`plot` has no method matching plot(::Array{Float64,1}, >> ::Array{Float64,1}) >> while loading In[7], in expression starting on line 1" >> >> Some specifics, I'm running OS X 10.10.2 and Julia 0.3.5. >> >> I also have one other question, I know to use a module such as Gadfly you >> use "using Gadfly". Is there a way of disposing of that module if instead >> you want to shift to PyPlot? >> >> Thanks in advanced, >> >> Eric >> >
