Commit 5a9da248 authored by Mario Hock's avatar Mario Hock

Fix: set min/max did not work for CPU area charts

parent ac78817d
......@@ -276,11 +276,6 @@ if __name__ == "__main__":
old_ax_cpu = ax_cpu
## set min/max (remember: The x-axis is shared.)
margin = max( (max_x - min_x) * 0.03, 10 )
ax_net.set_xlim(min_x - margin, max_x + margin)
## If we have only one input file, plot CPU area charts.
if ( num_files == 1 ):
ax1 = fig.add_subplot(2, num_cols, 2, sharex=old_ax_net, sharey=old_ax_cpu)
......@@ -306,6 +301,12 @@ if __name__ == "__main__":
## set min/max (remember: The x-axis is shared.)
margin = max( (max_x - min_x) * 0.03, 10 )
ax_net.set_xlim(min_x - margin, max_x + margin)
## Set the default format for the save-botton to PDF.
try:
fig.canvas.get_default_filetype = lambda: "pdf"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment