Skip to content
Snippets Groups Projects

Change to use matplotlib's lim for zooming

Merged Lan Dam requested to merge i118_lim_for_zooming into master
All threads resolved!
1 file
+ 5
13
Compare changes
  • Side-by-side
  • Inline
@@ -66,16 +66,8 @@ class SOHWidget(MultiThreadedPlottingWidget):
@@ -66,16 +66,8 @@ class SOHWidget(MultiThreadedPlottingWidget):
linked_ax = None
linked_ax = None
if chan_db_info['linkedChan'] not in [None, 'None', '']:
if chan_db_info['linkedChan'] not in [None, 'None', '']:
linked_ax = self.plotting_data1[chan_db_info['linkedChan']]['ax']
linked_ax = self.plotting_data1[chan_db_info['linkedChan']]['ax']
if 'ax' not in c_data:
ax = getattr(self.plotting, plot_functions[plot_type][1])(
ax = getattr(self.plotting, plot_functions[plot_type][1])(
c_data, chan_db_info, chan_id, None, linked_ax)
c_data, chan_db_info, chan_id, None, linked_ax)
c_data['ax'] = ax
if ax is None:
ax.chan = chan_id
return
self.axes.append(ax)
c_data['ax'] = ax
ax.chan = chan_id
self.axes.append(ax)
else:
for artist in c_data['ax'].lines + c_data['ax'].collections:
artist.remove()
getattr(self.plotting, plot_functions[plot_type][1])(
c_data, chan_db_info, chan_id, c_data['ax'], linked_ax)
Loading