aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerg_samowzbudnik <uinarf@autistici.org>2021-06-02 20:44:09 +0200
committererg_samowzbudnik <uinarf@autistici.org>2021-06-02 20:44:09 +0200
commitb4ceccd6c3e2bea832fb5f0b29f2a28c0c855916 (patch)
tree418d227555478f1428c9cf71c56744417d6168d2
parente1b5aa40ae667b2a49f5c39be1103a812214f181 (diff)
downloadRPGH-b4ceccd6c3e2bea832fb5f0b29f2a28c0c855916.tar.gz
RPGH-b4ceccd6c3e2bea832fb5f0b29f2a28c0c855916.tar.bz2
RPGH-b4ceccd6c3e2bea832fb5f0b29f2a28c0c855916.zip
Bound axes together.
-rw-r--r--mplwidget.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mplwidget.py b/mplwidget.py
index df3a054..cc13600 100644
--- a/mplwidget.py
+++ b/mplwidget.py
@@ -21,8 +21,8 @@ class MplCanvas(FigureCanvas):
self.fig = Figure(tight_layout=True)
grid = gridspec.GridSpec(ncols=32, nrows=3)
self.ax = self.fig.add_subplot(grid[0, 0:32])
- self.ax_1 = self.fig.add_subplot(grid[1, 0:32])
- self.ax_2 = self.fig.add_subplot(grid[2, 0:32])
+ self.ax_1 = self.fig.add_subplot(grid[1, 0:32], sharex=self.ax)
+ self.ax_2 = self.fig.add_subplot(grid[2, 0:32], sharex=self.ax)
self.fig.align_labels()
FigureCanvas.__init__(self, self.fig)
FigureCanvas.setSizePolicy(self,