def showData(self, data=None, response=None, ax=None, name='data'): """Show data as travel time curves (optionally with response) Parameters ---------- """ if data is None: data = self.dataContainer if response is not None: name = 'datafit' if ax is None: fig, ax = plt.subplots() self.figs[name] = fig self.axs[name] = ax if response is None: drawFirstPicks(ax, data) else: drawFirstPicks(ax, data, marker='+') if response is True: response = self.response drawFirstPicks(ax, data, np.asarray(response), marker='-') # CR: don't use plt.show(..) at all TODO plt.show(block=False) return ax
def showData(self, data=None, response=None, ax=None, name='data'): """Show data as travel time curves (optionally with response) Parameters ---------- data : pyGIMLi data Container [self.dataContainer] data to show with points response : array response vector to draw with lines ax : maxplotlib axes axis to plot into, if not given, a new figure is created """ if data is None: data = self.dataContainer if response is not None: name = 'datafit' if ax is None: fig, ax = plt.subplots() self.figs[name] = fig self.axs[name] = ax if response is None: drawFirstPicks(ax, data) else: drawFirstPicks(ax, data, marker='+') if response is True: response = self.response drawFirstPicks(ax, data, np.asarray(response), marker='-') return ax