cellcanvas / cellcanvas/cellier

Coordinate system discussion

Open
#38 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
9
Forks
2
Avg merge
3d 11h
Merged PRs (30d)
4

Description

In this issue, I discuss the coordinate system we use in the world space. In particular ensuring that different types of data (e.g., points and images) overlay correctly.

Other libraries:

**napari**
napari is an image viewer built on top of vispy. napari uses a zyx coordinate convention. As such they flip the "y" axis (i.e., 1 axis) in 2D view and the "z" axis (i.e., 0 axis) in 3D view (as of 0.6.0). To ensure the coordinate data (e.g., points) overlay correctly with the images, they flip the axis order when sending the data to vispy for rendering (e.g., [here](https://github.com/napari/napari/blob/4a764140b40d7fa0319d26d56cca7410b90ae222/src/napari/_vispy/layers/points.py#L79-L87))

**pygfx**
pygfx is a visualization library. By default pygfx has a right-handed coordinate system (https://github.com/pygfx/pygfx/issues/460), but is configurable, so dependent applications can choose for themselves.

**fastplotlib**
fastplotlib is a plotting library built on top of pygfx. They decided to flip the y-axis for plots with images ([comment](https://github.com/fastplotlib/fastplotlib/issues/268#issuecomment-1728524325)).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.