JuliaOpt/juliaopt-notebooks

bug in rocket notebook

mlubin opened this issue · 1 comments

In the final cell:

The following aesthetics are required by Geom.line to be of equal length: x, y

while loading In[4], in expression starting on line 9

 in error at error.jl:21
 in assert_aesthetics_equal_length at /home/mlubin/.julia/v0.3/Gadfly/src/aesthetics.jl:181
 in render at /home/mlubin/.julia/v0.3/Gadfly/src/geom/line.jl:73
 in render at /home/mlubin/.julia/v0.3/Gadfly/src/geometry.jl:47
 in render_prepared at /home/mlubin/.julia/v0.3/Gadfly/src/Gadfly.jl:782
 in render at /home/mlubin/.julia/v0.3/Gadfly/src/Gadfly.jl:721
 in hstack at /home/mlubin/.julia/v0.3/Gadfly/src/Gadfly.jl:831

Seems to work if I change getValue(h)[1:n] (and others) to getValue(h)[:].

CC @IainNZ @juan-pablo-vielma