This tag is for questions related to the tikz-3dplot package for enhancing TikZ coordinate system to 3D.

learn more… | top users | synonyms

5
votes
1answer
112 views

How to draw torsion prismatic beams in tikz?

I'm new in Tikz but I want to draw this objects: Can anyone give some good advice, or help?
6
votes
1answer
93 views

Drawing an intersection of two equations in 3D

I'm trying to draw the intersection of the following two equations: x^2+y^2=4 (a circle of radius 2) and z=x+4. I got kind of close with tikz-3dplot (which has preferrable output in my opinion), but ...
4
votes
1answer
108 views

Truncated octahedron in TikZ

I'm having trouble drawing a truncated octahedron for a Brillouin zone in TikZ. My attempt so far is an adaptation of this answer which produces wonky square bits that are also too small (the sides of ...
4
votes
0answers
73 views

Drawing a 3 dimensinal region

I want to draw a region in a 3D envirement. At the moment I'm doing this using tikz. The region is defined by the addition of a translation (1) and a rotation (2). The resuling region in 2D would be ...
2
votes
1answer
102 views

How I can draw a semitransparent gray sphere shell with a hole using TikZ?

I need to represent a gray sphere of radius R with a hollow circle defined by a cone of angle alpha, and I have the cone part but I do not know how to draw the sphere .... I Have this: ...
0
votes
1answer
64 views

3D Orbits around Sphere, arc points or orbit coordinates positioning

I have again a question about some 3D tikz problem. Added crosspost at: http://www.latex-community.org/forum/viewtopic.php?f=45&t=26046 Added german crosspost: ...
0
votes
0answers
42 views

Reduce mesh size of data set for Surface pgfplot

I want to reduce the amount of sample points latex uses for creating a pgf surface plot. My data file currently has a mesh of (41x401) points. I am looking for a way to implement the (each nth ...
9
votes
1answer
128 views

Inserting a orgin tangential to a sphere

I am trying to draw a picture like the one attached. I have not used much of the tikz package. My code so far is a follows. I what to include a set of angles in the image. Any help would be great and ...
2
votes
1answer
144 views

Electromagnetic Wave Propagation with TikZ [closed]

I'm looking for a code drawing the below picture with TikZ if it is possible: I just need the graph in the middle, i.e. there is no need to also include the text and/or equations. Simply the plot ...
6
votes
2answers
292 views

How to draw this particular Mexican hat potential?

I know there are some other mexican hat questions here, but none of the answers seems complete to me. I would like to draw the following figure with TikZ with similar axis and labeling. How can one do ...
0
votes
0answers
76 views

Rotate a 3d Pgf plot

Please, I need to know how to rotate a 3d Pgfplot. I am trying to draw a 3d surface using the following points : (1,0,0) (0,1,0) (0,0,1).
3
votes
1answer
72 views

Change style of PGFplots 3d box

When making a 3d axis plot by means of PGFplots, one can for instance change the style of the grid with \pgfplotsset{grid style={dashed,gray}} . But when using 3d ...
-1
votes
1answer
91 views

How I can draw with pstricks this image?

I'm using pst-solides3d for draw several images. However I have the same picture in a eps file, I would prefer to use a pstrick code.
3
votes
0answers
95 views

PGF: draw longitudinal arcs in 3D axis environment

I want to draw a sphere, similar to the first one here: http://www.texample.net/tikz/examples/map-projections/ But - of course - different. This is, what I did so far: The dashed lines are behind ...
4
votes
1answer
86 views

How do you draw a color map on a ternary axis plot?

I have a function defined on the 3-dimensional simplex that I would like to display as a color map on a ternary axis plot. \begin{filecontents*}{dirichlet.dat} x y z density 0.0 0.0 1.0 ...
1
vote
2answers
145 views

2D and 3D Tikz pictures side-by-side

Previously I've had problems with 3D Tikz pictures having a lot of whitespace added to one side which was solved by using \documentclass[varwidth,border=5pt]{standalone}. Now, however, I'm trying to ...
0
votes
0answers
66 views

drawing 3D (how to draw lines between local and global frames)

I have two frames and I need to draw some angles and lines between some points. The following picture is my first attempt using tikz-3dplot in the above picture I have two frames namely global and ...
6
votes
1answer
165 views

How to make right angle mark in geometry 3D like this picture?

I want to mark right angle. I tried in Geogebra \documentclass{standalone} \usepackage{pstricks-add} \begin{document} \psset{xunit=1.0cm,yunit=1.0cm,algebraic=true,dotstyle=*,dotsize=3pt ...
16
votes
5answers
816 views

Draw incline in 3D with TikZ

I need to draw an incline in 3D (triangle in 3D), I have tried to modify this example but it ends up looking wrong. Can anyone suggest how to get started with this or provide an example that's closer ...
3
votes
0answers
145 views

tikz-3dplot, geodesics and adressing endpoints in polar coordinates

I am trying to draw geodesics on a sphere. While many approaches, like for example this one, i am more interested in another way. If i specify two points, say qand p on the Sphere, i would like to ...
1
vote
1answer
138 views

torus to coffee mug homotopy

Does anyone have a TikZ solution to animate the coffee mug --> donut homotopy?
1
vote
0answers
43 views

Rotated figure moves to the right of the document

I want to rotate a 3d solid using tikz-3dplot within a subfigure environment (I am using IEEEtran document class as well). When I perform the rotation, the figure rotates as expected but moves to the ...
3
votes
1answer
239 views

Draw a circle in a coordinate system of an arrow on a half-sphere

I am trying to draw a half sphere with several arrows on it. Each of those arrows should have a circle positioned on it, drawn in a local coordinate system of the arrow. I managed to draw the sphere ...
2
votes
2answers
234 views

How to draw this figure (if possible in 3D)

I want to draw a figure whose rough and symbolic figure is attached. Here $K_m$ denote a complete graph on $m$ vertices. Each vertex of $K_m$ is attached with each vertex of $K_n$ as well $K_1$. For ...
6
votes
2answers
295 views

How to plot the four regular star polyhedra with tikz?

I can plot the regular convex polyhedra, for examples \begin{tikzpicture}[scale=1.0] \tikzstyle{every node}=[circle,fill=blue!20,inner sep=0pt,minimum size=0.4cm] \foreach \y[count=\a] in ...
1
vote
1answer
83 views

Drawing direction cosines with tike-3dplot

I am trying to reproduce the following image using tikz-3dplot. I need help with the arrow heads of the vectors, the angles made with vector v and the unit vectors, i, j, and k. Here is what I ...
3
votes
1answer
187 views

\addplot3 in pgfplots plots data beyond axis limits

When using pgfplots for a 3D graph and reading the data from a table, is there a way to truncate the data at the axis limits specified in the axis environment ? Here is a MWE: ...
11
votes
1answer
710 views

How to plot the first n rows of a table using pgfplots?

When using pgfplots, is there a way to plot only the first n rows of a given table ? Considering the following MWE file: \documentclass[tikz]{standalone} \usepackage{tikz} \usepackage{pgfplots} ...
4
votes
2answers
348 views

Import 3D object in LaTeX

Is there any way to import a 3D file of an object (.stl for example) to draw a 2D projection of it into a TeX document ? I have been surprised to don't find any subject about that, I was thinking a ...
3
votes
2answers
197 views

draw direction cosines using tikz

How I can easily draw the direction cosines using TikZ?
1
vote
0answers
72 views

tdplotsetcoord length scale

I'm trying to define that dynamic coordinate which specifies also Xxy,Xxz,Xyz plain coordinates etc. However, such coordinate seems to be with different length scale than my coordinate system is. ...
2
votes
0answers
201 views

Solid of revolution about arbitrary axis

I'd like to rotate the region between y=cos(x) and y=x^2 - 0.25*pi^2 about the line x=pi. How to do this? So far I have only managed to rotate around the x-axis: \documentclass[letterpaper]{article} ...
7
votes
0answers
204 views

Draw background lines dashed in TikZ-3dplot depending on view position

In the graphic the red line is partly covered (in the background) of the 3d-object. Is it possible to draw the background parts of the lines dashed (or calculate the "intersection" points)? After ...
7
votes
1answer
251 views

How to create consistent 3D images in Tikz

I would like to create images similar to these ones: However I would like to be able to do so in a coordinate system specific way so that I don't have to think about how the 2D projection of the ...
14
votes
2answers
254 views

Path clipping in 3D only works in two out of three planes?

In the following code, I'm trying to draw three clipped circles in three orthogonal planes. I'm using this approach to clip the appropriate sections of the circles. This works nicely in the xy and yz ...
2
votes
0answers
140 views

How to draw an arc greater than 180 deg in tikz-3dplot?

\tdplotdrawarc command draws an inferior arc by default, but how to draw an superior arc? I know that there is a way to draw an superior arc in tikz: \tikz \draw (0,0) arc [start angle=0, end ...
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 ...
4
votes
1answer
259 views

2D Bar Chart in 3D Space

I have a graph in 3D space and I'd like to add a histogram along the vertical axis. The bars are supposed to be spaced equally along the vertical axis. I am, however, unable to get the positions of ...
29
votes
2answers
1k 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, ...
1
vote
0answers
132 views

Cartesian Coordinate Rotations - Better looking code? [closed]

This is one of my first attempts with TiKZ-3D, so my knowledge is limited. Is there a better or more organized way to accomplish the following?... \documentclass[letterpaper]{article} ...
2
votes
0answers
125 views

How to draw a graph on a sphere using tikz [closed]

I'm trying to make some TiKz graphics for a project I am working on and I am a little stuck. What I am looking for is to be able to draw some planar graphs on a sphere's surface? Any help would be ...
8
votes
3answers
593 views

PGFplots 3d: Creating a filled solid of revolution

I have searched through the internet for a solution, but since I'm not that skilled with pgfplots, I need your help. For several examples I want to draw solids of revolution, but filled ones. I ...
1
vote
0answers
190 views

Setting a rotation matrix instead of Euler angles in tikz-3dplot

In tikz-3dplot, I would like to use rotated coordinates by setting the according rotation matrix directly, instead of implicitly by Euler Z-Y-Z angles. I already tried to modifiy the internal matrix ...
5
votes
1answer
137 views

Bounding box is larger than expected when drawing in 3D

This is a semi-duplicate of this question I think, but the answers provided there don't seem to work for me with 3D pictures. I'm inputting a tikz picture into a beamer poster, but I think that part ...
4
votes
2answers
253 views

Draw circle perpendicular to line

I was trying to create a circumference perpendicular to a line similar to this but I only see a tutorial for creating in a axis-plane (xy, xz, yz) \documentclass[tikz, border=15mm]{standalone} ...
13
votes
1answer
586 views

How to draw a circular, inclined road in 3D?

I want to draw the road which is similar to the following (but please ignore grass, soil, and the surrounding scenery for the sake of simplicity), to illustrate a physics problem about circular ...
1
vote
1answer
265 views

rectangle in 3d plane

I am trying to plot a 3d axis with a rectangle perpendicular to the x-plane using the following code: \documentclass[tikz]{standalone} \usepackage{pgfplots,pgfplotstable} \usetikzlibrary{calc} ...
7
votes
2answers
1k views

2D and 3D vectors in Tikz

I would like to draw some 2D and 3D vectors in Tikz with certain properties. The following primitive graph sums what I desire: I just need the first quadrant of the Cartesian coordinate system for ...
2
votes
2answers
352 views

addplot3 [area plot] filling the wrong area

using some saved data, i use (The data file cane be download from pX.txt where the first column is the x and at each iteration, I plot the other columns with respect to the first column) ...
5
votes
2answers
455 views

HSV shading of cone in pgfplots

How can I shade the surface of a cone according to the HSV color space? I'd like to create a drawing similar to this from Wikipedia: So far, I have this code: \documentclass{standalone} ...