Skip to content

fix(plot): correctly render mu#797

Open
vivarose wants to merge 2 commits intosoft-matter:masterfrom
horowitz-lab:axislabels
Open

fix(plot): correctly render mu#797
vivarose wants to merge 2 commits intosoft-matter:masterfrom
horowitz-lab:axislabels

Conversation

@vivarose
Copy link
Contributor

@vivarose vivarose commented Nov 7, 2025

Close #678
correctly render mu symbol in plot labels

Close soft-matter#678
correctly render mu symbol in plot labels
trackpy/plots.py Outdated
_set_labels(ax, r'{} [\textmu m]', pos_columns)
else:
_set_labels(ax, r'{} [\xb5m]', pos_columns)
_set_labels(ax, r'{} [$\mu$m]', pos_columns)
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to write µm with a slanted 'mu' symbol µ m, which is not the correct prefix. Maybe you can simply replace r'{} [\xb5m]' by '{} [\xb5m]'.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Absolutely!

@T0T0R
Copy link
Contributor

T0T0R commented Mar 7, 2026

??
Maybe I was not right.
Well, if you have any idea why removing that tiny r caused some checks to fail, I'm all ears.

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.

strange axis labels when plotting with physical units

2 participants