Questions tagged [3d]
{3d} is about three-dimensional content, e.g., images and drawings.
899
questions
4
votes
2
answers
323
views
Add grid points to a torus
I would like to add "dots/points" to each grid intersection in the torus below.
\documentclass{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\usepgfplotslibrary{colormaps}
\pgfplotsset{...
1
vote
0
answers
34
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{...
1
vote
0
answers
24
views
How to shift objects in 3d while preserving a correct camera angle
Here is a Riemann sphere projecting surface points onto the complex plane. Could someone show me how to shift the sphere up to z = 1? I would like to shift everything else connected to the sphere too, ...
0
votes
0
answers
16
views
Issues with having a plane on xy, axis
I am trying to create a drawing for the riemann sphere, and I want an xy plane that is perpendicular to the z-axis. When I use the scope enviornment, I can get to a correct rotation, but it also ...
4
votes
1
answer
99
views
How can I add a circle along the planes?
Hello! I was wondering how I can add a circle (x-1.5)^2+(y-1.5)^2=1.5^2 as shown in red. Here is my code:
\documentclass{article}
\usepackage{pgfplots}
\usepackage{graphicx}
\usepackage{amssymb}
\...
5
votes
2
answers
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, ...
0
votes
1
answer
87
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 ...
0
votes
1
answer
28
views
How can I place an external axis guide in a 3D (pgfplots) plot?
I'm sure there's a term for this decoration, but I'm failing to come up with it. I'd like to create a 3D plot with PGFplots, but I want an axis legend (x/y/z unit vectors) placed outside the plot to ...
-4
votes
1
answer
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}...
2
votes
1
answer
207
views
Drawing planes and vectors
What would be the best way to create diagrams similar to those attached? I have briefly looked over the tikz-3dplot package but it doesn't seem very convenient for my purposes. When I'm dealing with ...
0
votes
0
answers
46
views
Insert spherical image inside 3D scene in PDF using Latex media9
I have successfully added a 3D scene + 3D object in PDF using Latex. I want to know if there is a way to add a spherical/equirectangular/panoramic image in the background of the 3D scene. If there isn'...
5
votes
2
answers
356
views
How can we sketch 3D Interlayers?
I want to sketch this image
but I cannot sketch those curved interlayers. Here is my code:
\documentclass[dvipsnames,svgnames,x11names,border=5pt]{standalone}
\usepackage{pgfplots}
\usepackage{tikz,...
3
votes
1
answer
298
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 ...
0
votes
0
answers
36
views
pgfplots: How to add a straight lines to a spherical surface
I have a sphere:
I would like to illustrate: The light lays in 1sec. a distance that corresponds to around 7.5 orbits around the world.
So, how could I add (7.5) circling lines like this:
\...
-5
votes
2
answers
99
views
How to draw 3D object [closed]
Is here anyone who can help me with this object? I don´t even know where to start :( Thank you for answers.
4
votes
1
answer
78
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 ...
12
votes
1
answer
638
views
Complex Gaussian wave packet visualized as a 3D
I am trying to make a 3D plot with TikZ, as shown in the picture, but I was not able to do it.
I have an example of my Latex code
\documentclass{article}
\usepackage[a4paper,top=2cm,bottom=2cm,
left=...
1
vote
1
answer
62
views
Any 3D issues with latest versions of Asy and Ghostscript?
I just would like to submit this question:
I have recently updated the versions of asymptote (2.85 now) and ghostscript (gs10.01.1) and since, I'm totally unable to compile my .tex file that used to ...
0
votes
0
answers
52
views
Bending line in 3d
I would like to bend a line between two points in 3 dimensions. However, the argument bend left doesn't seem to allow me to choose which direction I would like this bend to occur. In the below MWE I ...
0
votes
0
answers
37
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 ...
0
votes
1
answer
87
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}
...
0
votes
1
answer
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
0
answers
71
views
Embedding *.stl models in the PDF
This question has been asked before about 5 years ago Import 3D (*.stl) model with media9
My question is just related as a follow up to see if there was more to it.
I ask because, lately I am trying ...
0
votes
1
answer
30
views
How to reproduce an implicit surf plot with an external file table in pgfplots?
I can plot a function that looks pretty much the way I want with an implicit definition:
\addplot3[surf] ({x*cos(y)},{x*sin(y)},{x});
But when I try to do the same with an external file, the surface ...
0
votes
1
answer
59
views
Primitives of multibody mechanical systems with additional explanations
I need to draw the following pictures:
I tried to learn how to draw the necessary elements, focusing on the approach from this topic, because. I have never drawn such complex things in LaTeX before: ...
1
vote
0
answers
40
views
Media9 3D PDF - isolate view by sub-part?
I have embedded a .u3d file into a pdf using Media9 package not too many issues. Additional views have also been set up within an auxiliary views file.
Just wanted to know if we are able to isolate by ...
1
vote
1
answer
160
views
Drawing 3-D shapes
I would like to be easily draw 3-D shapes. I'm finding it difficult. I've got isometric paper, but it's difficult to see where to put the lines.
here's my MWE. But is the an easier way to draw shapes ...
1
vote
0
answers
69
views
How to make a rounded head
In fact, i have 2 questions:
how to make a rounded head;
how to change arrowangle parameter globally (10 degrees, for example).
import three;
size(1cm,0);
draw(O--Y,Arrow3);
0
votes
0
answers
89
views
Why doesn't the width option work properly
I get the following error:
Overfull \hbox (7.60025pt too wide) in paragraph at lines 8--31
I code on Overleaf.
\documentclass[12pt]{article}
\usepackage[]{graphicx} % Required for inserting images
\...
12
votes
1
answer
533
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]{$...
2
votes
0
answers
112
views
Why this ellipsoid is a bit skewed
Why is this ellipsoid a bit skewed and why are there black stripes on it?
import graph3;
import three;
size(0,200);
currentprojection=perspective(2,0,0.85);
real a=2;
real b=2;
real c=1.7;
triple f(...
3
votes
1
answer
150
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 ...
10
votes
4
answers
503
views
Drawing physical diagrams (particle spin)
I'm trying to draw a particle and visualize the rotation of the particle. So far I have done this:
\begin{tikzpicture}
\def\r{1.5} % Radius des Kreises
\filldraw[top color=red,bottom color=...
0
votes
2
answers
120
views
How do I add gray grid lines to a three-dimensional plot using pgfplots?
I am trying to use pgfplots to draw a three-dimensional space. Using the following code I'm able to get the axes to show, and I know how to add coordinates and nodes and some other objects:
\...
0
votes
1
answer
97
views
Flamm's paraboloid graph
How to draw Flamm's paraboloid ?
tikz,pstricks,metapost,asymptote
\documentclass[12pt]{article}
\usepackage{mathtools,amssymb}
\usepackage{pgfplots}
\pgfplotsset{compat=newest,width=8cm}
\begin{...
3
votes
2
answers
477
views
How to draw a 3D cube with TikZ [duplicate]
I want to draw a cube with TikZ. But when I make the edge thicker, the cube turns out to be:
and here is the code:
\begin{tikzpicture}
\draw[black,line width=2pt] (0,2,0) -- (2,2,0) -- (2,2,2) -- (0,...
2
votes
1
answer
109
views
Can one render crossing 3d arrows in TikZ?
I need a diagram with several arrows, some passing in front of others. So far the only thing I could do is to draw them with Mathematica and import as an image. An example of this: https://...
1
vote
0
answers
90
views
Draw 3D Fourier series with PGFPlot/TikZ [closed]
I have a Fourier series given by
where $k_n=\dfrac{n \pi}{a}$.
I'd like to plot in 3D this Fourier series using PGFPlot or TikZ, but I have no idea how to do it. I just visited this link and this ...
0
votes
0
answers
94
views
How to Create Cross Section in Slabs?
I want to create a cross sections like this below inside slabs?
Hopefully someone can help here.
This is what I have now:
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
...
0
votes
2
answers
102
views
How to draw oblique prism using Tikz? [closed]
How can I draw this kind of prism using TikZ? Thanks in advance.
1
vote
1
answer
156
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}
\...
0
votes
1
answer
80
views
Asymptote, in LaTeX, does not produce .prc file
A few years ago I use Asymptote in LaTeX to produce an interactive 3d graph (interactive in Acrobat Reader). Unfortunately, when I compile the same code today, it compile but it does not produce a ....
1
vote
2
answers
90
views
How to stop 3D labels on Asymptote from automatically filling with color?
I am trying to include labels after 3D vectors in Asymptote, which are drawn with different colors. I want to have all the labels black, but even declaring the color after the label makes no ...
1
vote
1
answer
122
views
Drawing circle within 3d pgfplot axis
I want to draw a circle at the end of a semi-cylinder.
However I was not able to change the orientation (plane) for this circle. I found this post that suggests to use [x={(0,0, 1)}] but it does not ...
1
vote
1
answer
42
views
Repositioning axes, their arrows and tiks in pgfplot
I am making a 3D plot using the pgfplots package. I have rotated the graph which best shows response curve I wish to depict. However, the position of the axes are not desirable. Furthermore, the text ...
0
votes
2
answers
291
views
Drawing an eighth of a sphere in tikz
What would be the best way to draw an eighth of a sphere like this one using Tikz? I have found many ways to draw a sphere, but not a portion of a sphere. This question is the closest I get, I never ...
2
votes
2
answers
127
views
How to reproduce 3d image of Householder Reflection similar to given in Tikz
I am just getting started using Tikz and I am having some trouble. There is an image
that I think is perfect that I am trying to recreate in Tikz. I tried to define a plane and also tried looking at ...
3
votes
2
answers
340
views
Dimension too large for a simple 3D picture
I created this simple 3D box. Everything looks as expected, but I keep getting error
Dimension too large.
Is there any way to avoid it?
MWE:
\documentclass{standalone}
\usepackage{tikz}
\...
0
votes
1
answer
110
views
TikZ 3d parametric plot on top of 2d plot
I am trying to add a 3d parametric plot of a function on top of 2d axes.
\documentclass[10pt]{article}
\usepackage{pgfplots}
\usepackage{tikz-3dplot}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{...
3
votes
1
answer
352
views
Draw a 3D solenoid using tikz
I am trying to draw a 3D solenoid using Tikz similar to the one here
But I'm having a big difficulty, I don't even know how to start...
Any tips, please?