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:
![grafik](https://private-user-images.githubusercontent.com/19879328/237150971-a8050c34-0428-4a7b-b5b2-3a33b3752929.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjExMzA0MzksIm5iZiI6MTcyMTEzMDEzOSwicGF0aCI6Ii8xOTg3OTMyOC8yMzcxNTA5NzEtYTgwNTBjMzQtMDQyOC00YTdiLWI1YjItM2EzM2IzNzUyOTI5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE2VDExNDIxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgzNTcxNWUxNzc0ODNjMzhjNjY3OTVlMzkwNGY5NDcwZTY0Njg1Y2YyZTM2NjJjZWNkMGI2NWJjMzliZjcxZWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.B5IAJNipHc7QhDD1L9OefENp_SP5DAgS-PDhTjNgDJ0)
The
![grafik](https://private-user-images.githubusercontent.com/19879328/237152254-e63c7090-3cf8-4fbc-8333-af3f31340445.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjExMzA0MzksIm5iZiI6MTcyMTEzMDEzOSwicGF0aCI6Ii8xOTg3OTMyOC8yMzcxNTIyNTQtZTYzYzcwOTAtM2NmOC00ZmJjLTgzMzMtYWYzZjMxMzQwNDQ1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE2VDExNDIxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRiYWMwZTA1YWYzZTMxYWQwMmJkMjU3MWY3M2IyM2QxZmNiMTU4YzAzYzJjMDg1YTQwOThlYzNhODk5ZmU4ZDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.TuO5dd41d994LFuCF-qeRW7Ksg3OSQGDqTNe7-aeD20)
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.