Skip to content

Commit

Permalink
fix(delayspectrum): always show colormap
Browse files Browse the repository at this point in the history
Closes #11
  • Loading branch information
nritsche committed Jun 25, 2020
1 parent 6893e2b commit ece43c0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bondia/plot/delayspectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ def view(self):

ux, uix = np.unique(np.round(x).astype(np.int), return_inverse=True)

nplot = ux.size

# Fill a column with plots (one per pair of cylinders)
all_img = panel.Column(width_policy="max")
mplot = {}
Expand Down Expand Up @@ -127,7 +125,7 @@ def view(self):
clim=self.colormap_range,
logz=self.logarithmic_colorscale,
cmap=process_cmap("inferno", provider="matplotlib"),
colorbar=(pp == nplot - 1),
colorbar=True,
title=f"x = {pux} m",
xlim=xlim,
ylim=ylim,
Expand Down

0 comments on commit ece43c0

Please sign in to comment.