Questions tagged [tikz-3d]

For questions about projections using {tikz-pgf} including PGF's `3d` library.

Filter by
Sorted by
Tagged with
0 votes
1 answer
70 views

Have sides of translucent cylinder appear

This is a very simple answer probably, but I want/need the sides of this cylinder to appear. The goal is to have it be for volumes of rotation by cylindrical shells. The goal is to have something like ...
Ally's user avatar
  • 69
3 votes
0 answers
56 views

Draw vector field on top of surface of spherical octant, but not in specific regions

I am interested in drawing a vector-like field towards, or away from, a single point on the surface of a unit octant. If possible, I would like to constrain this to not occur within an area spanned by ...
Johannes Nauta's user avatar
2 votes
0 answers
63 views

tikz: specifying coordiantes system in 3d

currently I am working with TikZ program in latex to draw a 3d figure. I need to redefine a coordinates system in 3d. The following is a MWE I tried: \documentclass{scrreprt} \usepackage{tikz} \...
Ronghua Xu's user avatar
0 votes
0 answers
43 views

Draw a surface in a nonrectangular domain

I have the following code to draw a surface using tikz-3d: \documentclass{standalone} \usepackage{tikz,tikz-3dplot} \begin{document} \tdplotsetmaincoords{75}{135} \begin{tikzpicture}[...
Angelo Aliano Filho's user avatar
0 votes
1 answer
30 views

Positioning Axis Label to End of Axes in 3d

How do I position the axis label so that it looks like the following picture (at the end of the axis as if it was an extension of the axis): \pgfplotsset{ every non boxed x axis/.style={ ...
tangulo's user avatar
  • 45
0 votes
2 answers
78 views

3D view of a 2D rectangle

I would be grateful to know how to: fix the code to make it work be able to control the viewing angle so that I can see the rectangle like the top surface of this image \documentclass{article} \...
Diaa's user avatar
  • 9,529
0 votes
1 answer
56 views

Pgf cone drawing

I used the following code, below which is altered from https://latexdraw.com/draw-a-plane-intersecting-a-cone-in-latex/ \documentclass{standalone} \usepackage{pgfplots} \usepgfplotslibrary{colormaps} ...
Paul A's user avatar
  • 933
0 votes
0 answers
72 views

Truncated parabolic cylinder

I would like to know if it is possible to draw an image like this in 3D using tikz? Am not acquainted yet with 3D diagrams in TikZ and I would like to draw something like the picture attached. Does ...
Alisson's user avatar
1 vote
0 answers
60 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{...
Iuli's user avatar
  • 471
0 votes
1 answer
208 views

(A cube with labeled vertices) How to draw a cube with a letter written on each of the vertices, and the invisibible edges are marked as dotted lines

Please edit for suitable tags, if you know some related tag. See the 3rd page of this paper by Bhargava. There is a cube drawn there, which you can see in the image below (everything is black and ...
Davood's user avatar
  • 349
1 vote
1 answer
97 views

Filling in capped off torus in tikz 3d

I am trying to draw a capped off torus in tikz 3d, see MWE below. I'd like the surface to be colored in gray for the first picture, and everything below the blue line to be colored in gray for the ...
vheerde's user avatar
  • 13
3 votes
1 answer
332 views

How to draw the following sphere with cylinder in it?

I want to draw the following picture using tikz? For this I used the code of https://tex.stackexchange.com/a/597008/241755 post but I want x-axes to be from origin to right. It is not just a matter ...
C.F.G's user avatar
  • 552
3 votes
1 answer
141 views

Creating a filled curved surface with TikZ

I'm trying to color the surface of a cylinder using an isometric perspective with TikZ. Is this something TikZ is capable of? What I've done is approximating the surface with two rectangles, which ...
Simon Lederhilger's user avatar
4 votes
2 answers
185 views

Rotating a plane around its edge on TikZ

I'm trying to rotate the red plane in the right side around the its edge AB, the question is actually about rotating anything around a arbitrary path, I know the rotate around command and that I can ...
Mrcp82's user avatar
  • 43
4 votes
1 answer
89 views

How change the cuboid side where items A, B, C are located

I would like to change this isometric figure \documentclass[tikz,border=1.618]{standalone} \usetikzlibrary{3d,perspective} \tikzset { abc/.style={fill=red,text=white,transform shape}, pics/my ...
pablo's user avatar
  • 441
10 votes
2 answers
578 views

Drawing a basket in Tikz 3d

For some mathematics project I'm trying to draw a basket as sketched in the picture below, I've gotten some of the lines of the basket in, see picture below after the MWE, however I'm still ...
Matthew Lou's user avatar
1 vote
1 answer
168 views

Help with labels in TikZ

I'm using PlotNeuralNet (with slightly modified Python code) to generate TikZ code for my neural network architecture. Currently, it generates this TikZ code (it is a simplified version of my full ...
StrawberryFieldsForever's user avatar
0 votes
3 answers
236 views

Add angles in TikZ-3d

I've done this figure in TikZ, but I don't know how to add and label the angles in TikZ-3D, how can I do it? Here's the original figure : Here's mine plus the code : \documentclass[tikz]{standalone} \...
Echelle-courte's user avatar
0 votes
0 answers
57 views

pgfplots surface not interpolating with neighbors

I am attempting to plot a relatively non-standard surface using pgfplots. The function is declared correctly, and when I create a scatter plot, everything looks as it should (note that this angle in ...
Seraf Fej's user avatar
  • 133
1 vote
1 answer
116 views

Fill a 3d surface with a gradient rather than solid colour

I wish to plot a 3d surface based on its outline coordinates provided in a file data.txt. The following code works as expected. \usepackage{pgfplots} \pgfplotsset{compat = newest} \begin{document} ...
Seraf Fej's user avatar
  • 133
0 votes
1 answer
126 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 ...
Lee's user avatar
  • 15
12 votes
1 answer
613 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]{$...
Peluche's user avatar
  • 611
3 votes
1 answer
175 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 ...
Peluche's user avatar
  • 611
0 votes
1 answer
154 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 ...
Jamie 's user avatar
  • 135
3 votes
2 answers
161 views

Help Me to Create Animation from Still Tikz-3D Image with changing value of one variable

I am just learning tikz with still image. This is my first trying to create animation. I have this code: \documentclass{article} \usepackage{tikz} \usepackage{tikz-3dplot} \tdplotsetmaincoords{0}{0} \...
Freya the Goddess's user avatar
1 vote
1 answer
200 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} \...
Kώστας Κούδας's user avatar
4 votes
1 answer
901 views

Draw Realistic 3D crystal structure of Diamond using Tikz

Can I draw this same exact picture(from Draw realistic 3D crystal structures (diamond)) using tikz in latex? This is what I got till now. from the code: \begin{tikzpicture} \...
Akhil Akkapelli's user avatar
6 votes
3 answers
736 views

How to draw 3d cylinder directed in x axis with TikZ?

How to draw cylinder directed in x axis? \documentclass[tikz]{standalone} \usetikzlibrary{3d} \begin{document} \begin{tikzpicture}[x={(1cm,0.4cm)}, y={(8mm, -3mm)}, z={(0cm,1cm)}, line cap=round, ...
sergiokapone's user avatar
  • 5,454
6 votes
1 answer
241 views

Cut bar by plane (tikz, 3D)

How to draw a gray strip realistically cut in half with a red plane? My idea is to paint some pieces on another layer. But here the joints turned out ugly. Maybe there is another tricky way? \...
sergiokapone's user avatar
  • 5,454
1 vote
2 answers
278 views

3D boxes in perspective

I am trying to draw 3D boxes in perspective, but with no success. The intention is to have several boxes with different sizes on top of each other, like this: This is my MWE: \documentclass{article} \...
Brasil's user avatar
  • 1,286
2 votes
1 answer
334 views

Draw 3D shapes in perspective with tikz

Is it possible to draw a parallelepiped in perspective such as shown in the figure below (with colors, transparency, edges, etc)? Is it easily feasible using tikz or do I need other library? Notes: ...
Brasil's user avatar
  • 1,286
4 votes
2 answers
650 views

3d rectangles in TikZ

I need to draw several similar shapes like this: My code: \documentclass[tikz,border=1mm]{standalone} \usetikzlibrary{perspective} \def\r{0.5} \def\ri{\r*0.5} \def\rii{\r*sqrt(2)/2} \def\riii{\r*...
e_moro's user avatar
  • 888
3 votes
4 answers
549 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?
Max Flow's user avatar
  • 354
1 vote
0 answers
95 views

How to draw on any plane with 3dtools

Salvation I am testing the 3Dtools library (https://github.com/marmotghost/tikz-3dtools). I find the idea interesting. It is possible to define a plane either by 3 points, or by a vector and a point, ...
rpapa's user avatar
  • 12.3k
4 votes
1 answer
371 views

3D Geometry using Tikz

I use the following code to generate a 2D geometry: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usepackage{graphicx} \usepackage{amsmath} \usepackage{amssymb} \usepackage{...
Rahman's user avatar
  • 189
-2 votes
2 answers
100 views

Drawing 3D perpendicular rectangles in latex

Here is the picture I want to draw: I want to be able to change the yellow color also. also, not that the arrows are reversed on the grey rectangle Could someone help me in doing so please?
Happy's user avatar
  • 363
3 votes
2 answers
670 views

How to draw on a curved 3D surface?

I'm trying to reproduce in LaTeX this image, hand-drawn with Mathcha. The thing is, I can't find anything online about how to draw on curved (smooth) 3d surfaces like this sphere. Technically, the ...
Edoardo Serra's user avatar
10 votes
1 answer
496 views

How do I shade a cone to match ball shading?

How do I shade a cone like this Note that the bright part is wider at the bottom (because the radius is greater there). The intent is that the cone and \tikz \shadedraw[ball color=red] circle[radius=...
Mogens's user avatar
  • 101
2 votes
1 answer
92 views

Simple way to change azimutal axis with perspective library

I use the great tikz perspective library by Max Snippe and I need to change the axes definition so that the vertical (azimutal) one is not z anymore. I'm pretty sure there is a simple and efficient ...
Tobard's user avatar
  • 1,189
10 votes
1 answer
534 views

Planes tangent to a cylinder

I am trying to make this graph I have had several advances compared to my original question, but I don't know how to color the part blue, This is the result that I have obtained together with the ...
Zaragosa's user avatar
  • 557
0 votes
0 answers
85 views

TIKZ3D - Drawing arc with superimposed label

I would like to receive some help from you. I've been able to add the label for a vector in the middle of the arrow itself in tikz3d by using a command like \tdplotsetcoord{Mp}{\rvm}{\phm}{\thm} \path ...
L Mascolo's user avatar
  • 307
5 votes
1 answer
567 views

3D rotation for portion of tikz

I'm trying to reproduce the Euler angles diagram, here is the first first rotation known as precession rotation And I was successful reproducing this diagram in TikZ+pdfLaTeX Here is the code for ...
Allaw Hussein's user avatar
1 vote
1 answer
281 views

Gradient field of a Function for 2 Variables

Initially I had something that looked like this, where I had something that was supposed to be a hemisphere and below was the gradient field. But I couldn't get the edges to go all the way down and ...
MathBoi's user avatar
  • 13
0 votes
1 answer
109 views

Rotations of 2D object in 3D space tikz

I would like to draw a fully connected graph on a plane, then adjust its inclination with the plane and link to every node in the network another role coming perpendicularly in the z-direction. Since ...
GiuTeX's user avatar
  • 1,299
-1 votes
1 answer
137 views

How to draw 2 figures that slices the sphere in 2 different ways?

Here is the figure I wanna draw in overleaf: Any advice about how to draw this, please?
Happy's user avatar
  • 363
5 votes
1 answer
192 views

How can improve my Tikz scripting? (3D Cube)

I've been learning LaTeX for a while, and today I'm trying to create graphic elements for the first time using Tikz. This is what I'm trying to achieve: And this is what I've made: \documentclass{...
Fariz Awi's user avatar
0 votes
1 answer
93 views

Plotting the path left by a vector rotating around the z axis and towards the xy plane with tikz-3dplot

I have a vector along the z axis and I want to show the path traced by the point of this vector while it is spiraling down towards the xy plane. In theory, this path should be traced on the surface of ...
offgabriele's user avatar
3 votes
1 answer
256 views

Specify Radius for a cylinder, or draw edge for two 3d circles

I want to plot an optical fiber as in the picture below: As you can see, the drawing is composed of three concentric cylinders of different radii. This question is about drawing just one of those, ...
tush's user avatar
  • 1,115
3 votes
1 answer
288 views

Draw Arcs On Spherical Caps With Fill

I asked this question: Draw Arcs On Spherical Caps and a user was kind to answer. However, I am trying to improve on design by changing some colors, adding fill, and adding coordinate (x,y,z) axis ...
Vladimir's user avatar
  • 817
0 votes
2 answers
183 views

How to 3d plot ax + by + cz = d equation in tex?

How to plot plane from equation rather than using coordinates in a tikz-picture environment like
Akhil Akkapelli's user avatar