Questions tagged [3d]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
44 views

Plane intersection -2 (Vector graphics in Asymptote)

This is a follow up after my own question. Back when the following MWE worked and compiled correctly. \documentclass{article} \usepackage{asymptote} \begin{document} \begin{asy} settings.outformat =...
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 ...
2
votes
2answers
70 views

Label size on the picture

This is a continuation of my question. Now when I work with it, it seems to me that this code produces the label letters that are slightly bigger that the corresponding letters in the text formulas (...
5
votes
2answers
284 views

Showing planes in 3D

I have a GeoGebra diagram but I want to make a Tikz picture out of it. My goal is to make the faded green planes. The vector w-v is on the plane and m is on a plane that is parallel to that green ...
2
votes
1answer
86 views

Plotting 3D graphs of quadric surfaces

I have trouble plotting these 3D graphs of Quadric surfaces. If anybody could help or direct me to a link where I can find codes for corresponding graphs, it would be really helpful. Hyperbolic ...
0
votes
1answer
37 views

Create 2x2 array of 3D plots with pgfplots. Running into compiling issues

I'm plotting one function of three variables as four functions of two variables, with each of the four plots having the third variable fixed at a particular value. An example is below: For anyone ...
2
votes
2answers
71 views

tikz/pgfplots - Plotting 3D surface with cloud of points

I'm trying to make a 3D plot with a surface and 1000 points in a cloud, where some of the points will be hidden behind the surface, but slightly visibly due to the transparency of the surface. However,...
0
votes
1answer
33 views

pgfplots error ploting function of two variables

I want to plot $f(x,y) = \sqrt{y - x^{2}}$ but I get the following error: !Package pgfplots internal Error: An internal error ocurred during z buffer reorderings: the rows/cols are not balanced! I ...
0
votes
0answers
61 views

3D geometry in TikZ

The page 3D bodies in TikZ shows some basic bodies, but is there a better tool to model 3D bodies (rotate, flip, ...) that can export as TikZ? I can draw fairly good bodies in TikZ but sometimes I'm ...
0
votes
1answer
35 views

pgfplots: 3D surface not filled

I'm trying to add a (very simple) 3D plot to a document using pgfplots, version 1.16. However, attempting to reproduce the very first example from the manual (page 124), actually results in this: I'...
1
vote
1answer
36 views

center 3dpdf media display

I'm new in 3D pdf generation. I created a U3D file, than converted to 3D PDF with texworks(using movie 15 package). It's working, but a media display window is not centered, if a increase the size. My ...
7
votes
1answer
95 views

The “transform” parameter of tube in Asymptote

From the doc of tube: surface tube(path3 g, coloredpath section, transform T(real)=new transform(real t) {return identity();}, real corner=1, real relstep=0); ...
4
votes
1answer
179 views

TikZ: Perpendicular line in a plane (3D problem)

How to draw a line from the point X perpendicular to AB in the ground plane OAB? Is there a simple mechanism or do I have to use something like tikz-3d? \documentclass[margin=5pt, tikz]{standalone} \...
5
votes
1answer
101 views

Tube with variable radius using Asymptote

In Asymptote, given a (curved) path between two points $A$ and $B$, I would like to draw a tube joining these two points, with a variable radius, as in the picture below. That is, if $M$ is a point of ...
0
votes
0answers
36 views

Right 3D coordinate computation in axis environment

I draw a parametric plot using pgfplots and I want to add a specific point on the curve. I have used addplot3 + coordinates to add a specific marker on the curve at specific coordinates. This point is ...
0
votes
0answers
45 views

How can i plot a surface in latex using external data?

I am trying to plot a surface using this data: 186.39 10.634 0.98471 189.82 10.433 0.98489 199.92 12.122 0.98745 197.92 11.911 0.98709 186.87 10.567 0.98485 199.34 11.517 0.98723 194.29 ...
1
vote
2answers
102 views

Circle made from intersecting spheres

I'm trying to make a diagram along the lines of what I have below: 2 intersecting spheres with centers of x and y Midpoint is (x+y)/2 and from either center to midpoint is d/2 Distance from centers ...
2
votes
3answers
154 views

Crop/clip 3d tikz drawing

I have prepared a 3D drawing using tikz-3dplot and now I want to clip a specific part of this drawing in order to magnify it (focus on the circle for instance in the example below). Is there any ...
2
votes
1answer
55 views

pgfplots: How to swap x- and y-axis changing the default (addplot3)?

Aiming to change x- and y-axis, I read some threads here and realize, that I could do the trick ({t},{t^2-5},{t+1}) ---> ({t^2-5},{t},{t+1}); then I have to 'rename' every setting for x and y. ...
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 ...
0
votes
0answers
23 views

How to build a simple colored 3D bar plot with error bars in PGFPLOTS?

I am trying to create the 3D bar plot with error bars shown in the picture below. My closest attempts in PGFPlots looks awful. See the picture below. There are no error bars, and I am not quite sure ...
4
votes
2answers
138 views

Cut some segment from sphere in TiKz

I am trying to do something similar to this picture. I used the following Example and question to start. Here is my code \documentclass[11pt]{standalone} \usepackage{tikz,amsmath} \usepackage{tikz-...
3
votes
1answer
197 views

How to draw 3D surface plot from .csv with asymptote

How can one draw "regular" 3D surface plot in Asymptote from data.csv? Following (I dare to say basic) code with the help of pgfplots does the job (suppose you have optimal data format): \...
0
votes
1answer
87 views

3D bang/boom shape in Tikz

I'm looking to make a schematic diagram, showing the interaction of two particles. I currently have a 2D star, however, this looks out of place against my 3D particle. Are there any suggestions of 3D ...
2
votes
1answer
61 views

Visualizing contour lines in pgfplots

I want to visualize the set of zeros of $f(x,y)=x^2(x^2+y^2-2)$ in the same graphic that contains the plot of the function. It is easy to see that this set is the union of the circle of radius sqrt(2)...
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[...
2
votes
1answer
65 views

Determine position of a coordinate after rotate around?

I managed to position some cubes defined as pics on a single plane, and now I'd like to determine the position of the lower frame in every box, so that a vector from origin to this location can be ...
3
votes
1answer
82 views

Tikz: How to rotate 3D objects on a single plane?

I managed to come up with the following picture of boxes with different orientations. But now I'd like to have them all on the same plane, which I want to indicate with some plane (black rectangle ...
1
vote
1answer
59 views

Tikz: Reuse parts of a plot and use parameters?

I have used Tikz to make a cube and now I'd like to make multiple instance of it at different position. Therefore I imaging something like a parameterized pic or a "normal programming function" to ...
1
vote
1answer
99 views

Ellipse in perspective plane around 2 points in 3d space

I have the following trajectory, which should depict some path of 2 points on a rigid body. Each point is characterized by a coordinate frame. Now I'd like to use ellipses around the points instead of ...
0
votes
2answers
66 views

Plotting (x,y, z axes)

I have some problems with this. I need to plot x, y and z axes, and then, this 3d figure. On the Net I did not find something similar (examples etc.). I need some hints or links that can help me with ...
9
votes
1answer
402 views

How to get trace to get a cylinder when I rotate a rectangle?

I am trying to rotate a rectangle to make trace and get a cylinder. My code \documentclass[border=2mm,12pt,tikz]{standalone} \usepackage{tikz-3dplot} \begin{document} \pgfmathsetmacro{\myr}{3} ...
4
votes
1answer
249 views

How to draw a pic in asymptote 3d?

I want to make 3D in Asymptote. My code: > import three; import graph3; //import solids; currentprojection=orthographic(8,4,2,center=true); size(10cm); size3(3cm,5cm,8cm); draw(unitbox,dashed);...
2
votes
1answer
114 views

TIKZ: Humans holding a life net

For my thesis in business ethics, I want to show that the classical stakeholder model is not appropriate. Usually the stakeholders are arranged around the company like planets around a star. But the ...
0
votes
1answer
104 views

Plotting 3D surface

I'm trying to get my plot as close as this one: CODE: \documentclass[border=5mm]{standalone} \usepackage{pgfplots, filecontents} \begin{filecontents*}{filename.txt} 20 0.01 1.0261 40 0.01 1....
1
vote
2answers
70 views

pgfplots 3D with log y-axis

I need an log y-axis for my 3D-plot, but somehow it seems that the generated plot is also in the negative y-range (not the axis-labels, but the y-domain). The y-domain seems to be -1:1 (in fact it is, ...
20
votes
0answers
359 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&...
1
vote
0answers
116 views

Plotting 3d surface from data points

I have the following code which works great and produces the plot I want. This is it: \documentclass[border=5mm]{standalone} \usepackage{pgfplots, filecontents} \begin{filecontents*}{filename.txt} 0 ...
4
votes
1answer
163 views

How to create matrix/mesh plot of data table properly?

This is the simplified version of this question. While the other question contains raw data consisting of real dates, in this question I have converted the raw dates to decimal date values (unit: ...
1
vote
1answer
117 views

I need help to improve the drawing of my cylinder to match image of book

I need help to create a nice image/picture of the cylinder with tikz, something similar to the one below. Below you can see my current progress, first the image and below the code for it: The code:...
12
votes
1answer
766 views

Draw 3D Cubes around centre

I'm trying to draw a set of rotated rectangular cuboids around a centre point in Tikz. I've created an example of what I'm trying to achieve in OpenSCAD below with the code to generate the above ...
1
vote
1answer
50 views

media9: How to disable zoom in 3D view

I try to disable the "zoom" functionality in my 3D .prc model using media9 package. How can I archive this? \documentclass[12pt]{article} \usepackage{media9} \usepackage{graphicx} \begin{document} ...
4
votes
2answers
357 views

Replicating this Visual Proof with TikZ

I'm fairly new to TikZ and would like to replicate the proof without words shown here. Is there any way to construct these clean cubes in 3D without drawing them line by line? Thank you for your ...
1
vote
2answers
50 views

Colormap drawing order in parametric 3D tube

Similar to this question, I am trying to draw a parametric tube in a PGFplots 3D-plot: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.16} \begin{document} \begin{...
3
votes
2answers
121 views

PGFPlots Line Plot at constant x

In this and this question, we learned how to draw real line plots in 3D axes in PGFPlots by supplying samples y=1 (samples y=0 seems to work as well) or y domain=0:0 to get rid of meshes/matrices. ...
7
votes
2answers
270 views

“Walls” of plane partition

This example by Jang Soo Kim shows how to create a plane partition using TikZ. Is it possible to modify the code there so that the partition is indeed a bunch of blocks lying on a floor and pushed ...
2
votes
2answers
41 views

Is there a simple way to define a “one color colormap” in 3D surface plots?

The following MWE does exactly what I want. I'm just wondering if there's an easier, "canonical" way of specifying the color map as I just want black lines. \documentclass{standalone} \usepackage{...
3
votes
1answer
138 views

Sphere on axis with defined radius

I Hope someone can help me. I want to make a picture like this in latex. Everywhere I'm searching there are examples that are much too complicated, I think. I can draw a circle, but LaTeX don't ...
12
votes
1answer
1k views

Densest sphere packing

I would like to represent the densest sphere packing in dimension 3 as the following picture, for a beamer presentation. Is Tikz the way to go for it? It is not a real 3D drawing since I only want a ...
6
votes
4answers
318 views

Gnuplot 3D splot in tikz raw gnuplot (without pgfplots)

please look at the following MWE: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=.5] \draw[color=blue] plot[raw gnuplot, smooth] function{ splot sin(x)*sin(y)}...

1 2 3 4 5 14