Skip to content

Commit

Permalink
Make single plots half size
Browse files Browse the repository at this point in the history
  • Loading branch information
nocturnalastro committed Oct 5, 2023
1 parent eccd80c commit 523b759
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vse_sync_pp/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ def _plot_hist(self, ax):
def plot(self, filename):
"""Plot data to `filename`"""
fig, (ax1, ax2) = plt.subplots(2, constrained_layout=True)
fig.set_size_inches(10, 8)
fig.set_size_inches(10, 4)
self._plot_scatter(ax1)
self._plot_hist(ax2)
plt.savefig(filename)
return (ax1, ax2)

def plot_scatter(self, filename):
fig, ax = plt.subplots(1, constrained_layout=True)
fig.set_size_inches(10, 8)
fig.set_size_inches(10, 4)
self._plot_scatter(ax)
plt.savefig(filename)
return ax
Expand Down

0 comments on commit 523b759

Please sign in to comment.