Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documented / validated plot attributes (#3626)
* add second `@recipe` method * rename function * implement recipe and keyword validation * fix some bugs * rename for clarity * change Scatter recipe * use argument symbols correctly * change Lines * change linesegments * do a bunch of plots more * fix text bugs * splice in internal attribute after mesh creation * add allowlist * fix text * add attribute deprecation mechanism * add explanation * remove `text` for GLMakie * fix contour volume attributes * add rasterize to allowlist * add `enable_depth` to volume * add `matcap` to mesh * set `fxaa = false` on scatter, lines, linesegments, text * move fxaa after mixins * fix keywords * remove markersize attribute * remove invalid markersize * add depthsorting to attributes for scatter * fix forwarded attributes * add absorption to volume * don't use `used_attributes` for datashader canvas convert * fix positional args * image * add better printing and rudimentary tests * make allowlist a tuple for fewer allocations * attribute names tuple instead of set * make deprecations also a tuple * avoid intermediate vector to speed up attribute creation * apply same optimization to blocks * implement mechanism to augment user docstring * delete manually written out attribute docs * use funcsym in docstring * incorporate attribute docs into docstring again * use equal * add changelog * introduce `DocumentedAttributes` with macro * add function to access `DocumentedAttributes` of a recipe * fix module mutation problem for now * move definition behind PlotType * return Attributes instead of Dict * convert wireframe recipe * close over reference * don't include prereleases in benchmark, failed with 1.11 alpha * stringify default expr * convert arrows * add docs * directly convert default exprs to strings * convert ablines * print wrong attribute in red * convert annotations * convert arc * remove attributes in arrows docstring * convert band * fix escaping issue * convert barplot * convert bracket * fix barplot usage in hist * convert contourf * typo * convert contour * fix waterfall * comment out arrows test * convert datashader * convert errorbar and rangebar * convert hvlines * convert hvspan * convert pie * convert rainclouds * convert scatterlines * convert series * convert spy * convert stairs * convert stem * convert streamplot * convert timeseries * convert tooltip * convert tricontourf * add transformation to allowlist * convert triplot * convert volumeslices * convert voronoiplot * convert waterfall * convert boxplot * convert crossbar * convert density * convert qqplot and qqnorm * convert ecdfplot * convert hexbin * convert hist * convert violin * improve error message printing * add docstrings for mutating functions and plot types * add missing docstrings * reconnect lines docstring * move functions out of macro * fix arrows example and adjust docs * put necessary functions back into macro --------- Co-authored-by: Simon <[email protected]>
- Loading branch information