diff --git a/pyrs/interface/ui/diffdataviews.py b/pyrs/interface/ui/diffdataviews.py index 7735b52c6..421056775 100644 --- a/pyrs/interface/ui/diffdataviews.py +++ b/pyrs/interface/ui/diffdataviews.py @@ -106,9 +106,11 @@ def plot_scatter(self, vec_x, vec_y, x_label, y_label): if x_label != self.get_label_x(): self.reset_viewer() - # plot data in a scattering plot + # plot data in a scattering plot with auto re-scale ref_id = self.add_plot(vec_x, vec_y, line_style='', marker='.', color='red', x_label=x_label, y_label=y_label) + # TODO - 20181101 - Enable after auto_scale is fixed: self.auto_rescale() + self._line_reference_list.append(ref_id) self._last_line_reference = ref_id self._current_x_axis_name = x_label diff --git a/pyrs/interface/ui/mplgraphicsview1d.py b/pyrs/interface/ui/mplgraphicsview1d.py index 5f26a1ab4..91997ccb4 100644 --- a/pyrs/interface/ui/mplgraphicsview1d.py +++ b/pyrs/interface/ui/mplgraphicsview1d.py @@ -284,6 +284,7 @@ def auto_rescale(self, row_index=None, col_index=None, percent_room=0.05, :param upper_y_boundary: :return: """ + # TODO FIXME - 20181101 - This is a broken method. Fix it! if row_index is not None and col_index is not None: # check assert isinstance(row_index, int), 'row index {0} must be an integer but not a {1}' \ @@ -305,6 +306,7 @@ def auto_rescale(self, row_index=None, col_index=None, percent_room=0.05, max_y_list = list() # get line IDs + # subplot_line_indexes = self._myCanvas.get_line_keys(row_index, col_index) for line_key in subplot_line_indexes: