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

learn more… | top users | synonyms

2
votes
0answers
57 views

Drawing functions on spheres

In a paper, I have a class of functions S1→S2 depending on a real parameter t>0, and I would like to represent some of them on the sphere as curves to illustrate their behavior as t goes to 0, ...
4
votes
1answer
47 views

Buggy behavior of tkzMarkAngle

I'm trying to mark an angle on a 3d plot with \tkzMarkAngle which seems to behave quite oddly in combination with \tdplotsetmaincoords Here's what I mean, below is the minimal example: ...
6
votes
2answers
91 views

Three dimensional Regression Plan with Residuals

In R, I can make three dimensional Regression plane with residuals with the following command scatter3d(prestige ~ income + education, data=Duncan) with scatter3d function from car R package. I ...
1
vote
1answer
34 views

Side by side diagrams with equations in between?

What I am trying to do is take the 3-Simplex (tetrahedron) and put the 2-Simplex (Triangle) to the right of the tetrahedron (ultimately 3 of them but of course smaller) but separated by = and some +'s ...
1
vote
1answer
31 views

Glitch in 3D surface plot using pgfplots not solved by z buffer

The solution from this question does not work for me. The function is (x+y)^A. If I plot it with A larger than one, the 3D graph is fine. However, the graph is horrible if A is lower than one. ...
0
votes
0answers
33 views

How to draw three-dimensional parametric curves?

if we have the coordinates of a 3D_parametric curve in three matrix,that extracted from MATLAB,how draw it with latex? Do I have to enter the coordinates manually?Or is there a simpler way?
1
vote
1answer
73 views

3dplot viewing angle

I need to choose my view angle in \tdplotsetmaincoords{ }{ } (elevation and azimuth) so that my plot ends up looking like the one below. I wish to do this entirely via the view angle, not relabelling ...
1
vote
1answer
61 views

Fit 3D plot onto a shape

I want the 3D plot to be specified in terms of the coordinate system used to draw the rectangle. Right now, the 3D plot takes up way too much space and is off picture. I want it to be contained ...
1
vote
1answer
73 views

Draw a 2D functions in tikz

I want to be able to plot in a 3D environment any type of function of two variables z = f(x,y), where x and y are specified within a given range. For instance plot f(x,y) = x^2 + y^2 where x in [-2,2] ...
11
votes
2answers
183 views

tikz-3dplot: Rotate arc around specific axis

\documentclass[tikz]{standalone} \usepackage{tikz-3dplot} \begin{document} \begin{tikzpicture}[scale=2] % draw arcs \draw[canvas is zx plane at y = 1, line width = 1pt] ...
1
vote
1answer
85 views

Drawing spherical 3D plot with PGFPlots

I want to draw some plots which looks like that ; I did not find anything related to this in the doc, and browse the Internet without success. I found ways to plot spherical values with a changing ...
5
votes
1answer
108 views

How to use custom colorscheme with `\tdplotsphericalsurfaceplot` from `tikz-3dplot`

As the title suggest I am trying to use a different color scheme than is currently the default in the tikz-3dplot package for the \tdplotsphericalsurfaceplot command if one uses the option ...
4
votes
1answer
86 views

Tikz Nozzle Design

I'm new to Tikz and I would like some help with a nozzle I'm designing (a nozzle for reaction control thrusters). I want to place a couple of nozzles on the sides of a cube. My idea was to use a ...
1
vote
1answer
72 views

tikz-3dplot , draw spheres instead of circles for 3D diamond lattice site visualisation

This is my first actual LaTeX question, so I hope I get it right. If not, please tell me. I've looked around, but couldn't find an answer to my question, not on stackexchange, but also not in the ...
4
votes
0answers
57 views

3-dimensional plot of a recursively defined curve?

Is it possible to draw 3-dimensional diagrams with LaTeX, as in the below picture, that come from a recurrence formula?
0
votes
2answers
122 views

Find cylinder tangent in 3D

I am trying to draw a complicated form that is loosely based on a half cylinder. I am using tikz-3dplot to be able to accurately draw arcs in planes other than the xy-plane and to nicely set the ...
18
votes
1answer
506 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. ...
4
votes
1answer
126 views

Drawing a shaded hemisphere using tikz?

I want to draw a shaded hemisphere using tikz. The final result should look like this (the lower part of the sphere should be removed): Until now I have this code: \documentclass{article} ...
2
votes
1answer
83 views

how to achieve and draw the final rotation of a frame with Euler angles.

I would like to do the final rotation using Euler angles. In this link Euler Angles, the final rotation undergoes three successive rotations, starting from frame (x,y,z), going through (x',y',z') and ...
6
votes
1answer
170 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
206 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
155 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 ...
6
votes
1answer
377 views

Drawing a three-dimensional 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
159 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
138 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: ...
1
vote
0answers
45 views

Reduce mesh size of data set for Surface pgfplot [duplicate]

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
160 views

Inserting an origin 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
261 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 ...
7
votes
2answers
389 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
133 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
123 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
126 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
174 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
156 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
266 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
121 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
217 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
955 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
208 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
186 views

torus to coffee mug homotopy

Does anyone have a TikZ solution to animate the coffee mug --> donut homotopy?
1
vote
0answers
50 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
311 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
265 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
366 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
103 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
281 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
1k 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
449 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
237 views

draw direction cosines using tikz

How I can easily draw the direction cosines using TikZ?
1
vote
0answers
87 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. ...