Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

mattpap
Copy link
Contributor

@mattpap mattpap commented Mar 1, 2025

This PR supersedes PR #13344.

This PR reuses most changes from earlier work, but approaches backwards compatibility in a different way. Arrow, Band, LabelSet and Whikser are preserved, but they are reimplemented using GlyphRenderer and appropriate glyphs (ArrroGlyph, BandGlyph, TextGlyph and WhiskerGlyph respectively). This is very easily possible due to Annotation, being a CompositeRenderer. Though minor changes were needed, because composite rendering wasn't utilized much previously.

This PR also allows for configurable auto ranging (Renderer.auto_range), so that glyph renderers constructed by annotations can be removed from range computations. This can, however, be useful on its own and the property is a part of the public API.

TODO:

  • screen and canvas coordinates

fixes #9955

@mattpap mattpap added this to the 3.8 milestone Mar 1, 2025
@mattpap mattpap changed the base branch from branch-3.7 to branch-3.8 March 7, 2025 07:55
@mattpap mattpap force-pushed the mattpap/9955_remove_data_annotations branch 2 times, most recently from e48f06c to 655b208 Compare March 18, 2025 09:57
@mattpap mattpap force-pushed the mattpap/9955_remove_data_annotations branch from 655b208 to 43b9f62 Compare July 18, 2025 12:25
@mattpap mattpap force-pushed the mattpap/9955_remove_data_annotations branch from 43b9f62 to 24f8ff2 Compare July 29, 2025 06:42
@mattpap mattpap modified the milestones: 3.8, 3.9 Aug 26, 2025
@mattpap mattpap changed the base branch from branch-3.8 to branch-3.9 August 29, 2025 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Annotations vs Glyphs for 3.0
1 participant