The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [tikz-3dplot]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
73 views

Skewed 3D cone projected on xy plave

I am trying to get this plot that contains 2 skewed cones with the center projected onto the xy plane: This is what I have so far as per the solution given here: \documentclass[tikz, border=3pt]{...
4
votes
1answer
67 views

Create projection inside matrix - tikz 3dplot

I can create two nodes in tikz-3dplot, and create a projection like view, like this : But how to create view like this(the right one- only those projection lines) ? I have created the basic, I just ...
1
vote
1answer
62 views

How to plot $x^2+y^2 = 4$ and $z=2$ in 3-dimensional space in Latex

I'm trying to plot $x^2+y^2 = 4$ and $z=2$ in 3-dimensional space with axes labels. I came across pgfplot and tikz-3dplot but I could not do it.
1
vote
1answer
50 views

Strange behaviour of 3D pgfplots example

I am trying to reuse the example shown in this page for another polar plot. that is r=a*sin(n.theta). The output is kind of what I expect as I will post here \documentclass{article} \usepackage[...
2
votes
1answer
51 views

How can I improve a truncated conical picture by using tikz?

I want to draw a 3-dimensional truncated conical picture. Only work that I could do is: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{intersections} \begin{document} \begin{...
5
votes
2answers
263 views

How can I repair Dimension too large of the point S in this code?

I am trying to draw Heronian Tetrahedron at http://mathworld.wolfram.com/HeronianTetrahedron.html. I cannot get the exact results with the message "Dimension too large" of the point S. How can I get ...
3
votes
1answer
57 views

Where is wrong when I use 3dtools to draw the circle SBD in this code?

I want to draw the circle passing three points S, B, D like this picture I tried by using 3dtools but I cann't obtain the result. My code \documentclass[tikz,border=1 mm,12pt]{standalone} \...
4
votes
1answer
170 views

Intersection of 3 planes

I am looking to reproduce the image I am looking to improve my minimal example and ideas for the other cases: MWE: \documentclass{article} \usepackage{tikz} \usepackage{tikz-3dplot} \begin{...
1
vote
1answer
30 views

plots-3d not applying transformation properly

I'm trying to plot a rectangle in 3D, but the following code I've written is giving unexpected results: \documentclass{minimal} \usepackage{tikz,tikz-3dplot} \begin{document} \begin{tikzpicture}[...
1
vote
1answer
32 views

Tikz: Reuse parts of a plot and use parameters?

I have used Tikz to make a cube and now I'd like to make multiple instance of it at different position. Therefore I imaging something like a parameterized pic or a "normal programming function" to ...
1
vote
1answer
70 views

Ellipse in perspective plane around 2 points in 3d space

I have the following trajectory, which should depict some path of 2 points on a rigid body. Each point is characterized by a coordinate frame. Now I'd like to use ellipses around the points instead of ...
2
votes
1answer
111 views

How can fill between two cylinders to create holes in cylinders?

I see question at here creating a small cylinder within a larger cylinder to creat a hole in cylinders. I tried \documentclass[border=1mm,12pt,tikz]{standalone} \usepackage{tikz-3dplot} \...
0
votes
2answers
52 views

Plotting (x,y, z axes)

I have some problems with this. I need to plot x, y and z axes, and then, this 3d figure. On the Net I did not find something similar (examples etc.). I need some hints or links that can help me with ...
2
votes
1answer
136 views

Where is wrong in my code when drawing circle SAD and how to draw dasded line this circle?

Based the answer at here, How can I draw a circle knowing center and radius lies on a plane? I am trying to draw the circle SAD.Where is wrong in my code when drawing circle SAD and how to draw dasded ...
6
votes
1answer
286 views

How to draw two circles are intersections of two planes and a sphere?

I am trying draw two circles are intersections of two planes and a sphere. \documentclass[tikz,border=1mm, 12 pt]{standalone} \usepackage{tikz-3dplot} \usetikzlibrary{backgrounds} \makeatletter % ...
5
votes
1answer
271 views

How to draw correct arc of two circles?

I saw this answer How to draw this arc (intersection of a plane and a sphere) automatically? and tried to draw this sphere. But, I can't obtain the correct result. How can I get the correct result? \...
0
votes
1answer
50 views

Surf plot with tikz

I am trying to regenerate a surf plot from Matlab using 3-d-plot of tikz. The graph should look like this: But with my code: \documentclass[]{article} \usepackage{pgfplots} \usepackage{pgfgantt} \...
3
votes
1answer
110 views

How to draw this arc (intersection of a plane and a sphere) automatically?

Based on the answer at here How can I get correct the point A and B automatically in this picture?, I tried with the sphere \documentclass[tikz,border=1mm, 12 pt]{standalone} \usepackage{tikz-3dplot}...
9
votes
1answer
354 views

How to get trace to get a cylinder when I rotate a rectangle?

I am trying to rotate a rectangle to make trace and get a cylinder. My code \documentclass[border=2mm,12pt,tikz]{standalone} \usepackage{tikz-3dplot} \begin{document} \pgfmathsetmacro{\myr}{3} ...
7
votes
2answers
478 views

How to draw a cube that can be inscribed within a right circular cone?

I am trying to draw a cube that can be inscribed within a right circular cone (cone of radius r and perpendicular height h). I see at here https://www.geeksforgeeks.org/largest-cube-that-can-be-...
8
votes
3answers
1k views

How to draw a square on cylinder?

Let be a cylinder with radius of the base circle is equal to 3 and the altitude of the cylinder is equal to 2. How can I draw square ABCD so that A, B and C, D lie on two base circles. I tried \...
4
votes
1answer
142 views

Is there a simpler answer to find projection of a point on a plane?

From here Is there a command to find coordinates of projection of a point on a plane?, I got an answer. I know that, the calc library got updated and way before the update of calc made it to CTAN. I ...
4
votes
1answer
327 views

How can I draw this cone with a nice edge in 3D?

I see at Add an angle to a sphere to draw a cone in 3D. I tried \documentclass[tikz,border=3.14mm]{standalone} \usepackage{sansmath} \usepackage{tikz-3dplot} \usetikzlibrary{3d,backgrounds,quotes,...
0
votes
0answers
31 views

A paraboloid intersecting a plane [duplicate]

I need to plot (in black and white) the following situation using Latex codes: The portion of paraboloid z=x^2+y^2 under the plane z=2 and put an orientation on the intersection circle as in attached ...
3
votes
1answer
137 views

How to repair Dimension too large when I draw this triangle?

I use this code to draw triangle. When I choose a = b = c = 5, I got the result. \documentclass[12pt, border = 1mm]{standalone} \usepackage{tikz} \usepackage{tikz-3dplot} \usetikzlibrary{...
1
vote
1answer
139 views

How can I get correct the point A and B automatically in this picture?

I am trying to find a general method to find the points A and B automatically of this picture. I can not get it. I must calculate by hand. \documentclass[tikz,border=3.14mm]{standalone} \...
19
votes
0answers
273 views

Symbolic 3d coordinates in TikZ

Warning: answering this question may require some efforts. The purpose of question is to "teach TikZ 3d coordinates". What does that mean? If we define a coordinate in TikZ, \path (<x>,<y&...
5
votes
1answer
137 views

tikz-3dplot: angle-placed cones in a sphere

I asked myself: Is there a simple way to transform the solution "small circles of a sphere" from @John Kormylo (code below) into cones, placed in the sphere by the two angles theta and phi? Hint: I ...
3
votes
1answer
50 views

TikZ: Z-index with Bloch Sphere

This is a follow-up question regarding this. I have improved the answer posted but still not fully satisfied. My output now looks like the following: The desired (photoshopped) output is: Thanks in ...
2
votes
1answer
83 views

Draw circle passing through three points in space

Based on the question at here How can I draw a circle knowing center and radius lies on a plane? I tried to draw the circle passing through A, H, K. I can not the result when I in put the line \...
1
vote
1answer
92 views

tikz-3dplot: Draw a small circle of a sphere by formula - find the mistake or make it smarter

I use the formula for 3D-circles. But there is something wrong. Does anyone feel like scanning the code or has a better solution? \documentclass[margin=5mm, tikz]{standalone} \usepackage{amsmath, ...
1
vote
1answer
53 views

tikz-3dplot: How to draw small circles of a sphere in a given angle?

What is the right method to draw a small circle at a certain angle? I can only do it improvisational for the right angle. Hint: I want to draw such a picture: \documentclass[margin=5mm, tikz]{...
3
votes
1answer
103 views

How to draw a cylinder in prism?

I am trying to draw cylinder like this picture I tried \documentclass[border=2mm,12pt,tikz]{standalone} \usepackage{tikz-3dplot} \usetikzlibrary{3d,calc,backgrounds,patterns} \usepackage{fouriernc} ...
1
vote
1answer
70 views

tikz-3dplot: How to get a coordinate system with costum axes? [duplicate]

What do I have to set to get a coordinate sytem like MWE: \documentclass[]{standalone} \usepackage{tikz} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{60}{110} %\...
0
votes
0answers
43 views

Auxiliary drawing tools

I am a beginner, drawing with tikz is a bit difficult for me. Is there an auxiliary drawing tool that is suitable for beginners? Especially drawing three-dimensional graphics.
6
votes
1answer
215 views

Equatorial plane intersecting a Bloch sphere

I have created a Bloch sphere and I would like to show the equatorial plane intersecting the sphere. I have tried the following but I am sure there is room for improvement. \documentclass[border=5pt]{...
0
votes
0answers
43 views

Draw a surface and its normal vector

Draw the surface and its normal vector. I want to insert a similar image in latex, how should I draw such a schematic? What tools should I use to draw similar diagrams? It may be used frequently in ...
2
votes
1answer
125 views

Drawing a cone and contours with TikZ

Here's a sketch, produced with a vector-based drawing app, of the figure that I wish to produce in TikZ: Here's an initial draft of TikZ, which only shows a 4-sided cone: \documentclass[tikz]{...
2
votes
1answer
82 views

Outline of 3D plot and shading

I'm trying to draw the outline of a 3D graph (a simple function à la -x^2+y^2) but I don't know how to get the ``envelope'' of that graph. \documentclass[tikz, border=2mm]{standalone} \begin{document}...
6
votes
1answer
158 views

best way to draw planes in 2d?

I would like to replicate the following image and I would like to know how to represent the third state into the page by using the tikz-3dplot package, maybe starting from the answer to a previous ...
6
votes
1answer
107 views

drawing a 3D cone cut by a vertical plane

What I am trying to draw is a half cone with the peak at the middle of a braun bar right behind the wind turbine, which got cut by the vertical plane. The intersection line is marked red. This is ...
3
votes
1answer
238 views

3D Histogram / bar chart

Hello fellows and folks! I wanted to know if it is possible to plot a 3D histogram like these: The file is a .csv one with 100K rows/tuples. My idea is to plot users (x-axis), movies(y-axis) and ...
2
votes
1answer
117 views

pgfplots: How to draw mesh of 3D plot only in y direction (but not in x direction)?

Assumed we draw a simple 3D plot with pgfplots. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{pgfplots,pgfplotstable} \usepackage{filecontents} \begin{filecontents}{testdata....
2
votes
1answer
103 views

Drawing curved cone 3D

How to draw curved cone in 3D with a given curvature or radius? Here is coding for straight cone. \tdplotsetmaincoords{70}{0} \begin{tikzpicture}[tdplot_main_coords] \def\RI{2} \def\RII{1.25} \draw[...
1
vote
1answer
66 views

How to use reverseclip with a rectangle?

I want to use reverseclip with this picture. First way. \documentclass[border=2mm,tikz]{standalone} \usepackage{fouriernc} \usepackage{tikz-3dplot} \usetikzlibrary{calc,backgrounds} \usepackage{...
1
vote
1answer
28 views

Can't get the hold of the function \tdplotsetrotatedcoords{}{}{}

I'm still trying to get a hold of the function \tdplotsetrotatedcoords{}{}{}. I give an example: \documentclass[a4paper,11pt]{article} \usepackage{tikz, tkz-euclide} \usepackage{tikz-3dplot} \...
0
votes
1answer
67 views

Drawing a top in tikz

I want to draw a top to show the Gyroscopic Effect in my techinical reports,just like the figure : the top can be simplified like a circular cone ...... Could any body give some tips for me ?Thx for ...
8
votes
1answer
510 views

Filling an area between two curves

I would like to draw the following figure: To do this I have used the following codes : \documentclass[10pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \pagestyle{empty} \begin{...
8
votes
1answer
164 views

How can I make a cone from a cube and view the cube with different angles?

I am trying to draw a cone with vertex C and base is circle BDG and want to view the cube with different angles like some following pictures. I tried \documentclass[border=2mm,12pt,tikz]{standalone} ...
3
votes
1answer
81 views

Coordinate system with tikz-3dplot

I am trying to use tikz-3dplot to draw a cube and I was particularly interested by the possibility to define a point using \tdplotsetcoord which allows to get x/y/z/xz... coordinates. But when I try ...