Skip to content

Instantly share code, notes, and snippets.

@alstat
Last active March 27, 2016 00:33
Show Gist options
  • Save alstat/e797a104f7569037f721 to your computer and use it in GitHub Desktop.
Save alstat/e797a104f7569037f721 to your computer and use it in GitHub Desktop.
using Gadfly
using Distributions
function plot_theme()
Theme(panel_fill = colorant"#3B444B", default_color = colorant"#DE3163",
grid_color = colorant"#848482")
end
x = rand(Dirichlet([10; 1; 1]), 3000)
# View the samples in yz plane
myplot = plot(x = x1[2, :], y = x[3, :], Guide.xlabel("y"), Guide.ylabel("z"), plot_theme)
draw(SVG("myplot.svg", 6inch, 4inch), myplot)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment