Skip to content

Axes #739

@almarklein

Description

@almarklein

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 😉):

image

Example from vispy:

image

I will update this text as I collect more info and converge on a plan.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions