-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
Restructure marker, line, fill, error attributes #4489
Draft
BeastyBlacksmith
wants to merge
15
commits into
master
Choose a base branch
from
bbs/move_attributes
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 10 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
f959a92
add attributes via `@add_attributes`
BeastyBlacksmith e680651
use kwdef in add_attributes
BeastyBlacksmith b69d472
complete marker attributes
BeastyBlacksmith da25f97
rename yfill -> fill
BeastyBlacksmith 355ddb0
add alias_dict to add_attributes
BeastyBlacksmith 97531b6
add some tests
BeastyBlacksmith 9aa3830
make aliases work
BeastyBlacksmith 065da23
complete legend aliases
BeastyBlacksmith f324f36
add aliases to plotattr
BeastyBlacksmith 3cbd484
move aliases
BeastyBlacksmith defba86
finish xerrorbar
BeastyBlacksmith 828afea
generalize fill and errorbar to all axis
BeastyBlacksmith a78e19c
fix errorbar marker definition
BeastyBlacksmith 3c29915
WIP
BeastyBlacksmith 99919a9
implement new errorbarstyles
BeastyBlacksmith File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -6,22 +6,22 @@ const _arg_desc = KW( | |||||
:seriescolor => "Color Type. The base color for this series. `:auto` (the default) will select a color from the subplot's `color_palette`, based on the order it was added to the subplot", | ||||||
:seriesalpha => "Number in [0,1]. The alpha/opacity override for the series. `nothing` (the default) means it will take the alpha value of the color.", | ||||||
:seriestype => "Symbol. This is the identifier of the type of visualization for this series. Choose from $(_allTypes) or any series recipes which are defined.", | ||||||
:linestyle => "Symbol. Style of the line (for path and bar stroke). Choose from $(_allStyles)", | ||||||
:linewidth => "Number. Width of the line (in pixels)", | ||||||
:linecolor => "Color Type. Color of the line (for path and bar stroke). `:match` will take the value from `:seriescolor`, (though histogram/bar types use `:black` as a default).", | ||||||
:linealpha => "Number in [0,1]. The alpha/opacity override for the line. `nothing` (the default) means it will take the alpha value of linecolor.", | ||||||
:fillrange => "Number or AbstractVector. Fills area between fillrange and y for line-types, sets the base for bar/stick types, and similar for other types.", | ||||||
:fillcolor => "Color Type. Color of the filled area of path or bar types. `:match` will take the value from `:seriescolor`.", | ||||||
:fillalpha => "Number in [0,1]. The alpha/opacity override for the fill area. `nothing` (the default) means it will take the alpha value of fillcolor.", | ||||||
:markershape => "Symbol, Shape, or AbstractVector. Choose from $(_allMarkers).", | ||||||
:fillstyle => "Symbol. Style of the fill area. `nothing` (the default) means solid fill. Choose from :/, :\\, :|, :-, :+, :x", | ||||||
:markercolor => "Color Type. Color of the interior of the marker or shape. `:match` will take the value from `:seriescolor`.", | ||||||
:markeralpha => "Number in [0,1]. The alpha/opacity override for the marker interior. `nothing` (the default) means it will take the alpha value of markercolor.", | ||||||
:markersize => "Number or AbstractVector. Size (radius pixels) of the markers", | ||||||
:markerstrokestyle => "Symbol. Style of the marker stroke (border). Choose from $(_allStyles)", | ||||||
:markerstrokewidth => "Number. Width of the marker stroke (border) in pixels", | ||||||
:markerstrokecolor => "Color Type. Color of the marker stroke (border). `:match` will take the value from `:foreground_color_subplot`.", | ||||||
:markerstrokealpha => "Number in [0,1]. The alpha/opacity override for the marker stroke (border). `nothing` (the default) means it will take the alpha value of markerstrokecolor.", | ||||||
:line_style => "Symbol. Style of the line (for path and bar stroke). Choose from $(_allStyles)", | ||||||
:line_width => "Number. Width of the line (in pixels)", | ||||||
:line_color => "Color Type. Color of the line (for path and bar stroke). `:match` will take the value from `:seriescolor`, (though histogram/bar types use `:black` as a default).", | ||||||
:line_alpha => "Number in [0,1]. The alpha/opacity override for the line. `nothing` (the default) means it will take the alpha value of linecolor.", | ||||||
:yfill_range => "Number or AbstractVector. Fills area between fillrange and y for line-types, sets the base for bar/stick types, and similar for other types.", | ||||||
:yfill_color => "Color Type. Color of the filled area of path or bar types. `:match` will take the value from `:seriescolor`.", | ||||||
:yfill_alpha => "Number in [0,1]. The alpha/opacity override for the fill area. `nothing` (the default) means it will take the alpha value of fillcolor.", | ||||||
:marker_shape => "Symbol, Shape, or AbstractVector. Choose from $(_allMarkers).", | ||||||
:yfill_style => "Symbol. Style of the fill area. `nothing` (the default) means solid fill. Choose from :/, :\\, :|, :-, :+, :x", | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [JuliaFormatter] reported by reviewdog 🐶
Suggested change
|
||||||
:marker_color => "Color Type. Color of the interior of the marker or shape. `:match` will take the value from `:seriescolor`.", | ||||||
:marker_alpha => "Number in [0,1]. The alpha/opacity override for the marker interior. `nothing` (the default) means it will take the alpha value of markercolor.", | ||||||
:marker_size => "Number or AbstractVector. Size (radius pixels) of the markers", | ||||||
:marker_stroke_style => "Symbol. Style of the marker stroke (border). Choose from $(_allStyles)", | ||||||
:marker_stroke_width => "Number. Width of the marker stroke (border) in pixels", | ||||||
:marker_stroke_color => "Color Type. Color of the marker stroke (border). `:match` will take the value from `:foreground_color_subplot`.", | ||||||
:marker_stroke_alpha => "Number in [0,1]. The alpha/opacity override for the marker stroke (border). `nothing` (the default) means it will take the alpha value of markerstrokecolor.", | ||||||
:bins => "Integer, NTuple{2,Integer}, AbstractVector or Symbol. Default is :auto (the Freedman-Diaconis rule). For histogram-types, defines the approximate number of bins to aim for, or the auto-binning algorithm to use (:sturges, :sqrt, :rice, :scott or :fd). For fine-grained control pass a Vector of break values, e.g. `range(minimum(x), stop = maximum(x), length = 25)`", | ||||||
:smooth => "Bool. Add a regression line?", | ||||||
:group => "AbstractVector. Data is split into a separate series, one for each unique value in `group`", | ||||||
|
@@ -187,7 +187,7 @@ const _arg_desc = KW( | |||||
:showaxis => "Bool, Symbol or String. Show the axis. `true`, `false`, `:show`, `:hide`, `:yes`, `:no`, `:x`, `:y`, `:z`, `:xy`, ..., `:all`, `:off`", | ||||||
:widen => """ | ||||||
Bool, Number or :auto. Widen the axis limits by a small factor to avoid cut-off markers and lines at the borders. | ||||||
If set to `true`, scale the axis limits by the default factor of $(default_widen_factor). | ||||||
If set to `true`, scale the axis limits by the default factor of $(default_widen_factor). | ||||||
A different factor may be specified by setting `widen` to a number. | ||||||
Defaults to `:auto`, which widens by the default factor unless limits were manually set. | ||||||
See also the `scale_limits!` function for scaling axis limits in an existing plot. | ||||||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
[JuliaFormatter] reported by reviewdog 🐶