Skip to main content
33 votes

Levi-Civita symbol: 3D matrix

More or less: \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{positioning, matrix} \usepackage{amsmath} \newcommand{\arrayfilling}[2]{ \fill[#2!30, opacity=.5] ([shift={(1mm,1mm)}]#1....
Ignasi's user avatar
  • 137k
26 votes

How can I draw the trefoil knot in 3D co-ordinates in Latex using these parametric equations?

I think that the key here is to put more samples. This is your code, with 100 samples. I changed the domain too, from 0 to 2pi, because yours draws everything twice. I also added a view more alike to ...
Juan Castaño's user avatar
25 votes

How can I draw the trefoil knot in 3D co-ordinates in Latex using these parametric equations?

This is basic Asymptote code: // // trefoil.asy // // to get trefoil.png, run // asy -f png -render=4 trefoil.asy // // to view it in internal Asymptote 3d-viewer, run // asy -V trefoil.asy // // or,...
g.kov's user avatar
  • 21.9k
19 votes
Accepted

How to draw a 3D sphere and a 3D cone for Spherical coordinates

You can draw something like your picture essentially using the canvas is... options from 3d library. For example: \tikzset { xz/.style={canvas is xz plane at y=0}, xz rotated/.style={rotate ...
Juan Castaño's user avatar
18 votes

Plotting chaotic maps

Metapost will be much much faster than TikZ or pgfplots. Previous answers (see the edit history) used lualatex for simple inclusion in to a document using luamplib (as well as lualatex with TikZ for ...
Mark Wibrow's user avatar
  • 70.6k
18 votes
Accepted

Complex Gaussian wave packet visualized as a 3D

This could be a starting point. It uses 3d and perspective TikZ libraries, and I'm 'reconstructin your function (hope is the right one). \documentclass[tikz,border=1.616mm]{standalone} \usetikzlibrary{...
Juan Castaño's user avatar
17 votes

Draw an aircraft with Tikz

The next revolution in aviation: The duck plane \documentclass{standalone} \usepackage{tikzducks} \begin{document} \begin{tikzpicture} \duck \fill[orange] (0.7331,0.5229) .. controls (1.8688,-0....
samcarter_is_at_topanswers.xyz's user avatar
17 votes
Accepted

Densest sphere packing

By nesting 2 for-loops one could do something like this: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \foreach \x in {4,...,0}{ \foreach \y in {\x,...,4}{ ...
Dynamite's user avatar
  • 292
16 votes

Nice scientific pictures show off

Some of the images took from my thesis. Instead of directly submitting the code, I will include a link to the line in the repo that contains the image in TikZ. But, the drone is actually an SVG ...
16 votes

Nice scientific pictures show off

Here are some basic maths/physics diagrams I created using Tikz in response to various forum questions online. I have just started using Tikz and hope these samples might be helpful to other beginners ...
16 votes
Accepted

Drawing circles on a 3D Plane

You don't really need anything fancy to draw circles (or ellipses) in the coordinate planes, as you can define a coordinate system for the circle itself. By default it is drawn in the xy plane, but ...
Emma's user avatar
  • 3,463
15 votes

How can I draw the surface f(x,y)=x^2+y^2 like my picture?

The first figure with Asymptote. Other figures can be drawn in a similar way. import graph3; currentprojection=orthographic(2,1.5,.5,zoom=.95); unitsize(1cm); //currentprojection=obliqueX(40); size(...
Black Mild's user avatar
  • 17.9k
15 votes

How to delete the sphere that is inside the cylinder?

Welcome to TeX.SE!! I know you're looking for an asymptote solution. But, meanwhile I left here a very simple TikZ one: \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{perspective} \...
Juan Castaño's user avatar
13 votes

How to draw an Icosahedron?

You can use \usepackage{tikz,tikz-3dplot} \documentclass[border=2 mm,12pt,tikz]{standalone} \usepackage{tikz,tikz-3dplot} \usepackage{fouriernc} \begin{document} \tdplotsetmaincoords{60}{100} ...
minhthien_2016's user avatar
13 votes
Accepted

TiKZ: How to define new 2D canvas

Here is a solution adapted from the link that you gave, TikZ: How to draw an isometric drawing in tikz. Add the following lines to your preamble: \makeatletter \tikzoption{canvas is plane}[]{\@setOxy#...
gernot's user avatar
  • 50k
13 votes

Drawing physical diagrams (particle spin)

It's better to use some 3d engine, for example TikZ perspective library. You could do something like this: \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{perspective} \begin{document} \...
Juan Castaño's user avatar
12 votes

Drawing Solids with LaTeX

One can also use \documentclass{article} \textwidth = 19cm \oddsidemargin = -1.7cm \evensidemargin = -1.4cm \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{...
tcsd1's user avatar
  • 203
12 votes
Accepted

Planes' intersection in Asymptote

Note that I know nothing about Asymptote. Caveat emptor ... This answer is almost exclusively drawn from Charles Staats's fantastic tutorial and the interested reader is encouraged to look ...
cfr's user avatar
  • 207k
12 votes

how to draw hypervolume with TikZ

Probably not exactly what is required but anyway... \documentclass[tikz,border=5]{standalone} \usepackage{xxcolor} \usetikzlibrary{arrows.meta} \tikzset{pics/cube/.style args={#1 #2 #3 #4}{code={% \...
Mark Wibrow's user avatar
  • 70.6k

Only top scored, non community-wiki answers of a minimum length are eligible