-
Notifications
You must be signed in to change notification settings - Fork 250
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
Stroke and Stroke Color #1268
Comments
I agree that the description should be changed to stroke. I don't know the answer for your q. about using Did you notice that |
@Mattriks Yea, it does seem apply to error bars only. Here is an example from R's ggplot2 library: Stroke is used to modify the width of the border but not color. There is a great example at the bottom:
I like this better! |
You can do the same in Gadfly:
|
With recent improvements to Gadfly e.g. keys (soon to be tagged #1378), here is an update of this plot. Gadfly.push_theme(
Theme(default_color="pink", discrete_highlight_color=c->"black", point_size=4.5pt,
panel_fill="gray92", grid_color="white", grid_line_style=:solid)
)
plot(mtcars, x=:MPG, y=:WT, shape=:Cyl,
layer(style(default_color=colorant"black", point_size=1pt)),
layer(), Scale.shape_discrete(levels=[4,6,8])
) |
Hello,
I just tried to find a way to change the outline or border color of a point. In the Themes section of the help menu, this option is disguised under
discrete_highlight_color
. The most common name for border or outline color is "stroke". It is used in Illustrator, Matlab, Matplotlib, etc...What is the rationale behind
discrete_highlight_color
nomenclature? I think it should be called "stroke_color" or simply "stroke".Also the description is confusing: "Color used to outline plot geometry. This is a function that alters (e.g. darkens) the fill color of the geometry. (Function)". First part is talking about "outline of the plot geometry" and then it says "alters the fill color of the geometry". stroke and fill have specific meanings in semiological representation so I think the description should be altered. I am curious if there are other reasons for naming it in a particular way.
The text was updated successfully, but these errors were encountered: