After executing the show() command in Python, I can only save figures as figure_1.png I cannot change my file name. No typing is allowed next to "Save As:". How to enable typing my filename at this point?
I apologize that I need at least 10 reputations to post screenshot.
I had exactly the same issue with mine, I found the answer in solving an underlying issue with the matplotlib backend (the default backend "macosx" causes this issue). The solution is to change the backend line in your matplotlibrc file, which you can find by running
import matplotlib
matplotlib.matplotlib_fname()
in a python terminal. In the matplotlibrc file, find and change the line
backend : macosx
to (for example):
backend : TkAgg
All of the issues should go away. It worked for me, I hope it's helpful.
Just found a solution for this:
Use conda install python.app
to install pythonw
.
Then use pythonw
instead of python
in your terminal.
E.g.
pythonw my_plot.py
Hope this helps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With