Matplotlib: Difference between revisions

 
Line 15: Line 15:
<syntaxhighlight lang="python">
<syntaxhighlight lang="python">
f, ax = plt.subplots(figsize=(5, 3))
f, ax = plt.subplots(figsize=(5, 3))
// or
# or
plt.figure(figsize=(5, 3))
plt.figure(figsize=(5, 3))
plt.tight_layout()
plt.tight_layout()