-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Refactor marker and line attributes #4505
Open
BeastyBlacksmith
wants to merge
29
commits into
master
Choose a base branch
from
bbs/marknline
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.
+744
−613
Open
Changes from 15 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
0985edb
add attributes via `@add_attributes`
BeastyBlacksmith d12b770
use kwdef in add_attributes
BeastyBlacksmith 5dae3a3
complete marker attributes
BeastyBlacksmith 69e839a
rename yfill -> fill
BeastyBlacksmith aadc7a4
add alias_dict to add_attributes
BeastyBlacksmith 07aa435
add some tests
BeastyBlacksmith 7925968
make aliases work
BeastyBlacksmith f931f7a
complete legend aliases
BeastyBlacksmith dd1f611
add aliases to plotattr
BeastyBlacksmith 65fc04c
move aliases
BeastyBlacksmith 2ddf825
remove fill and errorbar
BeastyBlacksmith 0efda09
Revert "rename yfill -> fill"
BeastyBlacksmith 62fee9b
fix docstrings
BeastyBlacksmith 65fed0a
fix args test
BeastyBlacksmith f47764d
fix aliases, fill_z and filter compounds
BeastyBlacksmith 719f4b0
cosmetics
BeastyBlacksmith 38806ac
fix marker aliases in shapes
BeastyBlacksmith 5e1bd5e
wrap attributes in Attributes
BeastyBlacksmith 65116fb
move alias detection to DefaultDict
BeastyBlacksmith 867afa0
add test
BeastyBlacksmith 90bc39f
Merge remote-tracking branch 'origin/master' into bbs/marknline
BeastyBlacksmith bffd24d
make it precompile
BeastyBlacksmith 6dfba96
harmonize funciton
BeastyBlacksmith f737e0f
fix tests
BeastyBlacksmith 0150ad2
fix recipespipeline tests
BeastyBlacksmith 75db4f3
Merge branch 'master' into bbs/marknline
BeastyBlacksmith c49da28
adlust benchmarks, revert macro test
BeastyBlacksmith 33bae7f
don't dev Plots twice
BeastyBlacksmith 7705f8a
format
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
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.", | ||||||
: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.", | ||||||
: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).", | ||||||
:marker_shape => "Symbol, Shape, or AbstractVector. Choose from $(_allMarkers).", | ||||||
:fillstyle => "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
|
||||||
: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.", | ||||||
: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 🐶