MCPcopy Create free account
hub / github.com/NSLS2/PyXRF / prepare_preview_spectrum_plot

Method prepare_preview_spectrum_plot

pyxrf/model/lineplot.py:1488–1496  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1486 return barh_new
1487
1488 def prepare_preview_spectrum_plot(self):
1489 if self._ax_preview:
1490 self._ax_preview.clear()
1491 else:
1492 self._ax_preview = self._fig_preview.add_subplot(111)
1493 self._ax_preview.set_facecolor("lightgrey")
1494 self._ax_preview.grid(which="both")
1495
1496 self._fig_preview.set_visible(False)
1497
1498 def _show_preview_spectrum_plot(self):
1499 # Completely redraw the plot each time the function is called

Callers 1

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected