-
Notifications
You must be signed in to change notification settings - Fork 204
flexible styles (e.g. a custom plot style) #245
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
Conversation
|
one of my users (@ebusato) asked whether it was possible to have a more "high energy physics"-y style for his plots. |
|
I'm OK with this. |
|
@eaburns what do you think? |
32dad3a to
f8a5887
Compare
| c.Fill(c.Rectangle.Path()) | ||
| } | ||
|
|
||
| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the extra nesting here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just to limit the scope of xpad and ypad. (so they aren't unadvertantly modified afterwards)
I can remove.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done (extra nesting removed)
|
Sorry I'm slow. My wife and I just had a baby, so it's been a very busy and sleepless week. I don't like GNU plot's style. That is one of the reasons I wrote my own plotting package to begin with. (Actually, Plotinum was my second plotting package, see https://code.google.com/archive/p/caml-spt/) That said, I don't have a problem with this type of change. While I can complain about an ugly style, I don't have the artistic ability actually create a beautiful one myself. That is why Plotters exist, so people with better taste than myself can make their own styles. This seems inline with that idea. Two things:
|
|
no worries (and congratulations!) wrt having the ticks inside/outside the data-canvas: we actually might need to support it, if/when we support multiple Y-axes (ie: if you put Y-axis-1 on the left and Y-axis-2 on the right) I am not hellbent on having a gnuplot-style, it's just the (general looking) style my community is used to. |
|
ping? |
|
Did we ever come up with a solution for my point 1, above? |
f8a5887 to
db6dd03
Compare
|
rebased against master (f1e699e) wrt your point 1 (silently ignoring plot parameters), pragmatically, it is inevitable, I believe, that some plotting style ignore some plot parameters (a style that doesn't display axes at all won't need axes' styles). what do you think about them ? |
db6dd03 to
0bfb59e
Compare
0bfb59e to
b9d5b59
Compare
b9d5b59 to
e1e8094
Compare
|
Today, I tried a bit harder to have a general I had to actually couple each of the "data" structs with the "style" structs (see so... while there was a nice side-effect of grouping the style related informations into "style" structs (potentially: no more @kortschak @eaburns PTAL. Can we please decide whether this is deemed useful or not? (if not then I can concentrate on providing that feature inside "my" |
|
ok. I'll integrate this into "my" |
This CL exports a few internals of
plot:plot.HorizontalAxisplot.VerticalAxisplot.Axisplot.Legend.Drawsuch that user-defined plot styles can be created.
an example of such a user-defined plot style has been added as
plotter.ExampleHistogramGnuplot.