Skip to main content

Questions tagged [3d]

{3d} is about three-dimensional content, e.g., images and drawings.

Filter by
Sorted by
Tagged with
573 votes
67 answers
194k views

Nice scientific pictures show off

Task Show off your best scientific illustration ! The main purpose of this question is to share beautiful scientific pictures, preferably with an educational aspect. Content Your post must ...
81 votes
3 answers
54k views

3D bodies in TikZ

Is there like a library that has default geometric figures like the ones shown below. Am not acquainted yet with 3D diagrams in TikZ.
azetina's user avatar
  • 29k
79 votes
8 answers
91k views

What is the easiest way to draw a 3D cube with TikZ?

I'm trying to find the easiest way to draw a 3D cube (it's for my UML diagram) with TikZ. Could you please give an example? Like this:
yegor256's user avatar
  • 12.1k
75 votes
3 answers
27k views

Drawing simple 3D cylinders in TikZ

I'm trying to draw some simple 3D objects in TikZ. I can do spheres and cuboids okay, but I'm struggling with circular cylinders: When rotating the scene (I use tikz-3dplot for this), the end faces ...
Jake's user avatar
  • 233k
59 votes
5 answers
9k views

3D helix torus with hidden lines

How can I generate the above image using TikZ (possibly other methods will work if they produce better looking results)? I would like to have a nicely shaded (not so dark image) without gridlines and ...
Jubao's user avatar
  • 709
57 votes
6 answers
17k views

How can I draw an arc from point A -> B on a 3D sphere in TikZ?

I'm basing myself on http://www.texample.net/tikz/examples/spherical-and-cartesian-grids/ and now I need to add a arc from point P to Q. What I was able to get so far: \begin{tikzpicture}[scale=1,...
mhk's user avatar
  • 673
55 votes
2 answers
7k views

Draw polarized light

I was trying to draw something like that Searching through the net to see if it already exists in tikz I came accross in texample.net the following image which looks a lot like what I want to draw. ...
Thanos's user avatar
  • 12.5k
53 votes
2 answers
7k views

How to draw spherical geometries with TeX?

I am working in the field of Astrodynamics and have to do many computations using spherical geometry. To visualize some of the concepts I would like to prepare drawings of things like spherical ...
Ingo's user avatar
  • 20.1k
48 votes
3 answers
6k views

How to project text onto a plane?

I'm trying to create the impression that the text "slice" in the example below is written on the cube slice. What is the best solution? To slant the text? \documentclass{standalone} \usepackage{tikz} ...
Tim N's user avatar
  • 10.3k
44 votes
10 answers
19k views

Drawing polyhedra using TikZ with semi-transparent and shading effect

I would like to draw an Octahedron using TikZ, I found nowhere to start, I tried drawing 6 points and then connecting them properly, but this method gives no 3D feel at all, this is my drawing: \...
Shuhao Cao's user avatar
  • 3,151
44 votes
1 answer
7k views

Plotting several 2d functions in a 3d graph

I am trying to reproduce a similar figure to the following one. My first guess was to use pgfplots but I didn't find any example that I could use as a starting point. At the moment I am unsure if ...
maetra's user avatar
  • 4,570
41 votes
2 answers
15k views

Draw a bivariate normal distribution in TikZ

For a small class I want to draw a bivariate normal distribution and show where the means from the two variables meet in the space. Has anyone done this in TikZ?
Thomas Jensen's user avatar
39 votes
2 answers
6k views

3D solids with Tikz - or an alternative?

I want to draw 3D shapes in latex. I have tried out different strategies, but nothing has led me to a good solution yet. First what I want to do, then what I have done so far. In prioritized order, ...
Clausen's user avatar
  • 565
38 votes
2 answers
6k views

Draw 3D intersecting surfaces

Problem This is a shameless "just do it for me" graphics question, but honestly I have no idea where to start. I'd like to reproduce this figure The image shows the intersection of two surfaces ...
Henri Menke's user avatar
38 votes
1 answer
3k views

Elliptic Moebius map on sphere using Tikz

I'm trying to adapt this example from texample to produce a sphere with arrows indicating the effect of a elliptic Moebius map. In fact, I'm trying to redraw the spheres below, but for a while I'm ...
Sigur's user avatar
  • 37.5k
37 votes
2 answers
2k views

How can we draw a 3D Christmas gift box, with TikZ?

