GiovineItalia / Gadfly.jl

Crafty statistical graphics for Julia.
http://gadflyjl.org/stable/
Other
1.9k stars 250 forks source link

MethodError(append!... with Geom.vline #297

Open alexebird opened 10 years ago

alexebird commented 10 years ago

I'm using JuliaStudio to do some plotting and trying to draw vlines along side my data. Today is the first time I've used Julia so I'm not familiar with any of this, but so far I'm loving Gadfly.

Here is the code that is giving me trouble:

# Each df_* variable is a DataFrame
df = vcat(df_ddr, df_ddr_ema,
          df_dmr, df_dmr_ema,
          df_pdr, df_pdr_ema,
          df_pmr, df_pmr_ema)

p = plot(df, x="time", y="rssi", color="label", xintercept=[4, 6], Geom.vline, Geom.line)

draw(PNG("plot.png", 1600px, 1200px), p)  # line 83

And the error:

LoadError("/Users/alexb/.../prox.jl",83,MethodError(append!,([0.0,0.01550203561782837,0.0225....

It works fine without the Geom.vline argument.

Any suggestions as to what is going on would be really helpful. Thanks!

dcjones commented 10 years ago

Sorry to not respond earlier. I just tagged a version that fixes a similar error. Could you try Pkg.update() and see if this is still broken?

If it is still broken, I may need the data you're plotting to reproduce it.

alexebird commented 10 years ago

I had to abandon Julia for R due to time constraints, but I will try to see if this fixes what I was seeing at some point.

aviks commented 9 years ago

Hi @alexebird do you suppose this issue is fixed and can be closed?

alexebird commented 9 years ago

Sure. I haven't had a chance to check for sure though.

On Thu, Dec 11, 2014 at 1:55 PM, Avik Sengupta notifications@github.com wrote:

Hi @alexebird https://github.com/alexebird do you suppose this issue is fixed and can be closed?

— Reply to this email directly or view it on GitHub https://github.com/dcjones/Gadfly.jl/issues/297#issuecomment-66696179.