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

learn more… | top users | synonyms

4
votes
1answer
78 views

Spiral on a truncated cone

I need to plot a spiral around an inverted truncated cone, starting and ending at the centre of both bases. Something like this: I've searched and found a similar solution, but for cylinders only: ...
7
votes
1answer
140 views

Drawing functions on spheres

In a paper, I have a class of functions S1→S2 depending on a real parameter t>0, and I would like to represent some of them on the sphere as curves to illustrate their behavior as t goes to 0, ...
1
vote
1answer
20 views

Asymptote error in plain_Label.asy

I'm trying to compile the Asymptote script fig0090.asy from http://www.piprime.fr/files/asymptote/graph3/index.html by running asy fig0090.asy in the command line but I get the error ...
2
votes
2answers
110 views

Representing general transformations on a 3D grid using TikZ

I have a cuboid made from unit squares which in 2D looks like the following: Considering a 3D version of this (i.e. a cuboid). I wanted to use Tikz to demonstrate some of the possible deformations ...
6
votes
2answers
93 views

Three dimensional Regression Plan with Residuals

In R, I can make three dimensional Regression plane with residuals with the following command scatter3d(prestige ~ income + education, data=Duncan) with scatter3d function from car R package. I ...
4
votes
1answer
88 views

Shaded 3D ellipsoid with pgfplot

I'm trying to display a shaded 3D ellipsoid with axis labels with PGFplots. So far I achieved this. \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots,tikz-3dplot} \begin{document} ...
3
votes
1answer
40 views

Edge thickness of the faces in a surface plot

Is it possible to change the drawing thickness of the edges of the faces in a surface plot in PGFplots? For example, in the minimum working example \documentclass[margin=1cm]{standalone} ...
2
votes
1answer
61 views

Draw sphere and add scattered data with color information [closed]

My goal is to plot 3D data (x,y,z coordinates) such that a certain path on/inside a unit ball is illustrated. Since the path will not only be on the surface of the unit ball I have to encode the norm ...
1
vote
1answer
75 views

3dplot viewing angle

I need to choose my view angle in \tdplotsetmaincoords{ }{ } (elevation and azimuth) so that my plot ends up looking like the one below. I wish to do this entirely via the view angle, not relabelling ...
1
vote
1answer
74 views

Draw a 2D functions in tikz

I want to be able to plot in a 3D environment any type of function of two variables z = f(x,y), where x and y are specified within a given range. For instance plot f(x,y) = x^2 + y^2 where x in [-2,2] ...
6
votes
1answer
426 views

Asymptote: Why are objects closer to the camera smaller

In the following example you can see that the atom that is closest to the camera, is acutally smaller than the rest, even though it should be the other way around. Shouldn't it? Here the MWE: ...
1
vote
1answer
40 views

Asymptote: Arrow3 only has 3D arrow head

If I draw a Arrow3, it does not really look 3D-ish because the line is not shaded like a cylinder. How do I change this? Probably drawing the cylinder and arrow head manually together? How? Here is a ...
7
votes
1answer
84 views

tikz-cd: Shade faces of commutative cube

I would like to "shade" the faces of a commutative cube drawn using tikz-cd. \documentclass{article} \usepackage{tikz} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} & P \ar{dl}[swap, ...
4
votes
2answers
162 views

Plotting matrix image data

I have data from infrared measurements in a file with 194 rows and 194 columns, each value representing the temperature at a certain pixel. As the image from the camera does not look nice, I would ...
2
votes
1answer
91 views

Adding a 2D plot to a 3D plot without closing the ends

I want to add 2 parabolas to a plot of a hyperbolic paraboloid, but I can't figure out (and couldn't find any information on the internet) how to keep pgfplots from closing the ends of the graphs. My ...
5
votes
0answers
28 views

Corners of 3D cube extend beyond where they meet / tikz / draw [duplicate]

i figured out how to draw the 3d effect cubes, but now im facing the issue of the border lines extending beyond the points where they meet. i know that by doing "draw=none" i can turn these off, but i ...
11
votes
2answers
391 views

3D Cube within a cube?

