Questions tagged [tikz-3d]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
67 views

Surface Integral in 3D

I need a example picture for surface integrals of any function in a three-dimensional space. Wich function it is is not important. I need help getting this job started. The image is not that good, but ...
2
votes
1answer
35 views

tikz-3d shifting rectangle

Consider the following code: \documentclass{article} \usepackage{tikz} \usepackage{tikz-3dplot} \usepackage{amsmath} \newcommand{\ptsize}{1.5pt} \usepackage{xcolor} \definecolor{MyColor1}{rgb}{0.24,...
3
votes
2answers
157 views

3D isometric coordinate system with TikZ

I wish to create the following two graphs with TikZ. Preferably, I would like a simple variable to control the rotation of the graph along the three axes (although, the vertical axis would probably ...
1
vote
1answer
48 views

Plotting 3D waves with parametric equations

I'm trying to plot these curves. I tried this using the code below. But, the output wasn't exactly what I wanted. I couldn't extend it to the negative X-values and couldn't mark those ticks on the ...
0
votes
1answer
44 views

Plotting a 3D vector

I want to plot this 3D vector using tikz3D .Since I'm new to Latex, I find this task a bit difficult. I saw a couple of similar sort of questions in this forum but their pictorial representations are ...
2
votes
2answers
113 views

Plotting the graph of a 3D cylinder

I'm trying to plot this 3D graph of the cylinder, Initially, I used the code, \usepackage{pgfplots} \pgfplotsset{} \begin{document} \tdplotsetmaincoords{70}{30} \begin{tikzpicture}[...
5
votes
1answer
248 views

How can I correct line of the circle on sphere by using 3dtools?

I am trying to draw the circle A'BD on sphere by using 3dtools. I tried \documentclass[tikz,border=2mm, 12 pt]{standalone} \usepackage{tikz-3dplot-circleofsphere} \usetikzlibrary{3dtools} \...
2
votes
1answer
78 views

Draw 3D cube with additional rectangles

I'd like to draw a cube with additional rectangles in it (see pic below). The colors are secundary, as I will have to change them anyway. I've tried it in 2D just by meassuring the distances of the ...
4
votes
1answer
91 views

Create projection inside matrix - tikz 3dplot

I can create two nodes in tikz-3dplot, and create a projection like view, like this : But how to create view like this(the right one- only those projection lines) ? I have created the basic, I just ...
2
votes
1answer
64 views

How can I improve a truncated conical picture by using tikz?

I want to draw a 3-dimensional truncated conical picture. Only work that I could do is: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{intersections} \begin{document} \begin{...
0
votes
1answer
48 views

Height function for 3D drawing

I've been drawing 2D features in 3D space using code like the following: \begin{tikzpicture}[x={(-0.2cm,-0.4cm)}, y={(1cm,0cm)}, z={(0cm,1cm)}]{ \begin{scope}[canvas is yx plane at z=1] \draw[...
1
vote
1answer
42 views

plots-3d not applying transformation properly

I'm trying to plot a rectangle in 3D, but the following code I've written is giving unexpected results: \documentclass{minimal} \usepackage{tikz,tikz-3dplot} \begin{document} \begin{tikzpicture}[...
0
votes
1answer
79 views

Surf plot with tikz

I am trying to regenerate a surf plot from Matlab using 3-d-plot of tikz. The graph should look like this: But with my code: \documentclass[]{article} \usepackage{pgfplots} \usepackage{pgfgantt} \...
3
votes
3answers
155 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 ...
20
votes
0answers
361 views

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
46 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
161 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
156 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
128 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
121 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
206 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
539 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
59 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
356 views

Drawing spherical mirrors

What is the best way to draw 3D spherical mirrors like these on tikz?
3
votes
2answers
162 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
750 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
76 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
81 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
151 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
304 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
149 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
135 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
159 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
502 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
263 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
173 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
293 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
306 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
464 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
149 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
548 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
120 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
173 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
458 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
175 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
93 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
353 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
107 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
306 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
296 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 ...