Skip to content

Updates for negative axis labels#125

Merged
K-Meech merged 4 commits into
mainfrom
km/axis-labels
Jun 8, 2026
Merged

Updates for negative axis labels#125
K-Meech merged 4 commits into
mainfrom
km/axis-labels

Conversation

@K-Meech

@K-Meech K-Meech commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Closes #106

In #106, we'd noted that there were sometimes issues with the axis labels when displaying images with different numbers of dimensions. Looking at the release notes for napari 0.7.0 it seems these issues should have been fixed by their move to using negative axis labels.

To match these new changes, I've updated affected parts of the multi-dimensional images episode including:

  • explaining the difference between positive and negative indexes
  • updating images that show a slider underneath (so the axis label shown to the left of the slider is now negative)

Even though napari now uses negative indexes thoughout its UI, I thought it was still important to explain positive indexes too (as this is what they will encounter most often using python / numpy etc directly)

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Thank you!

Thank you for your pull request 😃

🤖 This automated message can help you check the rendered files in your submission for clarity. If you have any questions, please feel free to open an issue in {sandpaper}.

If you have files that automatically render output (e.g. R Markdown), then you should check for the following:

  • 🎯 correct output
  • 🖼️ correct figures
  • ❓ new warnings
  • ‼️ new errors

Rendered Changes

🔍 Inspect the changes: https://github.com/HealthBioscienceIDEAS/microscopy-novice/compare/md-outputs..md-outputs-PR-125

The following changes were observed in the rendered markdown documents:

 fig/brain-napari.png        | Bin 76000 -> 87715 bytes
 fig/cells-napari.png        | Bin 239735 -> 239140 bytes
 fig/cells-time-napari.png   | Bin 192709 -> 194260 bytes
 fig/plate1-czi-napari.png   | Bin 307952 -> 289758 bytes
 md5sum.txt                  |   2 +-
 multi-dimensional-images.md |  55 +++++++++++++++++++++++++++++++++-----------
 6 files changed, 42 insertions(+), 15 deletions(-)
What does this mean?

If you have source files that require output and figures to be generated (e.g. R Markdown), then it is important to make sure the generated figures and output are reproducible.

This output provides a way for you to inspect the output in a diff-friendly manner so that it's easy to see the changes that occur due to new software versions or randomisation.

⏱️ Updated at 2026-06-05 12:47:16 +0000

@stellaprins stellaprins left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Description looks good to me.

There's still a bunch of screenshots (e.g. episodes\fig\instance-seg-napari.png) that have an index label of 0 instead of what now would be -3.

I would be surprised though if this would confuse anyone? Especially as the emphasis is not so much on the dimensions there.

@K-Meech

K-Meech commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @stellaprins ! Yes I agree - I only updated the screenshots on episodes where we directly refer to the dimensions / channel axes etc. I figured it wasn't worth updating all the other screenshots for now, as it would take a long time and, as you said, it's unlikely to cause confusion.

@stellaprins

Copy link
Copy Markdown
Collaborator

Sounds sensible to me.

For a future iteration / new material, we could consider adding pictures of the layers rather than screenshots including the napari GUI where appropriate to avoid things getting out of date.

@K-Meech
K-Meech merged commit 70164e5 into main Jun 8, 2026
6 of 7 checks passed
@K-Meech
K-Meech deleted the km/axis-labels branch June 8, 2026 11:52
github-actions Bot pushed a commit that referenced this pull request Jun 8, 2026
Auto-generated via `{sandpaper}`
Source  : 70164e5
Branch  : main
Author  : Kimberly Meechan <24316371+K-Meech@users.noreply.github.com>
Time    : 2026-06-08 11:52:18 +0000
Message : Merge pull request #125 from HealthBioscienceIDEAS/km/axis-labels

Updates for negative axis labels
github-actions Bot pushed a commit that referenced this pull request Jun 8, 2026
Auto-generated via `{sandpaper}`
Source  : fb60446
Branch  : md-outputs
Author  : GitHub Actions <actions@github.com>
Time    : 2026-06-08 11:54:26 +0000
Message : markdown source builds

Auto-generated via `{sandpaper}`
Source  : 70164e5
Branch  : main
Author  : Kimberly Meechan <24316371+K-Meech@users.noreply.github.com>
Time    : 2026-06-08 11:52:18 +0000
Message : Merge pull request #125 from HealthBioscienceIDEAS/km/axis-labels

Updates for negative axis labels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Napari axis labels aren't always 0, 1, 2

2 participants