

Note that you do not need to have TeX installed, since Matplotlib ships its own TeX expression parser, layout engine, and fonts. One advantage of Matplotlib is that it has its own LaTeX subset parser, and thus dispenses a full LaTeX installation for mathematics as mentioned at : But there is even a draft pull request for it. In that example, we can see how I was unable to place the little circles above the plot as I would have wanted, showing how 3D is not perfect. For example, here's my attempt at a Bloch sphere illustration that I made for this other answer: As a result, the 3D interface is particularly clumsy and rather incomplete.īut you can get away with sometimes if your requirements are not too strict. It must be said that Matplotlib is not perfect for 3D however, as it does not support an OpenGL backend. And when it doesn't, it is often not hard to code it yourself and submit a patch.Ĭonsider for example this simple educational graph demo I've made:Īlso note that nothing in that demo is mandatory: you could easily rip off the axes or title for example. It must be said that since it's main focus is not illustration, sometimes you have to Google a bit for the solution, but one often exists, or at least a reasonable workaround. Although Matplotlib's focus is on data plotting, it has become so featureful that you can generally produce good 2D illustrations with it.īeing written in Python is also a huge plus over domain specific languages like gnuplot.
