-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improving ggplot2 theme #30
Conversation
Great effort 👍 It's definitely not easy to get this to match on all backends, but it's a clear improvement already |
with JuliaPlots/Plots.jl/pull/1787 it will look like this. Problems:
(before the PR the axes looked like this: PyPlot is unchanged. Problem: currently doesn't handle minor grid and ticks |
Should we just merge now, or do you have other things planned here? |
This depends on JuliaPlots/Plots.jl/pull/1788. It looks good on GR and PyPlot. It doesn't look good on PGFPlots. It probably cannot handle I should probably fix the problem with pgfplots before this gets merged. I haven't checked with the other backends. |
Could you just check the rgb values of |
I removed the dependency on the minor-tick-PR in Plots and followed @mkborregaard's advice. The theme now look semi-nice on PGFEDIT: with JuliaPlots/Plots.jl#1850 the axis will have the correct color Improvements (minor ticks, axis color on pgfplot) are left for future work. |
Nice - what do you say we merge this now? |
The blue color is a little off - not sure if that could be quickly fixed. |
Which blue color? I am fine with merging otherwise. |
Ah lol I see the palette (the colors of the points) is just Plots' default. If you see the other themes they also add palettes (see e.g. https://github.com/JuliaPlots/PlotThemes.jl/blob/94e6427befef28433bdc0dbc23d4adaa543e47aa/src/wong.jl ) so that the dots get the right color. |
I see, I found this: https://stackoverflow.com/a/8197706 Is the hcl color wheel implemented somewhere already? I suggest merging this and leaving the rest for a separate PR. |
Not as such but I think it corresponds to the |
Ok, I'll probably tackle this at a later point. Feel free to merge this ;-) |
Great! |
Awesome! |
Awesome! Statisticians are now less likely to be mocked for using Julia ;) |
@greimel hi, pyplot now somewhat supports the minorgrids JuliaPlots/Plots.jl#2621 |
I would like to improve the ggplot2 theme.
This is the first step.
Old
:gglot2
(pyplot()
)New
:ggplot2
(pyplot()
)Main differences
Does someone know the
Julia
equivalent ofgrey30
,grey90
, etc? I translated it togrey$x == plot_color(:black, 1 - x)
.Actual
ggplot2
Unfortunately, it is not equally nice on all backends.
(axis color = white and tick color = gray)
Still missing:
Note: the file in the test folder will be removed eventually. I will just keep it as long as I am working on this.