I have been trying to make an image but have been unsuccessful. Typically I use the tikz environment but can still not figure it out. I would love some help! Thank you! \documentclass{article} ...
8
votes
1answer
134 views

Placing text on face of 3d cube

How simple/hard would it be to add text to the front face (the red colored face in this example) of the cubes found at http://www.texample.net/tikz/examples/plane-partition/? I have seen examples like ...
0
votes
2answers
123 views

Find cylinder tangent in 3D

I am trying to draw a complicated form that is loosely based on a half cylinder. I am using tikz-3dplot to be able to accurately draw arcs in planes other than the xy-plane and to nicely set the ...
3
votes
1answer
115 views

Changing the view angle distort 3D tube image

In previous post water inside 3d tube I added a code. What I need is to have a look from front, but the problem is, if I change the angle from \tdplotsetmaincoords{30}{10} to ...
18
votes
1answer
509 views

water inside 3D tube

How can I generate the above image using TikZ. The oval inside tube represents water and arrows indicates the dipole orientation of water. What I was able to get so far is pasted below. ...
3
votes
1answer
116 views

Parametric surfaces with dependent parameters

I'm trying to create an image that shows (for example) the portion of a standard cylinder (\cos(v),\sin(v),u) that lies between the planes z=0 and z+y=5. Generating the cylinder itself is not an ...
3
votes
1answer
71 views

media9: toggle elements of a 3D scene

I successfully created a 3D PRC file and have embedded it in a PDF using LaTeX and the media9 package. Now I need to create buttons to allow the user to toggle on/off some elements of the scene. From ...
4
votes
1answer
97 views

Asymptote: prevent label scaling in 3d perspective

Is there a simple way to prevent labels from scaling based on their distance to the camera in a perspective 3d view? (For example, see the first comment on this question or page 65 of this tutorial.) ...
9
votes
3answers
249 views

Make plot smoother in pgfplots

I'm trying to plot a function using pgfplots: \documentclass{scrartcl} \usepackage{pgfplots} \pgfplotsset{compat = 1.12} \newcommand{\param}{2.0} \begin{document} \begin{tikzpicture} ...
8
votes
1answer
124 views

Extrude shapes in tikz 3d

I want to have a shape protruding out of a plane, like the green rectangles here So far I have a made a box like this: \documentclass[]{article} \usepackage{tikz} \usetikzlibrary{3d} ...
1
vote
1answer
73 views

Tikz and figures in 3-space

How can I draw this in LaTeX? I can do with a lot of segments but I think that there is other easy way to do it. And how can I add this gray blackground to images that give that spatial view.
10
votes
2answers
236 views

Stereographic projection of a circle to a plane in Asymptote

I would like to produce an Asymptote version of the scene portrayed here: https://www.youtube.com/watch?v=kE6aC51LMv0 The output should preferably be vector graphics. Nevertheless, this is how far I ...
0
votes
1answer
127 views

Tikz: Stacked hollow solid cylinders

Is there a way to draw three hollow cylinders with finite thickness in TikZ? The result should look something like this: I already found the shape=cylinder option as in here or here. But I have no ...
4
votes
1answer
140 views

Adjusting 3D-view in pgfplots by custom transformation matrix for multiple axes

I'm trying to overlay two axis environments in a tikzpicture for adjustable views. In principle this wouldn't be a big deal - but, I would like to use this technique for the projection e.g. of text ...
1
vote
1answer
95 views

pgfplots error plot 3D math function of two variables

I want to plot a very typical production function (q=L^0.5*K^0.5) in 3D using pgfplots package. When I compile the following MVE I get the following error "! Package pgfplots Error: An internal error ...
6
votes
1answer
379 views

Drawing a three-dimensional region

I want to draw a region in a 3D envirement. At the moment I'm doing this using tikz. The region is defined by the addition of a translation (1) and a rotation (2). The resuling region in 2D would be ...
2
votes
0answers
176 views

Draw a hemisphere (or just a segment of a sphere)?

Drawing a sphere is easy enough using the ball shading, or some more refined form as in How to draw a shaded sphere, but I would like a way to shade only one half (or even just slices). I currently ...
2
votes
0answers
163 views

Drawing “beautiful spheres” in TikZ

