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

learn more… | top users | synonyms

308
votes
51answers
81k 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 ...
46
votes
2answers
8k 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 ...
42
votes
2answers
2k 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. ...
41
votes
5answers
3k 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 ...
38
votes
3answers
2k 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} ...
37
votes
1answer
2k 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 ...
36
votes
2answers
4k 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: ...
35
votes
1answer
2k 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 ...
34
votes
1answer
1k 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 ...
33
votes
3answers
14k 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.
31
votes
1answer
914 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 ...
30
votes
6answers
11k views

What is the easiest way to draw 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:
29
votes
2answers
960 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 ...
28
votes
3answers
2k 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 ...
28
votes
2answers
852 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, ...
27
votes
2answers
4k 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?
26
votes
1answer
1k 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 ...
25
votes
9answers
6k 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: ...
24
votes
1answer
2k 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} ...
23
votes
1answer
913 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 ...
20
votes
3answers
2k 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. ...
20
votes
3answers
902 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 ...
19
votes
2answers
3k 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, ...
19
votes
2answers
4k 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 ...
19
votes
2answers
1k views

How can I draw a vector field (quiver plot) on a surface 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, ...
18
votes
2answers
2k 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 ...
17
votes
4answers
1k 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 ...
17
votes
4answers
2k views

How can I draw a transparent cube in 3D perspective?

I would like to draw a transparent, `flattened cube' in perspective with dotted lines from both vanishing points to each of the vertices of the 3D solid. Is there a PSTricks package for this? It is ...
17
votes
1answer
250 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 ...
16
votes
3answers
4k 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 ...
16
votes
3answers
941 views

Draw a 3D diamond structure

I want to draw a 3D diamond crystal structure. The point where I struggle is quite in the beginning to draw connecting 3D rods: \documentclass{article} \usepackage[utf8]{inputenc} ...
15
votes
4answers
1k 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: ...
15
votes
1answer
806 views

How to draw a “Mexican hat potential” using 3dplot?

I would like to make a Mexican hat potential (like this one from Wikipedia) drawing through TikZ, and I am sure the function to use is straightforward, but I have not managed to find the right ...
15
votes
1answer
1k 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 ...
14
votes
4answers
576 views

How to 3D rotate figures in display

I have a bunch of 2D figures which I like to use latex to display them in a row (side by side). Since the number of the figures is a lot I cannot show them all horizontally. For this I would like to ...
14
votes
2answers
484 views

quiver plot on hyperboloid surface

Using pgfplots, I'm trying to create a quiver plot on a hyperboloid surface something like this. I was able to generate the hyperboloid surface using parametric equations. I could'nt find out how ...
14
votes
1answer
1k 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 ...
14
votes
1answer
676 views

How to draw the right ascension and declination of a vector in a rotated coordinate frame in TikZ?

During my research I came across the illustration of two reference frames. In my opinion this illustration is lacking, because the coordinate systems are not drawn. This makes it hard to understand, ...
14
votes
1answer
882 views

Drawing 3d circuit diagram

I've started using tikz only few weeks ago and find it utmost useful todraw beautiful picutres.But now i'm a bit stuck on a 3d circuit which should resemble the physical structure and hope the experts ...
13
votes
3answers
854 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, ...
13
votes
2answers
2k views

TikZ: How to draw a sine curve in 3D?

I know how to draw a sine curve in TikZ and I know how to rotate it in the plane of the paper. I would now like to draw a sine curve that oscillates in the depth of the paper - to give the impression ...
13
votes
1answer
2k views

TikZ, 3d library and circle fading

I'm using the 3d library to put a circle on the z=0 plane, and other things. I'd like to fade this circle radially, but the result isn't as I would expect because the fading is not proportional to the ...
13
votes
2answers
750 views

Text placed in pespective on 3D object

I am experimenting with Tikz to include graphics in my LaTeX documents. I have made a few 2D and 3D diagrams. One of the diagrams contains a 3D pyramid. I want to place text on the front and side of ...
13
votes
2answers
2k 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 ...
13
votes
1answer
1k views

3D Arrow Tips for TikZ/pgfplots

I really like the arrow tips shown in How to get rid of the viewer's (incorrect) axes in an Asymptote 3D graphics and am wondering how to produce this in pgfplots: I admit I have not tried ...
12
votes
5answers
4k views

Drawing 3d diagrams

I would like to use a few simple 3d diagrams in my LaTeX document. They primarily consist of polyline segments in 3d, along with an occasional simple surface (e.g. paraboloid). There are two ...
12
votes
3answers
846 views

polytopes as inequalities sistem solutions in R3 (x-y-z) cartesian space

i'm here to ask if there's a TikZ/pgf support to draw areas resulting from a system of linear inequalities, into a xyz cartesian space. i found examples of my needs for xy plan at How to plot polygon ...
12
votes
1answer
965 views

Help creating solid cylinders along a path in Tikz for crystal lattice diagram

I am trying to draw a diagram using Tikz that will show the crystalline lattice structure of diamond. It should look like the following illustration (reference). I have managed to figure out the ...
12
votes
1answer
2k 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.
12
votes
2answers
1k 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 ...