Python: Difference between revisions

89 bytes removed ,  12 December 2019
Line 144: Line 144:
===Numpy===
===Numpy===
===Matplotlib===
===Matplotlib===
{{main | Matplotlib}}
Matplotlib is the main library used for making graphs.<br>
Matplotlib is the main library used for making graphs.<br>
Alternatively, there are also Python bindings for ggplot2<br>
Alternatively, there are also Python bindings for ggplot2<br>
[https://matplotlib.org/examples/ Examples]<br>
[https://matplotlib.org/examples/ Examples]<br>
[https://matplotlib.org/3.1.1/gallery/index.html Gallery]
[https://matplotlib.org/3.1.1/gallery/index.html Gallery]
====Saving a plot====
<syntaxhighlight lang="python">
plt.savefig("my_figure.png", dpi=450)
</syntaxhighlight>