4 ms·
Matplotlib is what is wrong with matplotlib.. Broadly, the problem is that its syntax was meant to reflect that of Matlab, which, I guess, makes it intuitive f
by fransje26 3y ago
Matplotlib is what is wrong with matplotlib..
Broadly, the problem is that its syntax was meant to reflect that of Matlab, which, I guess, makes it intuitive for Matlab users. For the rest of us, it's mostly unintuitive and inconsistent.
- kwertzzz 3y agoCan you give an example of its inconsistency? I would be genuinely interested what are the inconsistency from a Python-perspective. I am former Matlab/Octave user. To me the julia interface of matplotlib is actually quite nice to use, but unfortunately the installation is a bit brittle.
- akasakahakada 3y agoSomewhere you can use c="k" for colour but sometimes you cannot, you must use color="k". Some settings only exposed to figure class but not the ax class. And when you are doing stuff towards ax class, you must write ax.set_ylim(0,3) instead of ax.ylim(0,3) Matplotlib.pyplot is known for its nonsensical api.
- fransje26 3y agoFrom the top of my head, the one that annoys me regularly is the difference between setting a title/x or range on plot, and on a subplot. So plot.title(), and ax.set_title(). By the way, who came up with the idea that an axis object is a great handle to handle subplot settings..?