Plots.jl: Detailed control of looks

Created on 3 Jun 2016  Â·  3Comments  Â·  Source: JuliaPlots/Plots.jl

To make themes look exactly like their targets (ggplot2 for example) more detailed control of the looks of plots is needed. For example, I need to change the line width and style of the grid lines. What is the plans regarding such detailed control of the appearance of plots in Plots?

Most helpful comment

Similar to how foreground colors have cascading defaults set to 'match', I
think I'll probably change border, grid, tick lines, etc to be a
Plots.Stroke, which defaults to match. So 'grid_stroke_vertical' would
match 'grid_stroke' by default, which would match 'foreground_stroke'. The
associated color args would become aliases to the appropriate stroke arg.
You would be able to pass any valid inputs to the 'stroke' method, and the
remainder would get defaults.

Then we just need to support everything in the backends...

On Friday, June 3, 2016, Patrick Kofod Mogensen [email protected]
wrote:

To make themes look exactly like their targets (ggplot2 for example) more
detailed control of the looks of plots is needed. For example, I need to
change the line width and style of the grid lines. What is the plans
regarding such detailed control of the appearance of plots in Plots?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tbreloff/Plots.jl/issues/296, or mute the thread
https://github.com/notifications/unsubscribe/AA492ifniFQ4R5rU3oKfMcY7OROitCvhks5qH-ulgaJpZM4ItVHI
.

All 3 comments

Similar to how foreground colors have cascading defaults set to 'match', I
think I'll probably change border, grid, tick lines, etc to be a
Plots.Stroke, which defaults to match. So 'grid_stroke_vertical' would
match 'grid_stroke' by default, which would match 'foreground_stroke'. The
associated color args would become aliases to the appropriate stroke arg.
You would be able to pass any valid inputs to the 'stroke' method, and the
remainder would get defaults.

Then we just need to support everything in the backends...

On Friday, June 3, 2016, Patrick Kofod Mogensen [email protected]
wrote:

To make themes look exactly like their targets (ggplot2 for example) more
detailed control of the looks of plots is needed. For example, I need to
change the line width and style of the grid lines. What is the plans
regarding such detailed control of the appearance of plots in Plots?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tbreloff/Plots.jl/issues/296, or mute the thread
https://github.com/notifications/unsubscribe/AA492ifniFQ4R5rU3oKfMcY7OROitCvhks5qH-ulgaJpZM4ItVHI
.

Originally I was weary of even asking because of the whole 5 backend do it in 7 different ways ;)

closing via #1006

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kleinschmidt picture kleinschmidt  Â·  3Comments

mkborregaard picture mkborregaard  Â·  3Comments

Krastanov picture Krastanov  Â·  3Comments

apalugniok picture apalugniok  Â·  3Comments

nebuta picture nebuta  Â·  3Comments