Skip to content

Instantly share code, notes, and snippets.

@aviks
Created May 27, 2014 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aviks/e749db08b64f266d83a7 to your computer and use it in GitHub Desktop.
Save aviks/e749db08b64f266d83a7 to your computer and use it in GitHub Desktop.
Gadfly bug
using Gadfly
using DataFrames
using Compose
using Datetime
x = Array(Any,100);
for i=100:-1:1
x[100-i+1] = string(today()-day(-1*(100-i)))
end
y = sort!(rand(100)*100)
df = DataFrame(x=x,y=y,signal=repmat(["Signal"],100))
p = plot(df,x="x",y="y",color="signal",Geom.line,Theme(key_position=:right,colorkey_swatch_shape=:circle))
draw(SVG("Test.svg",8inch,6inch),p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment