Skip to content

Instantly share code, notes, and snippets.

@Axect
Created August 20, 2017 08:34
Show Gist options
  • Save Axect/4d0ba7f6c4f2e78419d9e8d6c6e2dcb3 to your computer and use it in GitHub Desktop.
Save Axect/4d0ba7f6c4f2e78419d9e8d6c6e2dcb3 to your computer and use it in GitHub Desktop.
Gadfly Tutorial
using Gadfly, DataFrames
X = 0:0.01:2pi
Y = sin.(X);
df = DataFrame(X=X, Y=Y)
pl = plot(df, x=:X, y=:Y, Geom.line, Guide.title("Gadfly Tutorial"))
draw(SVG("tutorial.svg", 1000px, 600px), pl)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment