Questions tagged [tikz-3dplot]
This tag is for questions related to the tikz-3dplot package for enhancing the TikZ coordinate system to 3D.
487
questions
1
vote
0
answers
38
views
3D Plot - Step Function
I would like to generate a 3D picture for a step function, something like this:
but I got stuck. Below, I tried something.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{3d}
\begin{...
5
votes
1
answer
89
views
Merging 2 hemispheres using tikz
I am trying to reproduce this complicated figure using tikz : this consists of 2 merging hemisphere as shown below :
I don't know if this is really difficult in latex but I have tried to inspire ...
5
votes
2
answers
170
views
Cylindrical surface is filled incorrectly when rotated around some axis
I am trying to make a Furuta Pendulum with the help of TikZ and the parts are mostly cylinders and cylindrical rods. I can draw the shape of the cylinders just fine without filling colors.
However, ...
2
votes
0
answers
40
views
TikZ fill behavior depends on perspective (tikz-3dplot)
Here is my MWE:
\documentclass{minimal}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usepackage{tikz-3dplot}
\tdplotsetmaincoords{80}{-5}
\begin{document}
\begin{tikzpicture}
\draw[fill=gray] (1....
1
vote
0
answers
46
views
pgfplots or tikz curved axis/surface for vector field
I am looking to draw a 2D plane of vectors in latex. Essentially a combination of the following two pictures.
I can do the first picture with just \path and \draw, and the second with quiver. But, I ...
1
vote
0
answers
34
views
types of systems of linear equations and intersection of planes, with tikz
Is there a simple way using tikz to graph a plane from its equation (like those of the systems on the right side, e.g. 2x +3y -z = 11), and that allows me to represent the intersection of two or three ...
-4
votes
1
answer
51
views
How can we sketch three dimentioan films with different thicknees?
I want to sketch this box-like configuration
I wanted to start writing codes but I have some default options. I need to complete it.
\documentclass[dvipsnames,svgnames,x11names,border=5pt]{standalone}...
1
vote
1
answer
45
views
3D Spherical Coordinate Add arc new angle in varphi and change placement for theta angle
I have this MWE from tikz.net, but I want to edit the angle:
add new angle (\varphi) between x and z axis
change the current angle between y and z axis (\theta) into between y axis and vector r, ...
0
votes
2
answers
64
views
How to create a mapping like the following figure?
I am trying to make a mapping like this picture
I tried
\documentclass[tikz,border=3.14mm]{standalone}
\usepackage{tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{110}{70}
\begin{...
5
votes
1
answer
149
views
How to make a rotated cuboid changing the orientation with respect a point and keep the items on it
I would like to make a representation of a cardboard box changing the relative position with respect to a fixed Reader, like this,
The two boxes are identical, but the top box lies on the narrow-long ...
1
vote
1
answer
40
views
Object rendering looks bad in Tikz-3dplots
I am trying to make some drawing using tikz-3dplot, similar to below image where the axis is perendicular to the cuboid planes.
However, in my case, the axes appear to be significantly misaligned ...
0
votes
2
answers
60
views
How would I remove the back line from the 3D- surface in \tdplotsphericalsurfaceplot
I am trying to plot 3D surfaces using \tdplotsphericalsurfaceplot in tikz-3dplot package. However, I get the lines along the surface even if setting the parameter \pgfsetlinewidth{0pt}. I was ...
0
votes
0
answers
73
views
3D stacked bar histogram with pgfplots
I would like to plot a 3D stacked histogram like this (generated with Excel) with pgfplots:
The data are as follows:
Category Val1 Val2 Val3 Val4 Val5
Cat1 20 23 13 ...
0
votes
1
answer
51
views
Mixed Layering of Parametric Plot in 3d pgfplot
I am attempting to overlay 2d lines on a 3d surf plot in pgfplots, where the 2d lines are the minima of the function z=(1/2)* (x^2)*(y^2) as seen on the plot below. Is it possible to get the lines to ...
3
votes
1
answer
116
views
How can I construct the point S of this tetrahedron and draw a sphere passing through four points A, B, C, D?
I have tetrahedron SABC with BC = 13, AC=14, AB = 15, SA = 16, SB = 17, SC = 18. I see this question here and try to draw the point S and draw a sphere passing through four points A, B, C, S. I only ...
2
votes
1
answer
135
views
Stream plot in TikZ with singularities
I have the vector field F(x,y)=[F1(x,y),F2(x,y)] defined by
F1(x,y)= -(2*y/x^2)*(2*ln(cosh(x)) + (y-2*x)*tanh(x) - x*y*(1-(tanh(x))^2))
F2(x,y)= -(4/x)*(x*y-ln(cosh(x)) - y*tanh(x))
In Mathematica, I'...
8
votes
3
answers
806
views
Drawing six hemispheres
I am trying to draw the following six hemispheres next to each other with their centers aligned on a horizontal line. I am using Alenanno's answer to the question.
I have done this just for the ...
4
votes
2
answers
109
views
draw an ellipsoid contour
I am trying to plot an ellipsoid and a cube inside. Here's what I did.
\documentclass{article}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{75}{30}
\...
2
votes
1
answer
103
views
Tikz 3D Plots not working
I wanted to get into some 3D plotting with Tikz 3D. I just wanted to learn the basics first and I copied an example to see if everything worked correctly. But then this happend:
I know it's probably ...
6
votes
3
answers
420
views
Can I general this code to draw a regular polyhedron?
In this code, I draw a regular polyhedron whose base is an equilateral triangle.
\documentclass[tikz,border=3mm]{standalone}
\usepackage{tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{70}{...
0
votes
0
answers
15
views
Unable to raise zticklabel in 3D plot when using scrbook (working with standalone documentclass)
To add some spacing between touching tick labels, I raise the according box with raisebox{}. Working with 2D graphs until now, this commonly did the trick for me.
However, I am unable to raise a ...
0
votes
1
answer
83
views
Adjust 3D-plot (with pgf TikZ) to textwidth or linewidth. Make 3D plot bigger
I want to plot a 3D-plot with pgf TikZ importing csv data. Everything works fine.
However, I want to make the whole graphic bigger, that it fits to the textwitdh and is better adjusted in the ...
1
vote
0
answers
40
views
Drawing affine cone on overleaf
I do not have that much experience with plotting in LaTex and have no idea how/where to start plotting the following image:
I would really appreciate some help, thank you!
0
votes
1
answer
37
views
3D cartesian space with tikz-3D and placement of measurement arcs to show elevation angle
I currently have the below code
\tdplotsetmaincoords{60}{45}
\begin{tikzpicture}[tdplot_main_coords]
\coordinate (0) at (0,0,0);
\tdplotsetcoord{P}{3}{45}{45}
\draw[thick, ->] (0,0,0)...
1
vote
1
answer
76
views
Add angles to 3d drone
How can I add Euler angles and XYZ angles to the code like the picture?
\documentclass[tikz]{standalone}
%\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{3d, arrows.meta, calc, quotes}
\...
12
votes
1
answer
533
views
How to draw a 3D sphere and a 3D cone for Spherical coordinates
I'm trying to replicate this figure:
Right know, I have this code:
\begin{figure}[H]
\centering
\begin{tikzpicture}[yzx, scale = 0.9]
\draw[->] (0,0,0) -- (5.5,0,0) node(x)[left]{$...
3
votes
1
answer
150
views
How to draw the solids to refer to cylindricals coordinates
I'm trying to replicate this figure:
but I don't know how to draw these planes. I need to draw the plane for constant z, rho and phi. I know that, to draw this, many lines of code are needed but the ...
0
votes
1
answer
119
views
How to draw a 3D sphere with axes and vectors and some text in TikZ
I was trying to reproduce this particular plot in Latex. I would like also to be able to write some text to the side or inside of the sphere. Thanks.
EDIT:
I am adding my attempt here as well as ...
2
votes
1
answer
46
views
How to Combine with \begin{scope} Tikz with `tikz-3dplot` and another just casual `tikz`
it is just combining two pictures, one is using tikz-3dplot the other is just tikz. This is the code. I want the picture to be side to side, left and right. I usually use \begin{scope}..\end{scope but ...
0
votes
1
answer
89
views
Could you please tell me how to use LaTeX to draw the following graph?
Could you please tell me how to use LaTeX to draw the following image?
0
votes
0
answers
72
views
Cylinder inside the Sphere
In the post, How can I draw cylinder inside a sphere like this picture with Tikz?,
the cylinder is sketched inside the sphere , but I want it to be slightly different.
I don't want A, B, A', B', ..., ...
1
vote
1
answer
156
views
scale & view at 3d plot
I want to have the graph of this function:
Here how it looks like from geogebra:
I wanted to draw it with tikz, so I wrote this code:
\documentclass[a4paper, 12pt]{article}
\usepackage{pgfplots}
\...
2
votes
1
answer
161
views
How to draw the lateral surface of a truncated cone with tikz 3D
This is my first question, I apologize for any inconvenient.
I have two coaxial circumferences that are the basis of a cone. I would like to fill the area between them, as the lateral surface of a ...
2
votes
2
answers
199
views
Connecting 3d bodies into one
Here is a nice way to make some 3d objects, but I've failed to find a way to connect two 3d objects into single one object like this one (also it would be nice to know how to add arrows with numbers):
...
0
votes
0
answers
50
views
Animating all possible rotations of a cube
This cube in the MWE below is only rotating about the x-axis and I would like to show all possible rotations of a cube. I will be really grateful if I can be helped on time.
\documentclass[border=5pt,...
6
votes
2
answers
230
views
Z-X-Z Angles TikZ-picture 3d :
I'm willing to create a similar graph as this one:
I've tried the first figure rotation, and the result was pretty cool:
Here's its code:
\documentclass[tikz,border=10mm]{standalone}
\usepackage{...
4
votes
1
answer
130
views
How to draw plane partitions without lines separating cubes
I am trying to adapt the ''Plane partition'' example by Jang Soo Kim to draw plane partitions without lines in between the cubes. I have tried to do so by giving these lines the same color as the ...
3
votes
2
answers
132
views
How can I get dashed line in the segment EH?
I am trying to draw a cube with dashed at some place of the segment EH.
I tried
\documentclass[tikz,border=3mm]{standalone}
\usepackage{tikz,tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{70}...
0
votes
2
answers
291
views
Drawing an eighth of a sphere in tikz
What would be the best way to draw an eighth of a sphere like this one using Tikz? I have found many ways to draw a sphere, but not a portion of a sphere. This question is the closest I get, I never ...
2
votes
1
answer
70
views
Plotting a 3D surface based on a condition
I want to plot the function
$$f(x,y) = e^{-\frac{1}{1 - |x^2 + y^2|}}$$
but only for the values where $|x^2 + y^2| < 1$, how can I do this?
According to GeoGebra, the plot should look something ...
3
votes
1
answer
319
views
Plots used in Stewart's Calculus books
I'm trying to recreate some diagrams and graphs on Stewart's Calculus book. I've seen this topic but they didn't explain how to create the top left plot, the one I'm aiming to recreate. To begin with ...
2
votes
1
answer
69
views
tikzkeys not working inside foreach statement
As an attempt to solve my Define a 2D canvas using preexisting points, I came across the idea of @andrew swann's answer to Pass a 3d coordinate via pgfkeys and tried to adapt it.
This is how the 3d ...
1
vote
0
answers
49
views
Define a 2D canvas using preexisting points
Based on the following idea by @gernot from How to define new 2D canvas, I want to adapt it so that I can pass 3 existing coordinates to it.
\documentclass{standalone}
\usepackage{tikz}
\...
1
vote
0
answers
13
views
Switching from standalone to beamer gives an error [duplicate]
I'm trying to modify the below code and use it in beamer instead of standalone, however, when I switch the document class to beamer I get an error "illegal parameter number..this part of the code ...
0
votes
0
answers
42
views
Error when adding arrows along 3d parametric curve
I'm trying to create a 3-D parametric curve using TikZ. I also want to add decoration arrows along the curve. However, I'm getting an error message saying the dimension is too large. So is there any ...
0
votes
4
answers
167
views
How to draw semi cyclinder with tikz
I want to draw below picture.
How can we calculate the tangle angle automically.
%https://tex.stackexchange.com/questions/564162/drawing-half-cylinder-under-a-pyramid-through-tikz
Thank you in ...
6
votes
3
answers
602
views
How to create triangular pyramid of oranges using tikz
I wish to draw triangular pyramids of oranges. The kth layer has k(k + 1)/2 oranges, the kth triangular number. The number of oranges in the nth stack is n(n + 1)(n + 2)/6, the nth tetrahedral ...
3
votes
4
answers
428
views
How to draw a circle in 3D such that the plane containing the circle is orthogonal to a given vector?
How do I draw a circle in 3D space such that the plane containing the circle is orthogonal to a given vector?
0
votes
1
answer
353
views
Drawing an advanced cube with tikz-3dplot
I want to draw a cube with x,y,z coords. I use the TikZ package for that purpose. However, my wished figure (see below) cannot be accomplished by this package alone (I read the tikz-3dplot manual).
I ...
1
vote
0
answers
104
views
Setting the directionality of \tdplotdrawarc in cartesian coordinates
I have an issue with regards to \tdplotdrawarc in TikZ. Consider the following snippet:
\documentclass{article}
\usepackage{tikz,tikz-3dplot}
\usetikzlibrary{intersections,fadings,decorations....