Questions tagged [tikz-3d]

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

Filter by
Sorted by
Tagged with
3
votes
3answers
100 views

Illustrating Seebeck effect in TikZ

I'm trying to reproduce this image (source) in TikZ. I have these humble beginnings but I'm a little bit daunted by the 3d objects that would be coming next. Could a TikZ wizard advise me on how to ...
19
votes
0answers
235 views
+500

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&...
4
votes
1answer
40 views

tikz: curley brace in a non-parallel plane

I am trying to denote some lengthes in a three dimensional tikz figure. But the result looks weird because the curley braces are not properly transformed. The transform shape option (which does the ...
6
votes
1answer
102 views

Triangulation of 2-Sphere with Tikz 3D

I am trying to draw the triangulation of a 2-sphere in $\R^3$ that is induced by a tetrahedron using tikz-3dplot. What I got so far are the sphere and the corners of the tetrahedron as well as edges ...
3
votes
1answer
115 views

Animating a 3d plane

I'm learning how to produce animations in LaTeX. After some trials with different pictures, I would like to animate the following picture and start from the answer that Marmot provided me in this ...
2
votes
1answer
66 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}...
3
votes
1answer
50 views

pgfplots: How to smoothen a 3D surface plot?

Long time has passed - based on this and this question I would like to know if pgfplots does already support surface smoothening of coordinate based 3D plots in 2019? Minimum Working Example (MWE): \...
2
votes
1answer
69 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
214 views

Drawing a simple plane in 3D space

I'm trying to produce this simple 3d picture, but, since it's the first time I draw a 3d pic, I'm not sure about how to get the plane passing through the line X. The following code shows a first ...
1
vote
1answer
23 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} \...
4
votes
1answer
323 views

Drawing spherical mirrors

What is the best way to draw 3D spherical mirrors like these on tikz?
3
votes
2answers
107 views

Draw a sphere with one handle with Tikz

I would like to draw a sphere with one handle as follows: I have tried with the following code from Draw a sphere with a handle with TikZ, but this is different from my required image. \...
3
votes
1answer
388 views

Drawing 3D convolutional neural network block with TiKZ/TeX

I'd like to draw a 3D volume of blocks for representing convolutional network (CNN) using TikZ. Below is a picture I'm trying to re-create: I've been struggling to create this block for days and ...
2
votes
1answer
65 views

3D pressure field representation

