How to use 'matplotlib figure size' in Python

Every line of 'matplotlib figure size' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
23def figsize(sizex, sizey):
24 """Set the default figure size to be [sizex, sizey].
25 This is just an easy to remember, convenience wrapper that sets::
26 matplotlib.rcParams['figure.figsize'] = [sizex, sizey]
27 """
28 import matplotlib
29 matplotlib.rcParams['figure.figsize'] = [sizex, sizey]
Important

Use secure code every time

Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code


Related snippets