Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions trackpy/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,7 @@ def plot_traj(traj, colorby='particle', mpp=None, label=False,
_set_labels(ax, '{} [px]', pos_columns)
mpp = 1. # for computations of image extent below
else:
if mpl.rcParams['text.usetex']:
_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!

# Background image
if superimpose is not None:
ax.imshow(superimpose, cmap=plt.cm.gray,
Expand Down
Loading