Skip to content

Reorganize attribute documentationΒ #323

@Ininterrompue

Description

@Ininterrompue

The current documentation for attributes could use some refreshing.

  1. 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?
  2. 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)
  3. The types required for the attributes are not always intuitive. For example, colorbar_ticks could use some explaining on the different possible argument types, as Union{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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions