Skip to content

Commit

Permalink
improve data management and rmin/rmax use
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelaye committed Dec 21, 2018
1 parent 8192229 commit cb93ba8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pyciss/ringcube.py
Expand Up @@ -320,10 +320,10 @@ def imshow_swapped(
if ax is None:
fig, ax = plt.subplots()

if subtracted is True:
if data is None and subtracted is True:
self.use_original = False
data = self.density_wave_median_subtracted
else:
elif data is None:
self.use_original = True
data = self.img

Expand All @@ -342,6 +342,9 @@ def imshow_swapped(
interpolation=None,
)

if any([rmin is not None, rmax is not None]):
ax.set_xlim(rmin, rmax)

ax.set_xlabel("Radius [Mm]")
ax.set_ylabel("Longitude [deg]")
ax.set_title(self.plot_title)
Expand Down

0 comments on commit cb93ba8

Please sign in to comment.