work on custom plots

This commit is contained in:
Theophile Terraz committed 2024-08-05 18:30:22 +02:00
1 parent 12cca24d8b
commit f96f9cc62f
6 files changed
+103 -30

No files matched your search

-2
View File
@@ -192,7 +192,6 @@ class PamhyrPlot(APlot):
self.canvas.axes.autoscale_view(True, True, True)
self.canvas.axes.autoscale()
self.canvas.figure.tight_layout()
self.canvas.figure.canvas.draw_idle()
self.toolbar_update()
@@ -205,7 +204,6 @@ class PamhyrPlot(APlot):
self.canvas.axes.autoscale_view(True, True, True)
self.canvas.axes.autoscale()
self.canvas.figure.tight_layout()
self.canvas.figure.canvas.draw_idle()
self.toolbar_update()
+1 -2
View File
@@ -23,7 +23,7 @@ class MplCanvas(FigureCanvasQTAgg):
fig = Figure(
figsize=(width, height),
dpi=dpi,
layout='tight',
layout='constrained',
)
super(MplCanvas, self).__init__(fig)
@@ -36,7 +36,6 @@ class MplCanvas(FigureCanvasQTAgg):
self.axes.yaxis.tick_left()
self.axes.xaxis.tick_bottom()
self.axes.spines[['top', 'right']].set_color('none')
self.figure.tight_layout()
self.add_arrows()
def add_arrows(self):