Add width and baseline properties documentation #3358
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
current documentation contains undefined links:
The
baseline
property just needed a link to Coordinate properties. For thewidth
property I created a newIntervalProperty
class and added the corresponding section to the properties tutorial:I couldn't think of any meaningful test, so I'm afraid test coverage will slightly decrease.
I noticed that the
legend
andnormed
class variables are defined without a leading underscore, but theOffset
andFontSize
classes use_legend
:seaborn/seaborn/_core/properties.py
Lines 317 to 325 in 16c025d
I have stuck to the variant without underscore as defined in the base class in this PR.