3 ms·
There is a sister package PGFPlots that you can use to plot figures. It produces high quality figures, in my view much better than matplotlib, in part because i
by aborsy 5y ago
There is a sister package PGFPlots that you can use to plot figures. It produces high quality figures, in my view much better than matplotlib, in part because it’s integrated with latex.
It’s worth mentioning that drawing complex diagrams with Tikz can take time. You need to code such that the plot is flexible if later you make a change, as much as possible.
- stk21 5y agoThere's a gallery that gives a nice overview with examples and compilable code: https://pgfplots.net https://pgfplots.net
- gjulianm 5y agoFor plotting I prefer the latex output of Gnuplot, the graphs are still integrated but you have all the power of Gnuplot.
- stk21 5y agopgfplots can use gnuplot as backend with pgf and TiKZ as frontend.
- aborsy 5y agoThe advantage of GnuPlot is speed, and for quick 2D plots from terminal. It’s the fastest plotter that I have seen. The output is also good, more so with latex terminal. However, Tikz/PGFplots is much more adjustable, has broader scope, and overall a much better tool for plotting. GnuPlot syntax is also archaic, and documentation is scant. As mentioned above, you can use GnuPlot backend to compute the function. At that point, pgfplots is well positioned to render an excellent plot!