I would like to make a 3d version of the figure below I can draw the different vectors but I can not represent the cylinder. \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc,...
1
vote
1answer
47 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{...
1
vote
1answer
107 views

Drawn 3D prism on tikz

What is the best strategy to recreate this figure in tikz? I would like to add some color gradient to the red "triangular" region (darker at the bottom and lighter on top). Also, the larger side of ...
5
votes
1answer
187 views

How to draw cylinder and cone to finish this drawing?

After a lot of attempts without success, I am asking here: How to draw a cylinder connecting the two circles? How to draw a cone from point A to the nearest circle? \documentclass[tikz,border=5pt]{...
1
vote
1answer
143 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}...
2
votes
2answers
115 views

How to remove one of the sides and show the inside of a cuboid

I would like to remove the top side of the following cuboid, \documentclass[border=3mm,tikz]{standalone} \usepackage{tikz} \newif\ifcuboidshade \newif\ifcuboidemphedge \tikzset{ cuboid/.is family, ...
2
votes
3answers
122 views

parallelepiped inscribed in cylinder

I 'm trying to draw a simple 3D shape (like parallelepiped or cylinder) with tikz, but I fund too complicated codes. I want to draw something like this Is it possible with a simple code? Thank's ...
5
votes
2answers
369 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 ...
5
votes
1answer
234 views

Is it possible to draw this configuration in latex?

I would like to draw this image in Latex. Here the arrows inside the ellipse represent dipoles. They are polarized by the magnetic field $B$. $d$ is the distance between the two ellipses.
2
votes
1answer
122 views

Drawing 2D shapes using 3D coordinates with tikz

I tried to draw planetary system consisting of Sun-Venus-Earth. My code is \begin{tikzpicture}[scale=0.1] %-> DEFINITIONS %... sizes \def\srad{10} \def\erad{3} \def\eorb{60} \def\vrad{0.3} \def\...
9
votes
1answer
240 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 ...
3
votes
2answers
218 views

Draw the three cylindrical sections

I want to draw the three conic sections (circle, ellipse and rectangle) where the cylinder and cross sections are colored: \documentclass{standalone} \usepackage{tikz} \usepackage{animate} \...
5
votes
1answer
315 views

Draw the four conic sections

I want to draw the four conic sections (circumference, ellipse, parabola, and hyperbola) as shown in the picture: MWE: \documentclass{article} \usepackage{pst-plot} \usepackage{tikz} \begin{...
3
votes
1answer
85 views

Drawing a node parallel to any of the x, y or z axis in a rotated tridimensionnal picture

I want to draw a node exactly parallel to one of the three axes that are rotated. One solution could be to compute the axis angle relative to the horizontal line but I don't know what is the best way ...
12
votes
1answer
514 views

How to draw an arc for a bullet

My apologies in advance if you feel that this question is more about drawing instead of being technical. The following diagram is what I want to replicate in Latex: I believe I have done most of the ...
2
votes
1answer
90 views

pgfonlayer pgfplotstableforeachcolumnelement issue

This is the continuation of this issue and this, where I try to draw normal distributions along the regression line for different x values in 3D. The problem now is, for all distributions, I try to ...
5
votes
1answer
128 views

How to retrieve regression line to plot normal distribution upon it

This is a continuation of this question. Below is my current output and problematic area is that brown curve. I am trying to plot pdf as a 2D graph standing upon the regression line (red). I am ...
1
vote
1answer
266 views

Marks do not appear in 3D for 3D scatter plot

I am trying a 3d scatter plot as below, however marks are circles, appearing only in 2D always whichever view I choose. I want them to be flat on the X-Y plane. Please let me know how to do it. I ...
2
votes
1answer
143 views

3D arrow with shade and text with tikz

I want to create a figure as shown with latex/tikz. It contains a three-axis space, 3D arrow with text inside and shadows, and 3D-rotated axis titles etc. Only other examples I find are about 3D ...
0
votes
1answer
88 views

How to make this graph?

Is there any software, which provides Latex code, where can I make this graph? Or could you help me do this using Tikz?
11
votes
2answers
296 views

How to do a planar/multiview/first-angle projection in Tikz?

I need to make quite a few "first-angle projection" in Tikz (see Wikipedia ) for an exercise sheet, so I was wondering if there is a routine to make them? By this I mean that I could give a certain ...
2
votes
1answer
98 views

TikZ: create break in arc behind diameter?

In the picture below, where the back portion of the great semicircle "ducks behind" the arrow-headed diameter, I manually stopped and restarted the arc drawing on the two sides of the diameter. The ...
4
votes
1answer
230 views

Drawing an arc to this image

I used the result in this post to achieve a rotation of a cone about an 3D axis. I am unsure on how to implement the following to this image: I would like the imaginary lines that run along the '...
4
votes
2answers
260 views

Improve or simplify this TikZ code for southern hemisphere?

The code below is based upon the answer by @Max to the question Draw lower (southern) hemisphere and great semicircle with "mathematician's" axes orientation. Question 1. Can the code ...
5
votes
1answer
348 views

Draw lower (southern) hemisphere and great semicircle with “mathematician's” axes orientation

With tikz and tikz-3dplot I want to draw: the unit lower (i.e., southern) hemisphere; and on that two great semicircles through the south pole, i.e., point $(x, y, z) = (0, 0, -1)$, the first joining ...
5
votes
1answer
535 views

How to draw circles in an arbitrary plane

I would like to generate the following image of TikZ: The closest resemblance on the examples is this post. However, I am not sure how to add the circles in the plane of the cubes. Any help is ...
10
votes
1answer
603 views

How to draw the following diagram (a wedge of cheese) using pgfplots or tikz?

I would like to draw the diagram below using either pgfplots or tikz. I am able to draw a cylinder, using the pgfplots manual, but I don't know how to draw a fraction of a cylinder.
3
votes
1answer
454 views

Drawing 3d grids (cubes)

Reading a few examples, while not being optimal, or organized, I was able to reach the following 3D grid drawn \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{...
2
votes
1answer
107 views

Why objects in tikz3d not rotating?

I use tikz-3dplot and I expect that rectangle, grid and similar objects are rotated along with the rest part of the figure. However, they are drawn as if they are in 2D. How do I force a rectangle to ...
18
votes
2answers
1k views

Tikz: Draw a RGB cube

I am trying to draw a RGB cube using Tikz. Until now I managed to create this cube with color gradients: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{3d} \usetikzlibrary{shadings} \...
2
votes
1answer
461 views

Tikz 3d trimetric view coordinate calculation bug

I'm trying to draw a line in the x-y-plane and circles in the y-z-plane at constant x position. Problem is, that the circle is far out of position (x-coordinate of center point of the circle is ...
8
votes
2answers
5k views

Draw 3D rectangle

I've been searching this for hours, but didn't find a reason for this behaviour: Here is my example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{3d} \begin{document} \begin{...
25
votes
3answers
7k views

TikZ: How to draw an isometric drawing in tikz

In the below image top: rectangles Bottom: isometric views. How to do it in TikZ? Similar result but not correct... \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \...
17
votes
1answer
2k views

3D Arrow Tips for TikZ/pgfplots

I really like the arrow tips shown in How to get rid of the viewer's (incorrect) axes in an Asymptote 3D graphics and am wondering how to produce this in pgfplots: I admit I have not tried yet, ...
16
votes
3answers
5k views

Drawing Axis Grid in 3D with Custom Unit Vectors

I am trying to adjust the unit vectors for each of the axis, and draw a coordinate grid. I can get it to work without specifying the unit vectors, of specifying it as: x={(1.0cm,0.0cm)}, y={(0.0cm,1....