From 0db9710e0f385d2c750809a977ce2ec276013a18 Mon Sep 17 00:00:00 2001 From: Marcelo Forets Date: Wed, 6 Dec 2017 17:46:35 -0300 Subject: [PATCH 1/2] say how to get the list of attributes in `?plot` --- src/plot.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plot.jl b/src/plot.jl index 38034bec..25742a6a 100644 --- a/src/plot.jl +++ b/src/plot.jl @@ -33,7 +33,7 @@ convertSeriesIndex(plt::Plot, n::Int) = n """ -The main plot command. Use `plot` to create a new plot object, and `plot!` to add to an existing one: +The main plot command. Use `plot` to create a new plot object, and `plot!` to add to an existing one: ``` plot(args...; kw...) # creates a new plot window, and sets it to be the current @@ -42,7 +42,8 @@ The main plot command. Use `plot` to create a new plot object, and `plot!` to a ``` There are lots of ways to pass in data, and lots of keyword arguments... just try it and it will likely work as expected. -When you pass in matrices, it splits by columns. See the documentation for more info. +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`. """ # this creates a new plot with args/kw and sets it to be the current plot From 986bd02e5eca411119a24e33ea3d05e86bccf8d6 Mon Sep 17 00:00:00 2001 From: Marcelo Forets Date: Wed, 6 Dec 2017 22:33:47 -0300 Subject: [PATCH 2/2] Update plot.jl --- src/plot.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plot.jl b/src/plot.jl index 25742a6a..06affdbe 100644 --- a/src/plot.jl +++ b/src/plot.jl @@ -43,7 +43,8 @@ The main plot command. Use `plot` to create a new plot object, and `plot!` to ad There are lots of ways to pass in data, and lots of keyword arguments... just try it and it will likely work as expected. 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`. +function, where `attr` is the symbol `:Series:`, `:Subplot:`, `:Plot` or `:Axis`. Pass any attribute to `plotattr` +as a String to look up it's docstring; e.g. `plotattr("seriestype")`. """ # this creates a new plot with args/kw and sets it to be the current plot