Skip to content

Commit bfb089b

Browse files
committed
Merge pull request #31 from danielballan/master
RLS: Version 0.5 with feature-finding improvements
2 parents f706e59 + a1fb856 commit bfb089b

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

mr/plots.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,17 @@ def plot_traj(traj, colorby='probe', mpp=1, label=False, superimpose=None,
9494
-------
9595
None
9696
"""
97+
if (superimpose is not None) and (mpp != 1):
98+
raise NotImplementedError("When superimposing over an image, you " +
99+
"must plot in units of pixels. Leave " +
100+
"microns per pixel mpp=1.")
97101
# Axes labels
98-
if (superimpose is not None) or (mpp == 1):
99-
logger.warning("Using units of px, not microns")
102+
if mpp == 1:
100103
ax.set_xlabel('x [px]')
101104
ax.set_ylabel('y [px]')
102105
else:
103-
ax.set_xlabel('x [um]')
104-
ax.set_ylabel('y [um]')
106+
ax.set_xlabel(r'x [$\mu$m]')
107+
ax.set_ylabel(r'y [$\mu$m]')
105108
# Background image
106109
if superimpose is not None:
107110
ax.imshow(superimpose, cmap=plt.cm.gray)

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import warnings
99

1010
MAJOR = 0
11-
MINOR = 3
11+
MINOR = 5
1212
MICRO = 0
13-
ISRELEASED = False
13+
ISRELEASED = True
1414
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
1515
QUALIFIER = ''
1616

0 commit comments

Comments
 (0)