Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tikz-3dplot]

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

3
votes
1answer
53 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
30 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
52 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
50 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
20 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
47 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
498 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{...
7
votes
1answer
122 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
45 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
105 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
142 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
114 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
105 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
84 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
76 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} \...
6
votes
2answers
133 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} \...
3
votes
1answer
59 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 ...
5
votes
2answers
396 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
46 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 ...
4
votes
1answer
155 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
37 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
56 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
61 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
52 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 ...
3
votes
1answer
51 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 ...
6
votes
2answers
174 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} \...
5
votes
1answer
233 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 ...
4
votes
1answer
55 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
101 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
363 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
82 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
117 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 ...
3
votes
1answer
179 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
101 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
128 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}...
5
votes
1answer
767 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}...
9
votes
4answers
616 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 ...
4
votes
1answer
76 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: ...
6
votes
1answer
208 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
55 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
279 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
67 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
114 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
305 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
103 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} \...
0
votes
1answer
74 views

Drawing similar picture with tikz

Is it possible to make something like this in tikz? How to? :) f(t) can be literally any curve, this arrow pointing it is just a comment, not a part of a drawing
1
vote
1answer
123 views

Plotting 3d vectors with a light cone in background

I was trying to plot a a couple of 3d vectors with a light cone in background. The code is a fusion of the following two old answers: Cut-off cone in TikZ and 2D and 3D vectors in Tikz. I was not able ...
4
votes
1answer
142 views

3D Surface Plot

I am using TIKZ (tikz-3d) plot to create a cartesian grid and to create a surface(a section of a sphere) passing through the surface. First I create a 3d cartesian mesh using the following code:- \...
9
votes
1answer
212 views

How to draw a 3d horseshoe in TikZ

I am trying to draw an experimental setup involving a horseshoe magnet. I am having difficulty of hiding lines that should not appear, and I am unsure how to use shading to indicate the different ...