Skip to content

Commit 64b7bae

Browse files
committed
fix(plot): correctly render mu
Close #678 correctly render mu symbol in plot labels
1 parent 42e5315 commit 64b7bae

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

trackpy/plots.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,7 @@ def plot_traj(traj, colorby='particle', mpp=None, label=False,
317317
_set_labels(ax, '{} [px]', pos_columns)
318318
mpp = 1. # for computations of image extent below
319319
else:
320-
if mpl.rcParams['text.usetex']:
321-
_set_labels(ax, r'{} [\textmu m]', pos_columns)
322-
else:
323-
_set_labels(ax, r'{} [\xb5m]', pos_columns)
320+
_set_labels(ax, r'{} [$\mu$m]', pos_columns)
324321
# Background image
325322
if superimpose is not None:
326323
ax.imshow(superimpose, cmap=plt.cm.gray,

0 commit comments

Comments
 (0)