Skip to content
Snippets Groups Projects

Solving bugs that make scroll bar disappeared after replot TPS

Merged Lan Dam requested to merge i274_replot_caused_scroll_bar_disappear into develop
1 unresolved thread
2 files
+ 10
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -842,14 +842,20 @@ class PlottingWidget(QtWidgets.QScrollArea):
msg = f"Graph is saved at {save_file_path}"
display_tracking_info(self.tracking_box, msg)
def clear(self):
def clear(self, do_reset_size: bool = True):
"""
Clear the figure, reset attributes and initiate size if it is requested
:param do_reset_size: flag to know if reset_size is requested.
"""
try:
self.plotting_axes.fig.clear()
except AttributeError:
pass
self.axes = []
self.plot_total = 0
self.init_size()
if do_reset_size:
self.init_size()
try:
self.draw()
except AttributeError:
Loading