[Python] How to specify the window display position and size of matplotlib

Note: Confirmed to work only in Windows environment (not confirmed on Mac and others)


#Graph generation
fig = plt.figure(figsize=(14, 7))
ax = fig.add_subplot(111, projection='3d')

#Display position / size setting here (described after graph generation)
mngr = plt.get_current_fig_manager()
mngr.window.setGeometry(100,200,640, 545)#(Distance from left, distance from above, width, height)

Recommended Posts

[Python] How to specify the window display position and size of matplotlib
[Python] Summary of how to specify the color of the figure
How to check the memory size of a variable in Python
[Python] How to get the first and last days of the month
How to check the memory size of a dictionary in Python
How to display bytes in the same way in Java and Python
[Super easy! ] How to display the contents of dictionaries and lists including Japanese in Python
[Python] How to change the date format (display format)
How to specify attributes with Mock of python
[Python] How to set the (client) window size inside the browser with Selenium
How to get the number of digits in Python
I tried to summarize how to use matplotlib of python
[Python] How to specify the download location with youtube-dl
[Introduction to Python] Basic usage of the library matplotlib
[Selenium] How to specify the relative path of chromedriver?
How to confirm the Persival theorem using the Fourier transform (FFT) of matplotlib and scipy
How to increase the processing speed of vertex position acquisition
[python] How to use the library Matplotlib for drawing graphs
Make the display of Python module exceptions easier to understand
[python] Summary of how to retrieve lists and dictionary elements
[Python] Read the csv file and display the figure with matplotlib
[Python] Summary of how to use split and join functions
Comparison of how to use higher-order functions in Python 2 and 3
I want to know the features of Python and pip
Overview of Python virtual environment and how to create it
The story of Python and the story of NaN
Installation of SciPy and matplotlib (Python)
How to display the regional mesh of the official statistics window (eStat) in a web browser
How to get the Python version
[Python] How to import the library
About the size of matplotlib points
How to determine the existence of a selenium element in Python
How to change the log level of Azure SDK for Python
How to pass and study the Python 3 Engineer Certification Basic Exam
How to know the internal structure of an object in Python
[Cloudian # 9] Try to display the metadata of the object in Python (boto3)
How to get followers and followers from python using the Mastodon API
[EC2] How to install chrome and the contents of each command
[Introduction to Python] I compared the naming conventions of C # and Python.
I summarized how to change the boot parameters of GRUB and GRUB2
Convert the result of python optparse to dict and utilize it
How to update the python version of Cloud Shell on GCP
[Beginner memo] How to specify the library reading path in Python
[Introduction to Python] How to use the Boolean operator (and ・ or ・ not)
How to display the CPU usage, pod name, and IP address of a pod created with Kubernetes
How to display the progress bar (tqdm)
[Python] Summary of how to use pandas
How to package and distribute Python scripts
[Python] How to display random numbers (random module)
Align the size of the colorbar with matplotlib
How to install and use pandas_datareader [Python]
How to check the version of Django
How to display multiplication table in python
How to display python Japanese with lolipop
[Python2.7] Summary of how to use unittest
python: How to use locals () and globals ()
[Python] How to calculate MAE and RMSE
How to use Python zip and enumerate
Summary of how to use Python list
[Python2.7] Summary of how to use subprocess
How to display Hello world in python