GiovineItalia / Gadfly.jl

Crafty statistical graphics for Julia.
http://gadflyjl.org/stable/
Other
1.9k stars 251 forks source link

Style sheets for Gadfly #827

Open CorySimon opened 8 years ago

CorySimon commented 8 years ago

Matplotlib has these style sheets, e.g. plt.style.use('ggplot') and it changes the style of the plots. I was thinking it would be cool to have these for Gadfly. If there is a list of settings that you always pass into your Gadfly plots to make them look better, e.g. plot(x=x, y=y, Geom.line, style), where style = Theme(default_color=colorant"red", background_color=colorant"gray"), please post them here. Maybe we could conglomerate a few and make it easy for the user to choose what he or she wants as a style for their plots.

I would post my style, but I haven't found one that I like, so I am hoping someone here will volunteer theirs! My goal is to use Gadfly for all of my plots in my next publication, but there is some styling to do, e.g. making the bounding box more visible.

tlnagy commented 8 years ago

Have you made any progress on finding your style? I'm also interested in using Gadfly for my next publication.

CorySimon commented 8 years ago

Great! I've been using:

Theme(background_color=colorant"white", panel_stroke=colorant"black", 
    grid_color=colorant"Gray", line_width=.7mm, 
    major_label_font_size=15pt, minor_label_font_size=14pt,
    minor_label_color=colorant"black", major_label_color=colorant"black", 
    key_title_color=colorant"black", key_label_color=colorant"black")

How about you?

tlnagy commented 8 years ago

That's very nice! I would personally like to not have black borders on the top and on the right. I don't think that's possible right now in Gadfly.

I ended up editing most of my figures in Inkscape after making them.