Commit d11519f3 authored by Hendrik Kleikamp's avatar Hendrik Kleikamp Committed by René Fritze

[gui] remove colorbar from 1D plots

parent 61eb5439
......@@ -93,13 +93,14 @@ def visualize_patch(grid, U, bounding_box=([0, 0], [1, 1]), codim=2, title=None,
codim=codim, colorbar=separate_colorbars))
plots.append(Matplotlib1DAxes(figure, grid, bounding_box=bounding_box, vmin=vmin, vmax=vmax,
codim=codim, colorbar=separate_colorbars))
codim=codim, colorbar=separate_colorbars))
if legend:
if not separate_colorbars:
figure.colorbar(plots[0].p, ax=axes)
if hasattr(plots[0], 'p'):
figure.colorbar(plots[0].p, ax=axes)
def set(self, U, ind):
if rescale_colorbars:
......@@ -81,13 +81,6 @@ class Matplotlib1DAxes:
self.axes = figure.gca()
self.lines, = self.axes.plot(xs, np.zeros_like(xs))
import matplotlib.pyplot as plt
self.p ="viridis"), norm=plt.Normalize(vmin=vmin or 0, vmax=vmax or 1))
if colorbar:
figure.colorbar(self.p, ax=a)
def set(self, U, vmin=None, vmax=None):
self.vmin = self.vmin if vmin is None else vmin
......@@ -103,7 +96,6 @@ class Matplotlib1DAxes:
self.p.set_clim(self.vmin, self.vmax)
if config.HAVE_QT and config.HAVE_MATPLOTLIB:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment