diff --git a/src/consts.jl b/src/consts.jl index 264d5b54a..19d566986 100644 --- a/src/consts.jl +++ b/src/consts.jl @@ -91,3 +91,7 @@ end # add all non_underscored forms to the _keyAliases add_non_underscore_aliases!(_keyAliases) + +function _generate_doclist(attributes) + replace(join(sort(collect(attributes)), "\n- "), "_" => "\\_") +end diff --git a/src/plot.jl b/src/plot.jl index 394475b7c..2f996e8da 100644 --- a/src/plot.jl +++ b/src/plot.jl @@ -78,6 +78,21 @@ There are lots of ways to pass in data, and lots of keyword arguments... just tr When you pass in matrices, it splits by columns. To see the list of available attributes, use the `plotattr(attr)` function, where `attr` is the symbol `:Series`, `:Subplot`, `:Plot`, or `:Axis`. Pass any attribute to `plotattr` as a String to look up its docstring, e.g., `plotattr("seriestype")`. + +# Extended help + +## Series attributes +- $(_generate_doclist(_all_series_args)) + +## Axis attributes +Prepend these with the axis letter (x, y or z) +- $(_generate_doclist(Plots._all_axis_args)) + +## Subplot attributes +- $(_generate_doclist(Plots._all_subplot_args)) + +## Plot attributes +- $(_generate_doclist(Plots._all_plot_args)) """ function plot(args...; kw...) @nospecialize