[Latex] Simple 3D plots with coordinate systems
Here are the links: CTAN | Manual (PDF)
If you want to make some 3D plots with coordinate systems like these examples:
, I would strongly recommend the tikz-3dplot package. Since the official user manual is clear and pedagogical, I’m not going to write a tutorial for the package. Instead, I want to emphasize that it is probably the simplest, most straightforward, and most convenient LaTeX package I could found for making this kind of plot. Of course, if you want to make plots of some other types, you may take a look at other packages like pgfplots or using TikZ directly.
Post-processing
I want to share some experience about the post-processing of figures made by tikz-3dplot. Sometimes, it’s much easier to perform some fine-tuning by using other WYSIWYG graphics editors like Affinity Designer. To keep our plots' integrity, it is good to convert the text in it into curves. This can be done easily via the following command:
pdf2svg myplot.pdf myplot.svg
, where the myplot.pdf
is the original figure generated by pdflatex
.
Source code of the above example
Finally, for your reference, this is the source code of the above figure with a red-triangle. I apologize that it’s not very structuralized and not well-commented.