JuliaOpt / juliaopt-notebooks

A collection of IJulia notebooks related to optimization
89 stars 50 forks source link

bug in rocket notebook #14

Closed mlubin closed 9 years ago

mlubin commented 9 years ago

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

joehuchette commented 9 years ago

https://github.com/dcjones/Gadfly.jl/pull/660