Intro
This is a meta-issue to collect thoughts about implementing axes.
Axes are important for downstream code like Fastplotlib. I think it makes sense to support the building blocks in pygfx itself, so that axes can be composed and configured with relative ease.
Tasks
Things that make up axes
Strict:
- Viewport (in 2D the axes is drawn over/around the scene).
- Lines for the axes.
- Ticks.
- Tick labels.
- Grid.
Somewhat broader:
- Title, x-label, y-label.
- Legend.
- Colorbar.
- UI elements.
Things to solve or account for
- Tick spacing.
- Log scale.
- Polar scale.
- Map projection.
- Layout (i.e. positioning title and labels)
- Twin axes (Left and right side with diff y-scales)
Links
Related issues and prs:
Techniques:
Implementations:
Example from visvis (we can do better 😉):
Example from vispy:
I will update this text as I collect more info and converge on a plan.
Intro
This is a meta-issue to collect thoughts about implementing axes.
Axes are important for downstream code like Fastplotlib. I think it makes sense to support the building blocks in pygfx itself, so that axes can be composed and configured with relative ease.
Tasks
Things that make up axes
Strict:
Somewhat broader:
Things to solve or account for
Links
Related issues and prs:
Techniques:
Implementations:
Example from visvis (we can do better 😉):
Example from vispy:
I will update this text as I collect more info and converge on a plan.