I found some ready-made code to draw spheres and lines on them in this paper, which refers to this example. Bottom line is that I do not get the presented result using MiKTeX on 64-bit Windows 7, ...
1
vote
0answers
50 views

Glitches and other problems with pgfplots

I want to draw a rather smooth surface in a 3D graph with pgfplots. 1) It shows however, some glitches (spikes on the smooth surface), which I guess due to some numerical issues in the basic package. ...
15
votes
4answers
795 views

Drawing a 3D volume - Cube

I'm wondering how I could draw something like the image below: I've been working in that code: \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{matrix, calc, backgrounds, ...
4
votes
1answer
143 views

Drawing Ellipsoids in Asymptote; Camera too Close

I am trying to draw a set of Ellipsoids in Asymptote which are given by an symmetric positive definite matrix or in other words by three vectors v1,v2,v3 of length 1 forming an ONB (the ellipsoids ...
16
votes
1answer
251 views

Truncated cube with numerated faces

I am having difficulties to project texts in inclined planes. To be more precise, i would like do latex the following question. Exercise: In the following figure, we see two different views of a ...
2
votes
1answer
156 views

Tikz 3d trimetric view coordinate calculation bug

I'm trying to draw a line in the x-y-plane and circles in the y-z-plane at constant x position. Problem is, that the circle is far out of position (x-coordinate of center point of the circle is ...
4
votes
1answer
355 views

Best program for 3D plotting for LaTeX [closed]

I'm cross-posting this (also on Mathematics stack exchange, but not really getting the answers I'm looking for, so thinking I may have posted in the wrong community originally). I've hit a roadblock ...
8
votes
1answer
137 views

Plotting several 2d curves (with different colors) in a 3d graph

I'm trying to reproduce 3D plots with several 2d curves, like in Plotting several 2D functions in a 3D graph. The end result looks like this: The questions are: I would like to change X labels ...
2
votes
0answers
120 views

pgfplots: rotating a shape in 3D independent of the axes

I have a group of shapes I'm plotting in 3D via \addplot3 (such as a cone) and need to have them pointed in a direction specified by the macro arguments. I do not want to just change the view angle or ...
2
votes
1answer
184 views

Beamer class and U3D Views

I want to switch 3D views in my presentation. I have read in the movie15 package that it is possible with the command: (dice example from movie15.pdf page 16) \movieref[3Dviewindex=N]{dice}{Click ...
2
votes
2answers
417 views

pgfplots: Color a 3D surf plot based on y-value

I'm not sure if things have changed since version 1.7, but this is the closest thing I could find. I'm wondering if there's an easier way to use the y-value with a colormap to determine the color, or ...
2
votes
1answer
167 views

PGFplots z buffer does not sort the plotted objects properly

I have a PGFplots axis environment in which I attempt to plot several line objects and a surface object. The objects have to be 'sorted' in the sense of which object is drawn before or behind the ...
4
votes
0answers
94 views

Asymptote: set camera inside the box defined by the axis

The first figure is the (almost) the example elevation.asy from the demo gallery. I'd like to do an animation of a moving camera navigating in-between the peaks (a bit like a walkthrough in ...
5
votes
1answer
109 views

Asymptote: maintain window size while changing POV in animation

In every Asymptote animation example that I found (see e.g. here or here), the viewpoint is constant during the animation. I would like to make one which consists in a rotating viewpoint, the drawn ...
3
votes
0answers
176 views

PGF: draw longitudinal arcs in 3D axis environment

I want to draw a sphere, similar to the first one here: http://www.texample.net/tikz/examples/map-projections/ But - of course - different. This is, what I did so far: The dashed lines are behind ...
12
votes
3answers
566 views

Asymptote: draw surface from data points in 3D

In the figure below, you can see 25 curves. Each of these curves was plotted from a list of points in a file mypoints_i.dat. Each of these files contains the exact same number of points. How would ...
2
votes
1answer
75 views

how can plot mesh from a data file?

i want plot a 3d mesh plot from a data file .the tex file can be run but it's output is wrong. please help me. \documentclass{article} \usepackage{tikz, pgfplots} \usepackage{pgfplots} ...