Questions tagged [tikz-3d]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views

file-1.pdf not found and Wrong __data_start/_end pair Aborted (core dumped) Error

I am trying to compile asymptote code using TexStudio. The code is from the Drawing 3D crystal lattice with tikz/pstricks . But it is not compiling.Another code that is not compiling is from Draw ...
0
votes
0answers
26 views

Tikz: how to draw a cone in 3D axis environment

I am trying to define a cone in a 3D environment as a function of the center of its base C(x,y,z), its radius R and the top of the cone T(x,y,z). The idea would be to able to precisely position the ...
6
votes
4answers
240 views

Truncating singular 3d surface plot with large values

I was wondering how to plot a singular surface such as z=1/(x*y)^2 (the function I'm working on is far more complicated). What I'd like to achieve is shown below: Wolfram Alpha (left) does a great ...
1
vote
0answers
62 views

Centering multiple canvas layers in tikz 3D

So I am trying to recreate the attached image exactly. But for the upper red ring, I can't seem to have it centered well. I have tried multiple modifications, but it just does not want to center ...
13
votes
2answers
292 views

High entropy alloy in TikZ

I'm trying to reproduce this illustration of a high entropy alloy (HEA) in TikZ: What I have so far looks quite bland because I can't find a way to randomly assign one out of a list of colors. \...
3
votes
1answer
109 views

Rotated half a circle in 3D, lines are slightly off in tikzpicture

In the below image, I wanted to show that some 3D shapes, like the cylinder and the sphere are constructed by rotating a planar shape around an axis. The cylinder looks OK but the outline of the ...
4
votes
1answer
163 views

Deforming/projecting text in TikZ(-cd) along a curved surface

This is a continuation of STeX Exchange 552946. I've been trying to get some 3D effects on tikz-cd, and got an amazing answer by @ZhiyuanLck. The only remaining problem is getting text/arrows to be ...
0
votes
0answers
36 views

Spherical Solids using tikz-3d?

I've been trying to draw solids using spherical coordinates using tikz-3d for a while now. Specifically, I'm trying to draw this: So far, all I've been able to do is draw the top curved portion of ...
1
vote
1answer
59 views

Format line properties when it appears behind another object in TikZ

I am using the tikz-3dplot-circleofsphere package to draw circles of a sphere using tikz-3dplot. Consider the following MWE from the documentation: \documentclass{standalone} \usepackage{tikz-3dplot-...
0
votes
1answer
87 views

Do a solid with disks using Tikz [closed]

I am wanting to do a figure where I provide a function y=f(x), a number n (number of disks) and draw the revolution solid around x, like this: I would like if someone has any idea how can I do this ...
2
votes
1answer
122 views

How draw three intersecting golden rectangles to create the vertices of an icosahedron?

How create in Tikz the three intersecting golden rectangles as in the image?
4
votes
1answer
99 views

TikZ angles library incompatible with 3d library?

I recently discovered the angles TikZ library which is very convenient when one needs to annotate angles. I encountered a problem when I tried to use it in with the 3d library, since the arc is drawn ...
0
votes
1answer
53 views

Draw perspectively on the faces of a cube

I am looking for a solution to draw on the faces of a cube (or similar 3d plane surfaces with perspective) preferably with the means of tikz. The basics are given in Tikz : texture cube faces using ...
0
votes
1answer
55 views

How can I draw two spheres and a cone between them with TikZ?

I would like to get an image like this: with two spheres, intersecting a cone,the points on the intersections should also be highlighted in the way showed in figure. I've tried to get this work with ...
0
votes
1answer
70 views

Dimension too large in 3D geometry in tikz

I am facing a compilation error in a weird way. I have trimmed my code to the maximum but still my MWE is not too small, so I'll focus first on the weird part : \foreach \j in {0,1,...,5}{ ...
2
votes
1answer
36 views

How to project solid on a tracing plane?

I would like to project one of the 2D surfaces or faces of the 3D cuboid on to a plane, as indicated in the diagram follows. Kindly help me. \documentclass[border=5pt]{standalone} \usepackage{tikz} ...
1
vote
1answer
31 views

How to get unique color with opacity (color mix in the union set region/overlapping region) for each of the faces/surfaces of the cuboid?

How to get unique color with opacity (color mix in the union set region/overlapping region) for each of the faces/surfaces of the cuboid? The screen shot below does not depict the outcome of my code, ...
1
vote
1answer
13 views

How to hide not visible parts behind an addplot3 in a beamer presentation with overlays

I use a beamer presentation with overlays to show a 3D plot with addplot3 (see MWE). In the second slide a dashed line with marks is plotted. In the third slide a surface is plotted and the part of ...
3
votes
1answer
75 views

Drawing western hemisphere in tikz-3d

I asked how to draw a methane with correct dashes and wedges. All was fine till I realized the plane I added should cut through the carbon atom in the middle. lt doesn't. The solution I see is to ...
1
vote
1answer
97 views

Modify stacked 3D disc example

I saw the TIkZ example of Mark Wibrow (http://www.texample.net/tikz/examples/disc/). The original answer is here: tikz stacked disks 3D. I need just one disc and I can modify the height of the disc ...
5
votes
1answer
143 views

Arrows with spherical (conical) tips

To pag. 81 of the asymptote tutorial there are spherical arrows tips: I like the tips of the first image and of the 2nd image arrow=Arrow3() that it can be used also in 2D. Do this tips exists only ...
0
votes
1answer
77 views

Cylindrical coordinates plot

I wonder how can I plot this 3D object by using only tikz3dplot:
1
vote
1answer
92 views

Difference between \usetikzlibrary{3d} and \usepackage{tikz-3dplot}

Is there any difference between those two tikz libraries for 3D plots? I have found the documentation for tikz-3dplot on CTAN, but nothing for the \usetikzlibrary{3d}. Might be related to ...
4
votes
1answer
80 views

Curving the cylinder in a periodic fashion

I have to implement an array made up of cylindrical like elements. However, below code can only provide a straight cylinder (code credit goes to this link), instead I need to bend it like in the ...
6
votes
1answer
116 views

3D normal diffusion with a drift

Based on 3D normal diffusion I want to draw the idea the normal distribution is flattening over time, but with a drift. 1 - As you can see in MWE below, the orange normal distribution seems to be cut ...
2
votes
1answer
175 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
50 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
327 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
75 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
95 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
201 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
289 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
94 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
113 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
75 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
57 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
56 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
131 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
180 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
1answer
523 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
55 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
214 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
192 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
242 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
197 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
280 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
993 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
104 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
395 views

Drawing spherical mirrors

What is the best way to draw 3D spherical mirrors like these on tikz?
3
votes
2answers
212 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. \...