-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Description
The current documentation for attributes could use some refreshing.
- Most attributes cannot be searched directly in the search bar (known problem). Ideally the way that attributes are documented should be done in a way where they can be searched. Maybe we should replace the table with something closer to the API page?
- Attributes are not organized well. Organizing them into series, plot, subplot, and axis is something I have found very confusing.
- In particular, typing something like
plotattr(:Subplot)in the REPL outputs a large list of attributes. This hinders discoverability and accessibility. In my experience, I have always had to look through all four tabs in the docs to look for an attribute. - What would be better for
plotattr(:Subplot)is to reorganize the categories into things like Annotation, Background, Foreground, Colorbar, Legend, Title, as well as a few others. A lot of the attribute names in this list heavily suggest this anyway. This way, when one needs to find attributes related to the legend, there is a clearly labeled tab in the docs for that, or typing e.g.plotattr(:Legend)would yield all of its relevant attributes (cf. this issue)
- In particular, typing something like
- The types required for the attributes are not always intuitive. For example,
colorbar_tickscould use some explaining on the different possible argument types, asUnion{Symbol, Tuple{AbstractVector{Real}, AbstractVector{AbstractString}}, AbstractVector{Real}}is not obvious how to interpret. Also, a lot of attributes have no description.
A documentation style like that on the API page would be able to solve these problems simply by allowing more room for the description, explanation of types, and examples. Categorizing them into titles like Colorbar, Legend, etc. would keep these pages manageable in length.
mkborregaard
Metadata
Metadata
Assignees
Labels
No labels