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
102 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
64 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
139 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 ...
5
votes
1answer
59 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
95 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
54 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
79 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
54 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
21 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
54 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
504 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{...
6
votes
1answer
143 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
57 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 ...
0
votes
1answer
108 views

A distribution of clocks in different rulers in a 3D plane

Starting, for example as MWE from the answer's Torbjørn T. at this question plotting a grid like this with TikZ, \documentclass[tikz,border=4mm]{standalone} \begin{document} \begin{tikzpicture}[>=...
4
votes
2answers
168 views

How can I draw a circle knowing center and radius lies on a plane?

My problem is: Let be given pyramid SABC with AC = 5a, AB = 4a, BC = 3a, SA is perpendicular to the plane (ABC), SA = h; E is projection of A on SB, F is projection of A on SC. Four points E, F, C, B ...
1
vote
1answer
208 views

Plotting point on a graph

I would like to draw the curve shown below including the marked points and the name of the curve. Using the code \begin{center} \begin{tikzpicture}[scale=0.8,domain=-2:20] \begin{axis}[ height = 11....
2
votes
1answer
131 views

Intersection of a sphere and a plane knowing equations

I am trying draw a circle is intersection of a plane has equation 2 x − 2 y + z − 15 = 0 and the equation of the sphere is ( x − 1)^2 + ( y + 1)^ 2 + ( z − 2)^ 2 − 25 = 0. The plane cut the sphere is ...
1
vote
1answer
141 views

tikz-3dplot and drawing curves and surfaces in 3D

I used the tiikz and tikz-3dplot packages a bit to draw figures in 3D and 3D. I however never yet plotted a mathematical function, and am not sure how to do it. Could someone please give me a minumal ...
3
votes
1answer
90 views

How can I draw this cylinder with 3D?

I am trying draw this cylinder. I used tkz-euclide. My code \documentclass[border=2mm,12pt]{standalone} \usepackage{fouriernc} \usepackage{tikz} \usepackage{tkz-euclide} \usetkzobj{all} \...
5
votes
2answers
137 views

How can I get full line of circle of this picture?

Based on my question at here How to draw dashed arc of a circle behind pyramid? I tried \documentclass[border=2 mm,12pt,tikz]{standalone} \usepackage{tikz,tikz-3dplot} \usepackage{tkz-euclide} \...
4
votes
1answer
72 views

Rotated tikz-3dplot: How to automatically distinguish between visible and hidden lines?

So I have a script that generates a figure of points and triangular elements representing a discretised hemisphere: See below for code. Now I'm wondering if there is some good way of drawing this ...
4
votes
2answers
413 views

How to draw dashed arc of a circle behind pyramid?

I am trying to draw like this picture I tried \documentclass[border=2 mm,12pt]{standalone} \usepackage{fouriernc} \usepackage{tikz} \usepackage{tikz-3dplot} \begin{document} \...
2
votes
1answer
49 views

Square Loop Made of Cylindrical Wire with Uniform Cross Section

I am trying to draw a square loop made of thick cylindrical wire with uniform cross section lying on the ground as is given in Square_Loop.png. Plotting such a loop in 3D as a rectangular frame drawn ...
3
votes
1answer
204 views

Drawing Torus with semi-dashed line on it [duplicate]

I would like to draw : To draw the above torus, I have used the following codes : \documentclass[margin=2mm,tikz]{standalone} \usepackage{pgfplots} \begin{document} %Oberflächenproblem \begin{...
1
vote
1answer
44 views

pgfplots - remove xz and yz background planes

I'm trying to get a 3dplot with only xy plane, without z axis and zx and zy planes. To be clear, this is the best result i've got: and this is what i'd like to obtain: Here's the code: \begin{...
2
votes
1answer
59 views

TikZ 3D plot : how to add spaces between tick labels to prevent them from colliding?

I have a 3D plot with colliding yticklabels, which I have been unable to fix for now. Here is my minimum working example: \documentclass[10pt]{standalone} % \usepackage[utf8]{inputenc} \usepackage{...
1
vote
1answer
63 views

How could I graph z=sqrt(x^2-y^2) using Pgftools? I believe I've all suggestions on the internet but to no avail

I have tried graphing it with the parametric notation (i.e. ({x},{y},{sort(x^2-y^2)}) and as seen on my code below but nothing renders the image shown on graphing calculators. \begin{tikzpicture}[...
2
votes
1answer
56 views

Drawing a curve (not necessarily an arc) in tikz-3dplot

I'm trying to draw a curve in tikz-3dplot that isn't the arc of a circle. I would like for it to specified by control points, similar to how tikz has (0,0) to [controls=+(45:1) and +(135:1)] (1,0). I ...
2
votes
1answer
74 views

Using node or draw circle in tikz-3dplot

I am exploring the tikz-3dplot package for drawing objects in 3d and experienced a problem. I simply want to draw a circle and reference some of the points later, but I found there is a difference ...
5
votes
2answers
179 views

How can I reduce my code to draw this polyhedron?

I am trying to draw this picture My code \documentclass[border=2mm,12pt,tikz]{standalone} \usepackage{tikz,tikz-3dplot} \usepackage{fouriernc} \usetikzlibrary{folding} \begin{document} \...
4
votes
1answer
244 views

How to draw the angle between two intersecting 3D circles

I'm new to TikZ and I'm trying to label the angle between two intersecting circles, as seen in red in the following picture, Below is my code so far which makes the following diagram, \documentclass[...
1
vote
1answer
47 views

tikz-3dplot accumulates the transformation every time let operator is used

In follow up to my previous question, I now have the following problem with the tikz-3dplot library. Every time I use the "let" operator, the transformation matrix seems to act again on the coordinate ...
3
votes
1answer
60 views

tikz-3dplot causes problems to let operator

I am trying to use the 3d-plot library. The plan is to define some basic 2d coordinates at the beginning and then use them to define all kind of 3d points, using the "let" operator: \documentclass{...
1
vote
1answer
103 views

Intersection of a line with a plane, where is wrong in my code?

Let SABCD be a pyramid, A(0,0,0), B(-2,5,0), C(4,4,0), D(6,2,0), S(a,b,h), O is intersection of two line AC and BD. A plane passing through O and parallel to the lines AB and SC cut the lines AB, BC, ...
11
votes
2answers
394 views

Vertical sliced cylinder

I want to explain how the shape of a cylinder is made. Therefore I want te make this picture. My code is this: \documentclass{article} \usepackage{siunitx} \usepackage{tkz-euclide} \begin{document}...
2
votes
1answer
91 views

3d - TiKZ: How to join the 2 faces of a cylinder?

I have the code below to draw the terminal faces of a cylinder shown in horizontal direction. I would like to complete the figure with the 2 lines that show the wall tube. I guess there is something ...
3
votes
1answer
131 views

Intersection of a line with a plane, where is wrong in third way?

Let SABCD be a pyramid, SA perpendicular to the plane ABC, the base of pyramid is a rectangle,SA=h, AB=a, AD=b. A plane P passing A and perpendicular to the line SC cut the lines SB, SD, SC ...
2
votes
1answer
191 views

Is there a command to find coordinates of projection of a point on a plane?

Let SABC be a tetrahedron, SA = c, AB = a, AC = b, SA perpendicular to AB, AB perpendicular to AC, and AC perpendicular to SA. I am trying to find the projection H of the point A on the plane SBC. I ...
3
votes
1answer
107 views

Is there a command to find coordinates of projection of a point on a line in 3D?

Sometimes, I need determine coordinates of projection of a point on a line in 3D. I know The Syntax of Projection in 2D at 13.5.5 The Syntax of Projection Modifiers at Manual for Version 3.1. This ...
1
vote
1answer
137 views

TikZ PGF: How to develop cell values for 3D graph?

Currently there are some awesome pgfplots around here. I think about something like this one: Minimum Working Example (MWE): \documentclass[border=5mm]{standalone} \usepackage{pgfplots, filecontents}...
4
votes
1answer
780 views

How to draw a circle (sphere) passing through four points?

I am trying to draw a circle (sphere) passing through four points B, C, E, F like this picture I tried with tikz-3dplot and my code \documentclass[border=3mm,12pt]{standalone} \usepackage{fouriernc}...
8
votes
4answers
624 views

How to change \foreach to omit a certain multiple

I hope the solution to my problem is not too complicated or tedious. I am drawing a diagram which has one nuisance in it: Every time the sine curve touches the axis TiKz tries to draw a line of 0 ...
3
votes
1answer
92 views

How to connect a node between two 3d tikzpictures

I apologize if this is a repeat of another question, but I would like to connect the nodes A and B from the left hand side of this picture to the top and bottom of the circle in the right hand side: ...
5
votes
1answer
248 views

Brownian motion and normal distribution in Tikz, 3D version

Following a previous question, this representation that might be even more pedagogic in 3D. Based on this working example extracted from This post \documentclass[border=5mm]{standalone} \usepackage{...
4
votes
1answer
59 views

Filling Faces of Spherical Segments with Colours

Thanks to @marmot I have plotted a segment of the spherical shell as shown below. Is there any possibility of filling (including opacity, gradient etc) the faces of the segment in the TikZ code with ...
2
votes
1answer
359 views

How to represent density 3D plots based on the type of the point

I want to plot a data set with xyz points, each of them has a 0 (success) and 1 (error) as a result of an experiment. The data file "data_all_10m.dat" is in this link. I have tested Gnuplot with ...
1
vote
1answer
74 views

Microscopic Structure of Spherical Elastic Membrane

I would like to draw a 2D network on the surface of a light-grey non-transparent sphere. In the actual fact, the network represents a 2D square lattice composed of many balls and springs as proposed ...
1
vote
1answer
141 views

Drawing of some ellipsoid in tikz

I want to plot some ellipsoids like the following ones in tikz but I don't know how can I do it. How can they be plotted in tikz?
5
votes
2answers
348 views

Drawing a perspective ellipse with TikZ

I made the following ellipse in Inkscape But I would like to draw it within TikZ environment.My final goal is to put this ellipse inside a coordinate system. Using the image from Inkscape, here is ...
3
votes
1answer
118 views

surface of revolution in Tikz 3D

I'm trying to make a nice picture from a simple surface of revolution. Here my text: \documentclass[a4paper,11pt]{article} \usepackage{ifthen} \usepackage{tikz, tkz-euclide} \usepackage{tikz-3dplot} \...