# 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
Filter by
Sorted by
Tagged with
1 vote
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{...
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 ...
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, ...
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
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
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 ...
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
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, ...
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{...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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'...
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 ...
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} \...
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 ...
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}{...
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 ...
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
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!
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
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} \...
533 views

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 ...
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
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
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 ...
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 ...
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 ...
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 ...
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?