We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de1c012 commit 4f17aabCopy full SHA for 4f17aab
roles/pcp_metrics/files/plot.py
@@ -517,7 +517,9 @@ def plot(df: pd.DataFrame,
517
set_xaxis(axs)
518
set_legend(fig, axs)
519
520
- fig.set_figwidth(FIG_WIDTH)
+ fig.set_figwidth(max(FIG_WIDTH,
521
+ 2 * df['Time'].agg(['min', 'max']).diff().dropna()
522
+ .iloc[0].ceil('h').components.hours))
523
fig.set_figheight(FIG_HEIGHT)
524
fig.savefig(output, format='pdf', **PLOT_OPTIONS)
525
0 commit comments