[1] https://matplotlib.org/stable/api/_as_gen/matplotlib.figure....
Maybe there are much more important API differences (I hope so, as that's a pretty trivial difference to start with.) I just mention it because that's what the screenshot seems to focus on as a justification: "Why UltraPlot? | Write Less, Create More".
You can consider as a bunch of tools that ease the publication making process but is by no means a panacea, but offers a different flavor to the scientific plotting stack.
Check out our docs or more visual examples.
cvanelteren•4mo ago
Why UltraPlot?
Key improvements over vanilla matplotlib:
Instead of wrestling with subplot positioning and styling, you can write:``` import ultraplot as uplt
layout = [[0, 1, 2], [3, 3, 4]]
fig, axs = uplt.subplots(layout)
axs[0].plot(x, y1, label="Data 1")
axs[1].plot(x, y2, label="Data 2")
axs.format(xlabel="Hello", ylabel="Hacker news", abc="[A]") # format applies to all axes fig.legend()
```
...and get a clean, professional-looking plot in seconds.
Get Started:
- GitHub: https://github.com/Ultraplot/ultraplot
- Docs: https://ultraplot.readthedocs.io/en/latest/
Try it out and let us know what you think — contributions and feedback are very welcome!
zahlman•4mo ago
This would be more convincing if you showed the equivalent Matplotlib code and demonstrated that any improvements are not just a result of default settings being a closer match for what the example tries to do. The code shown here looks more or less like what I'd expect a Matplotlib hello-world to look like.
cvanelteren•4mo ago
Let's say we want a 3-column plot: colormesh, polar, and geo plot.
UltraPlot:
Matplotlib equivalent: The aim isn't to replace matplotlib but make publication-ready plots with fewer keystrokes and better defaults. We also bundle plot types not available in matplotlib like graph plotting, lollipop charts, heatmaps etc.zahlman•4mo ago
I see now that you have an example in the README. I think it would be better still in the README, but as plain text rather than rendered into an SVG.
quietbritishjim•4mo ago
* I hadn't heard of ProPlot before. I take it that it's no longer maintained? Is there an announcement, or is it just obvious from commits drying up (like with PIL which was forked into Pillow)?
* Is this a (friendly) fork (again, as with PIL/Pillow), or a reimplementation (in which case are there big differences or does it aim to match)?
* I hadn't of GeoAxes either and that looks pretty useful. The top web search results for that term are ProPlot and Cartopy. Is the Cartopy implementation related at all? Is this a bundling of that, or a similar reimplementation, or something fairly different?
quietbritishjim•4mo ago
* Yes it seems ProPlot stagnated and no longer works with latest matplotlib versions. UltraPlot is a fork that fixes that:
https://github.com/proplot-dev/proplot/pull/459
* Yes, the documentation says that GeoAxes is from Cartopy.
(Also, typo: the project description says "succint" rather than "succinct".)
cvanelteren•4mo ago