{3d} is about three-dimensional content, e.g., images and drawings.
33
votes
2answers
4k 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 ...
20
votes
2answers
2k 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?
21
votes
8answers
4k 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:
...
18
votes
3answers
4k 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.
21
votes
6answers
5k 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:
21
votes
1answer
745 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}
...
6
votes
3answers
801 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)}, ...
7
votes
3answers
927 views
Cut-off cone in TikZ
How would I draw the following cone using TikZ? I have no clue how to incorporate the "cut-off".
I want to draw a picture of the cone given by the points (y, t) for y in R^d and t in (0, infty) such ...
4
votes
1answer
666 views
PDF file containing 3D object is not included correctly with \includegraphics
I have a PDF file, containing a 3D object in PRC format. I try to include this into a LaTeX document to be compiled with pdflatex, with the simple source below:
\documentclass{minimal}
...
26
votes
3answers
2k 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 ...
27
votes
2answers
2k 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:
...
11
votes
3answers
427 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, ...
15
votes
2answers
1k 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, ...
11
votes
2answers
650 views
3d axis and polyhedron with line segment towards origin
I would like to make a 3d plot containing the 3d axis and a convex polyhedron or better a Dodecahedron
on the positive side for which one of its boundary edge points on its top is annotated e.g. ...
8
votes
3answers
1k views
How to draw a circular cone
I want to draw the circular cone given by the equation z²=x²+y². (I do not mind using any given package.) I tried to use the pst-solides3d package with the help of its manual to generate the ...
7
votes
1answer
368 views
Specifying the transformation matrix TikZ uses manually?
I'm creating some 3D graphics using TikZ, and I need to apply a transformation matrix to some coordinates I'm specifying in 2D so they end up in 3D. I am going to draw graphics on all three visible ...
5
votes
2answers
497 views
How to get rid of the viewer's (incorrect) axes in an Asymptote 3D graphics
I have an Asymptote graph of a 3D surface (code below) that I export into 3D PDF file (containing PRC). I include nice axes with LaTeX labels on them, but in addition to these the viewer displays very ...
8
votes
3answers
625 views
Vector graphics in LaTeX
I need to add some vector graphics to my LaTeX files. I would like to end up with good looking wireframes, such as in Hatcher's book "Algebraic Topology" (for an example take a look here). Which tools ...
6
votes
1answer
197 views
pgfplots: labels and width issues in non-boxed 3d plot with oblique projection
Update april 2013
The bug has been fixed with pgfplots version 1.8 (requires \pgfplotsset{compat=1.8}).
When I try to add the axes labels to this code, I get a division by zero error. I think the ...
6
votes
1answer
395 views
Extract coordinates from 3D point
How do I extract coordinates from a three-dimensional point defined when using tikz-3dplot? I would like to perform some calculations on these (more specifically a cross-product of two vectors), but ...
28
votes
1answer
1k 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 ...
32
votes
1answer
527 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 ...
15
votes
1answer
414 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 ...
16
votes
2answers
2k 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 ...
14
votes
4answers
500 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: ...
22
votes
3answers
838 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 ...
14
votes
4answers
388 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 ...
13
votes
5answers
3k 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
1answer
435 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 ...
8
votes
1answer
146 views
Creating Bezier surfaces using procedural graphics
Are there any package for LaTeX that can create Bezier surfaces? I mean a actual existing function that takes matrices as arguments and generates the surface, not a function written by myself.
12
votes
3answers
397 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.
...
5
votes
1answer
254 views
2D surface on a 3D surface plot external data in a file
I am drawing a 3D surface from external data. Here they are:
0 0 -0.64
1 0 -0.5
2 0 -0.4
3 0 -0.31
4 0 -0.23
5 0 -0.2
6 0 -0.24
7 0 -0.32
8 0 -0.42
9 0 -0.59
10 0 -0.76
0 1 -0.54
1 1 -0.4
2 1 -0.27
...
8
votes
2answers
459 views
pst-solides3d and hidden lines
I am trying to draw figures with pstricks for the first time. Unfortunately, I am struggling with it. I was trying to draw a pentagon-cone and an octahedron using pst-solides3d, but it draws some ...
7
votes
2answers
1k views
Drawing 3D cylinder
I need to draw a lot of 3D cylinders with different dimensions.
Has anyone maybe already defined a command like \3Dcylinder{x}{y}{z}?
I found 3D bodies in TikZ
and tried the third answer. But I don't ...
7
votes
2answers
747 views
Plot TikZ items with respect to 3D position, not the order of appearance in the code
I have a big bunch of polygons plot in 3D with TikZ. The code is generated by a program, so it's hard for me to print the "foreground" polygons last, so that they are well printed in space.
In other ...
6
votes
1answer
209 views
A perpendicular line to a plane in 3D
I have two line segments identified by two end points each. Two line segments are in the same plane and intersecting at a point. I would like to draw a line (normal of the plane) passing through the ...
5
votes
1answer
314 views
Is there any way to remove mesh lines completely in a pgfplots faceted 3d plot?
I can not seem to find the way to remove the lines in the surface mesh in a 3d faceted plot. I need a solution that does not use the "shader=interp" (i.e. gradient filling) so that the faces are ...
3
votes
1answer
75 views
Shifting a sphere in code from Texample.net
From Texamples - Stereographic and cylindrical map projections, I decided to use the first sphere.
However, I want to setup two spheres.
When I add another sphere, only the shaded circle shifts ...
2
votes
5answers
452 views
Draw an aircraft with Tikz
I want to draw a plane using the Tikz tool.
You will find, attached, a screenshot.
6
votes
1answer
313 views
2D colors above 3D surface plot
I would like to draw a 2D, colored plot of a function above its surface plot.
I tried copying the surface plot and setting z filter/.code={\def\pgfmathresult{1.4}}, but then everything is the same ...
6
votes
2answers
779 views
3D-plotting sine integral (PSTRICKS)
I'd like to build up a 3D-Plot (based on pst-solides3d), where the function looks like
x=u, y=v and z=\int_0^x \frac{\sin\left(\pi t \right)}{\pi t} - \frac{1}{3} ...
4
votes
0answers
183 views
3d axis label ovelapping [closed]
I'm using matlab2tikz to generate the tikz code for my figures. When compiling the document with the figure code as below, I get an ovelapping with the axis label y and z.
Here is what I've got:
...
3
votes
1answer
116 views
Axis label placement in 3d plot far out but why?
I want to plot a dataset in a 3D pgfplots graph. It looks like a good start but somehow the label placement is far out. Boiling it down to a MWE did not give me any hints how to get the labels back in ...
3
votes
2answers
395 views
How to pick a plane inside a cube in pst-3dplot?
I want to pick and highlight a diagonal plane of a cube. I do not want to color it but use some kind of fill-style so that I can print it on a black and white printer. The following is my solution ...
2
votes
0answers
134 views
How do I replace an XYZ coordinate system on an already available plot?
I have an eps file looking like this:
I have no access to the original dataset, so replotting it is not an option. I would like to replace the ugly 80s style coordinate system (Both the captions ...



