diff options
author | erg_samowzbudnik <uinarf@autistici.org> | 2021-06-02 20:44:09 +0200 |
---|---|---|
committer | erg_samowzbudnik <uinarf@autistici.org> | 2021-06-02 20:44:09 +0200 |
commit | b4ceccd6c3e2bea832fb5f0b29f2a28c0c855916 (patch) | |
tree | 418d227555478f1428c9cf71c56744417d6168d2 | |
parent | e1b5aa40ae667b2a49f5c39be1103a812214f181 (diff) | |
download | RPGH-b4ceccd6c3e2bea832fb5f0b29f2a28c0c855916.tar.gz RPGH-b4ceccd6c3e2bea832fb5f0b29f2a28c0c855916.tar.bz2 RPGH-b4ceccd6c3e2bea832fb5f0b29f2a28c0c855916.zip |
Bound axes together.
-rw-r--r-- | mplwidget.py | 4 |
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, |