In the spirit of How can we draw a Christmas tree with decorations, using TikZ? Can you draw a 3D Christmas gift box with as many details as possible(bow tie, elevated lid/bow, patterned wrapping ...
Manishearth's user avatar
35 votes
2 answers
8k views

More elegant way to achieve this same camera perspective projection model?

I just finished a camera perspective projection model using TikZ. Although, while I'm pretty satisfied with the result, it took me a lot of time to do it. It's easy to see from the code below that I'm ...
perr0's user avatar
  • 1,081
33 votes
1 answer
32k views

How to change label and ticks of a pgfplots colorbar?

I have a 3d plot with colored surface and a colorbar made with pgfplots. My probably related questions are: How can I set the label of the colorbar? What are the equivalents of zticks (positions of ...
Tim's user avatar
  • 891
33 votes
1 answer
5k views

Perspective transform

The following piece of eye candy: was produced using the following code: \documentclass[a4paper]{article} \usepackage{tikz} \usetikzlibrary{shapes.arrows} \usetikzlibrary{shadows.blur} \...
mabartibin's user avatar
  • 1,826
32 votes
3 answers
5k views

How can I draw nucleosomes with wrapped DNA in tikz or pstricks?

The nucleosome is the fundamental unit of DNA packing in cells, and I am trying to generate some figures for regular use in manuscripts and presentations. The nucleosome is commonly abstracted to a ...
GTK's user avatar
  • 1,510
31 votes
4 answers
5k views

Parabolic Moebius map on sphere using tikz

There is a discussion here about coding the elliptic Moebius map. I however am interested in how I might do the parabolic one. case [d] The arrow heads are not an issue, but how do I get the lines on ...
sheik yerbouti II's user avatar
31 votes
2 answers
20k views

Drawing a circle on a non xy-plane with TikZ

Say I'm drawing a 3D picture. Now I would like to draw a circle, perspectively correct, on the yz-plane, but TikZ does not seem to be capable of this. All one can do is drawing circles on the xy-plane....
Tom Bombadil's user avatar
  • 40.2k
30 votes
3 answers
6k views

Projection of Circle onto Spherical Surface

I want to draw shapes looks like 15 degrees tilted-semi-sphere and there are circles, placed in a triangular shaped array, on the base area. Then these circles are projected onto surface of sphere. I ...
Omer Cayir's user avatar
30 votes
2 answers
3k views

Levi-Civita symbol: 3D matrix

During the current review of the tensors I have arrived at a page of Wikipedia where you can see the symbol of Levi-Civita in a beautiful three-dimensional matrix. I hope that nobody will be angry ...
Sebastiano's user avatar
  • 56.3k
29 votes
2 answers
6k views

Documentation of the tikz 3d library

Where can I find the documentation of the tikz 3d library? There seems to be no such section in the manual and google didn't help me in this case.
student's user avatar
  • 29.2k
28 votes
1 answer
1k views

How to color a girl's skin

My usual what-can-I-plot-today resulted in this: It's based on the math function by mikuszefski posted on mathematica.stackexchange.com. I implemented it in TeX with pgfplots this way: \documentclass[...
Stefan Kottwitz's user avatar
  • 232k
28 votes
1 answer
3k views

TikZ: drawing 3 intersecting circles and shading

How can I draw the three intersection circles/ellipse with that shading paradigm (not necessarily the same colors) effectively? It appears that the original image doesn't have overlapping colors ...
dustin's user avatar
  • 18.7k
27 votes
3 answers
8k views

Draw a prism in TikZ or PSTricks

Is there a way to define an polygon in plane and output an (orthogonal) prism with that polygon as its base? The prism should be drawn in 3D in parallel oblique perspective with controllable height h, ...
student's user avatar
  • 29.2k
26 votes
3 answers
26k views

How to plot a surface from a set of data?

Disclaimer: I already read questions like 2D surface on a 3D surface plot external data in a file and 3D surface plots in TikZ but these did not solve my problem. I have this set of data: x y ...
Foo Bar's user avatar
  • 13.3k
25 votes
1 answer
1k views

water inside 3D tube

How can I generate the above image using TikZ. The oval inside tube represents water and arrows indicates the dipole orientation of water. What I was able to get so far is pasted below. \...
Andrei's user avatar
  • 525
24 votes
5 answers
8k views

Intersection of 2 surface plots in pgfplots

My question is pretty much a duplicate of this one. I'd like pgfplots to display the intersection between tho surface plots properly. Unfortunately, my function is quite different from the one in the ...
meep.meep's user avatar
  • 17k
23 votes
3 answers
12k views

Draw realistic 3D crystal structures (diamond)

I want to draw a realistic 3D crystal structure, e.g. diamond. The point where I struggle is to draw connecting 3D rods. Desired result In the end it should describe the cubic cell of diamond, e.g. ...
strpeter's user avatar
  • 5,235
23 votes
3 answers
6k views

How to draw an Euler angle rotation sequence with TikZ?

For some lecture notes I want to illustrate successive unit axis rotations using Euler angles. I am quite happy with what I came up with so far: However, I am failing at drawing the angles in between ...
Ingo's user avatar
  • 20.1k
22 votes
4 answers
4k views

How to draw a 3D hexagonal structure with TikZ?

What is the best way in TikZ to draw a hexagonal stucture in 3D? For example, graphite crystals, honeycombs or stable racks made of hexagonal aligned stiffeners. I already found this nice solution: ...
Foo Bar's user avatar
  • 13.3k
22 votes
2 answers
2k views

Illustrating Stokes theorem with asymptote

I want to use asymptote to illustrate Stokes theorem as in the following figure. Here is what I've done so far. import three; size(6cm,0); path path2D = (1, 0) .. (2, 1) .. (0, 2) .. (-2.25, 1) .. (...
cjorssen's user avatar
  • 10k
22 votes
2 answers
1k views

Rotation transformation of a parametrized plot

I'm working on this plot with pgfplots: The image is from our sister-site Mathematica.SE and there's also a nice explanation how to do it with Mathematica. I follow these steps: Parametrize the 2d ...
Stefan Kottwitz's user avatar
  • 232k
22 votes
1 answer
6k views

Drawing 3D crystal lattice with tikz/pstricks

I need to draw 3D lattice of DO3 type (Ni-Mn-Al, DO3) and more complex ones. Both TiKZ and PSTricks packages draw following objects on top of previously drawn disregarding "real" 3D position. For ...
Iohann's user avatar
  • 697
21 votes
2 answers
4k views

Making a labeled Klein bottle using TikZ or pgfplots?

I'd like to be able to draw the following cell complex structure on the (three-dimensional embedding of the) Klein bottle using LaTeX. I am pretty pleased with my hand-drawn rendition, but LaTeX is ...
Zev Chonoles's user avatar
  • 5,526
21 votes
1 answer
4k views

Tikz: intersection of line and plane

I am struggling with drawing a plane and a intersecting line. I would like to have the line C,P',P in the image, disappear if it is "behind" the plane and have it reappear if it is not behind the ...
Zwähnia's user avatar
  • 2,021
21 votes
2 answers
3k views

How can I draw a vector field (quiver plot) on a torus in 3D?

I'd like to draw a vector field on a torus using PGFPlots and/or TikZ. I managed to do it using ePiX, based on the file decorate.xp from the example gallery, but then I have to do z-sorting by hand, ...
Håkon Marthinsen's user avatar
21 votes
1 answer
1k views

Symbolic 3d coordinates in TikZ

Warning: answering this question may require some efforts. The purpose of question is to "teach TikZ 3d coordinates". What does that mean? If we define a coordinate in TikZ, \path (<x>,<y&...
user avatar
21 votes
1 answer
987 views

Why isn't the arc drawn on the good plane using tikz-3dplot in Tait-Bryan convention

As some people on tex.sx, I used the tikz-3dplot and changed some commands to use Tait-Bryan convention instead of the default Euler convention. As you can see on the following picture, the rotation ...
Vser's user avatar
  • 1,921
20 votes
3 answers
7k views

Drawing Axis Grid in 3D with Custom Unit Vectors

I am trying to adjust the unit vectors for each of the axis, and draw a coordinate grid. I can get it to work without specifying the unit vectors, of specifying it as: x={(1.0cm,0.0cm)}, y={(0.0cm,1....
Peter Grill's user avatar
20 votes
3 answers
2k views

Isometric Elevation Grid in TikZ

Is there a (simplistic?) way to draw a 3D elevation grid like this in Tikz or PGFPlots? The blue line should be able to move up or down and, eventually, submerge the interior blocks. I've looked at ...
Richard's user avatar
  • 5,763
19 votes
3 answers
2k views

Drawing a 3D cone

I want to create some thing like this , but instead of a box, I use another object (a dog silhouette). Here is what I have so far \begin{tikzpicture} \begin{scope}[scale=0.25, xshift=70, yshift=...
wererabit's user avatar
  • 1,697
19 votes
2 answers
53k views

Easiest way to draw a 3d coordinate system with axis labels and ticks in tikz

What's the easiest way to draw a 3d coordinate system in tikz with axis labels and ticks like the following one: Is there any additional package which does this (with adjustable parameters)?
student's user avatar
  • 29.2k
19 votes
3 answers
6k views

How to draw an Icosahedron?

After going through the pgf manual and also searching the web for some solution or at least a hint on how it can be done (preferably using TikZ), so I came here with my question: How to draw an ...
rtzll's user avatar
  • 5,569
18 votes
2 answers
1k views

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

When I use the parametric equations (according to Wikipedia) to plot a trefoil knot: x(t)=sint+2sin2t y(t)=cost−2cos2t z(t)=−sin3t I get a plot that looks very different from the nice plot on ...
Cheryl's user avatar
  • 191
18 votes
4 answers
3k views

Drawing intersecting 3D surface plots

I'm attempting to draw six semi-transparent intersecting spheres of different colors---two on each axis x, y, z and all joining at the origin---as shown in the figure below. Note how all the spheres ...
eiterorm's user avatar
  • 1,813
18 votes
2 answers
8k views

Big data surface plots: Call gnuplot from tikz to generate bitmap and include automatically?

Motivation I have large numerical data files, that I would like to create density (surface) plots of. Since they are very big, we can rule out a few possibilities such as to plot them directly with ...
Jost's user avatar
  • 1,347

1
2 3 4 5
19