# Questions tagged [3d]

{3d} is about three-dimensional content, e.g., images and drawings.

937 questions
Filter by
Sorted by
Tagged with
28 views

### Sphere with a randomly marked region and an equatorial circle

I'm working with spheres in 3D and would like to draw a sphere with an open region $U$ with color green and enclosed closed region $E$ filled with color red such that $E \subset U$. And a vector $x$ ...
• 101
1 vote
35 views

### Custom 3D Coordinate System in pgfplots

I am trying to create a custom 3D coordinate system using pgfplots in LaTeX. I want to define three direction vectors x, y, and z. However, when I define x=(-0.35,-0.35) and then define y and z, the ...
• 349
88 views

### How can I draw this in Latex

How can I draw like this 1 The problem is how can I colorize shape 2 like figure below 1. \documentclass{standalone} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{...
• 33
117 views

### Drawing surfaces with TikZ

As a complete TikZ novice, I want to create surfaces like the following handdrawn one with TikZ: Ideally, this should be coded bottom-up: First you draw the bident with xy-plane at height 0. Then you ...
25 views

### TikZ pgfplot 3d graph number positioning

Can you see the x-axis ticks (r_{AB})? There are two lines: I would like to make sure that the numbers lie underneath in the line that goes downwards. \documentclass[12pt]{article} \usepackage{tikz} ...
• 1,509
48 views

### How do I make a 3D crystal lattice using TikZ?

I've been trying to make a decent 3D crystal lattice using LaTeX and TikZ for a while now, and I finally managed to find some code where someone had made a perfect one. However, no matter what I try, ...
1 vote
60 views

### Highlight 3D plot minimum point

How can I display this plot in a different point of view, so I can highlight the minimum point? \documentclass[12pt]{article} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.11} \...
• 1,509
1 vote
58 views

### How to draw 3D blocks stacked to grow on each other without caring about the order of drawing those blocks on Tikz

I'm trying to draw adjacent cube shapes. If I don't specify coordinates in order, the lines of the subsequent shape will overlay the previous ones as shown below. How can I handle this issue without ...
88 views

### How to build cylinders similar to this, but in reverse?

How to build cylinder in tikz like shown in this example The example above builds a set of ever-larger cylinders on top of each other with texts on the side, starting at the bottom. The example output ...
• 1
20 views

### Prevent connection of ends of a partial circle in a 3D tikz picture

I want to draw a 3-dimensional parabola (i.e. plot $z=x^2 + y^2$) with maximal value of z=1 and then mark the part of the parabola where $x^2 + y^2 =1$, $x\leq 0$ and $y \leq 0$, which is part of a ...
1 vote
43 views

### How to crop or scope the range of z in 3d in Asymptote

From this below code with Asymptote and run the code with Overleaf. \documentclass{article} \usepackage{graphicx} % Required for inserting images \usepackage[inline]{asymptote} \begin{document} \begin{...
44 views

### How to build the 3d cartesian coordinate system like this and add this graph

When I used the pgfplots or tikz3d I have a problem that the x,y,z axis doesn't like this. They always incline from it should be like the below image. How to set the x,y,z axis that x-axis is towards ...
56 views

### Graphing simple 3d axis

How to draw 3d axis with component like this.
1 vote
53 views

### Asymptote: draw a torus with 6 holes drilled in it

I am using Asymptote to generate a 3D image of a torus with 6 holes drilled in it. I don't know how to merge the holes with the surface. I can only approximate it with cylinders, so the intersections ...
• 201
74 views

### Showing the Traces of a Hyperbolic Paraboloid

I'm having trouble getting the shading/layering for the traces of a hyperbolic paraboloid to look right. I tried breaking up the hyperbolic paraboloid and traces into sections and layered them ...
• 87
1 vote
62 views

### Is there another way to find projection a point on a line by using TikZ without using 3dtools?

Let S.ABCD be a pyramid, ABCD is a square, SA perpendicular to the plane (ABCD); P is projection of A on SC, P is projection of A on SD. Based on the answer, I tried \documentclass[border=3mm,12pt,...
• 1,032
71 views

### inserting an image using asymptote in an article using pdf latex

I am using TexStudio and would like to insert a 3D interactive image using asymptote. I have found a few examples on how to generate asymptote 3D interactive image using standalone mode. Now, I would ...
55 views

### How to draw and color a spherical cap of arbitrary radius at a given point in a sphere using Tikz

I was wondering if there was an easy way of drawing and coloring a spherical cap centred at a certain point in a sphere. I have seen relationed questions like this one, but the spherical cap cannot be ...
115 views

### Drawing 3D dice

I want to create 3D dice in LaTeX. I am familiar with the excellent package "customdice", but it unfortunately only produces 2D images. I am also inspired by the answer from hpekristiansen ...
59 views

### Stacked 3D Pyramid - Modify

Sorry to come back to an old post. I was reviewing this discussion: Stacked 3D Pyramid And trying to work on Guilherme's answer, where he adds shading. Following on this, I was trying to do something ...
• 101
226 views

### How to make a small circle look as if it's projected on a plane in xyz coordinates?

I'm using an xyz coordinate system to draw a 3D axis and a plane. I've labelled the plane using a circle. However, since the circle isn't projected onto the plane but "faces" the viewer, it ...
• 837
85 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 ...
• 69
30 views

### Join coordinates in 3d plot using pgfplots

I am trying to join two coordinates (nodes) within a 3d plot using pgfplots. The problem that I am facing is that the joining line is not even touching the endpoints. I am guessing that the line is ...
• 1,827
1 vote
90 views

### How to draw this 3d (tikz) picture more clearly?

I want to draw this picture (The GeoGebra Sketch) in tikz and this is what I have currently The picture compiles like this, which seems a bit messy since I can only assign a whole line to be solid or ...
1 vote
70 views

### Intersection of 3 plane in centered axis environment

I want to make a picture of 3 plane intersecting at a point of the following linear system: 2x-y = 0 -x+2y-z=-1 -3y+4z=4 But, I stumbled upon the following problems, The first and third plot gave me ...
• 11
75 views

### Drawing Boy surface by Asymptote, pgfplots

This link point to a discussion about Boy surface 3D representation of a Boy surface using a mesh of tubes, Drawing by Mathematica. Is it possible to draw Boy surface with Pgfplots,Pstricks, Asymptote ...
• 1,514
248 views

### Creating a Tri-Cylinder Intersection Surface with Pgfplots

As an edit to provide further clarification (to save you some reading) - we are trying to define the second diagram parametrically, so that the two flat parts are truncated and we are just left with ...
91 views

### Recreation of Rotational Arrow in 3-D Space

What would be the best way to recreate an arrow like this in 3d that represents a rotation?
• 87
1 vote
38 views

### Asymptote cannot label in 3d graphs

I have an updated Asymptote (version 2.86) and Ghostscript (version 10.02), but cannot get Asymptote to label 3-dimensional graphs. For example, settings.outformat="pdf"; import three; size(...
• 41
1 vote
50 views

### Interactive CAD/FEM simulation result as 3D-PDF with media9

I want to include a FEM simulation result in my thesis as an 3D interactive object. I am looking for a way to show the actual stress value when you click on an area on the 3D-Object. With media9 I ...
• 21
244 views

### Fitting a tikz graph to a ZY plane canvas

I learned how to draw things in the ZY plane, but I didn't fully understand how it works. Below is my code: \documentclass{standalone} \usepackage{tikzducks} \usetikzlibrary{3d,graphs,graphdrawing} \...
• 478
222 views

### Draw planes in 3D using tikz

I want to draw a series of planes in 3D, just like a picture in tikz-ducks documentation: I thought it might be easy but I was stuck at drawing the planes in 3D. My own code: \documentclass{...
• 478
95 views

### Z-axis Scale in 3D

I am recreating this graph. I can't quite figure out how to scale the z-axis to look like this. This is what I have so far: \documentclass[8pt]{extarticle} \usepackage{amsmath, amssymb, calc} \...
• 87
31 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={ ...
• 87
71 views

### Surface plot where the coloring depends on the radius or distance from a point instead of one coordinate

I would like to know if there is a possibility to create a 3d surface plot where the colorbar depends not on one coordinate but rather on the distance from origin (radius in polar coordinates). I ...
• 57
1 vote
97 views

### drawing a 3D axis with grid

The code I am using, produces 3D axis but only the grid appears on the x-z plane. Any help? \documentclass{standalone} \usepackage{pgfplots} \usepgfplotslibrary{colormaps} \usepackage{tikz} \...
• 1,117
1 vote
53 views

### Hyperbolic cylinder: the desired figure and a figure obtained from code

I what to get a Hyperbolic cylinder $\frac{x^2}{a^2}-\frac{y^2}{b^2}=1$. How to modify the code: Please help. \documentclass[border=2mm]{standalone} \usepackage {tikz} \usetikzlibrary{3d} \begin{...
• 1,099
1 vote
56 views

### Switching the XYZ axes using the tikz-3dplot

This MWE: \documentclass{standalone} \usepackage{tikz} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{60}{120}% \begin{tikzpicture} [tdplot_main_coords, cube/....
• 1,006
45 views

### Can't remove plot mark from 3d plot

I'm trying for the first time to do a 3 dimensional plot using pgfplots. I'd like to remove the blue marks in the graph but I can't understand how. This is my code: \begin{figure}[H] \centering \begin{...
• 11
1 vote
148 views

### pgf: 3D Graphing sqrt(-x-y^2+8) results in a jagged surface

The plot of this specific elliptic paraboloid, sqrt(-x-y^2+8) comes out looking like this. I've tried parameterizing the surface, writing the equation in different forms, and messed around with the ...
• 87
399 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{...
• 143
1 vote
77 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{...
• 471
1 vote
33 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, ...
26 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 ...
119 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} \...
220 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, ...
• 1,419
277 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 ...
• 359
34 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 ...
57 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}...
• 47
383 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 ...