Commit e350b73b authored by Mario Hock's avatar Mario Hock

Set the default format for the save-botton to PDF.

parent 1acada96
...@@ -248,6 +248,13 @@ if __name__ == "__main__": ...@@ -248,6 +248,13 @@ if __name__ == "__main__":
## Set the default format for the save-botton to PDF.
try:
fig.canvas.get_default_filetype = lambda: "pdf"
fig.canvas.get_default_filename = lambda: "cpunetlog.pdf" ## TODO
except:
pass
## maximize window ## maximize window
try: try:
figManager = plt.get_current_fig_manager() figManager = plt.get_current_fig_manager()
......
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