Matplotlib: Difference between revisions

Line 11: Line 11:
import matplotlib.pyplot as plt
import matplotlib.pyplot as plt
</syntaxhighlight>
</syntaxhighlight>
===Set size===
<syntaxhighlight lang="python">
f, ax = plt.subplots(figsize=(5, 3))
// or
plt.figure(figsize=(5, 3))
plt.tight_layout()
</syntaxhighlight>
===Saving a plot===
===Saving a plot===
<syntaxhighlight lang="python">
<syntaxhighlight lang="python">