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

learn more… | top users | synonyms

9
votes
3answers
559 views

Plotting intersection of a sphere with a plane

I've made the following code: \documentclass[parskip]{scrartcl} \usepackage[margin=15mm]{geometry} \usepackage{tikz} \usepackage[english]{babel} \usetikzlibrary{arrows} \begin{document} \begin{...
2
votes
1answer
49 views

Wrong reference for fill and comb options

I'm trying to draw a sine in xy plan, fill it with some color, and draw some arrows (dirac) to show it can be considered as a vector. I tried this but the reference of the arrows is 0 and not the x ...
3
votes
1answer
151 views

Rotating axes in 3D for better viewing planes

I have this code: \begin{figure}[h!] \centering % Generat amb TikZ \begin{tikzpicture} % Note: the points have coordinates (x,z,y) \coordinate (O) at (0,0,0); ...
4
votes
2answers
164 views

rotate node in 3D

I am trying to draw this 3D shape I draw the 4 arrows and the cylinder, but can't rotate the arrows in 3D to put them on the top. \documentclass{standalone} \usepackage[usenames,dvipsnames]{xcolor}...
2
votes
0answers
282 views

Draw an intersection of two planes

I use this code for producing the intersection of two planes: \begin{figure}[h!] \centering % Generat amb TikZ \begin{tikzpicture}[x={(240:0.8cm)}, y={(-10:1cm)}, z={(0,1cm)}, ...
1
vote
0answers
151 views

Sphere Intersection using Tikz

I found this example here of two intersecting spheres, have reproduced a couple Tikz spheres that I found here which is the code below. I however would like to know how to get these two spheres to ...
2
votes
1answer
92 views

Confusion about the coordination system of 3D

I am drawing a 3d framework. I use something like (xyz cs:x = 12, y = 6, z = -6) to specify a coordination. However, the figure I produced looks ugly. Especially, the coordinations at the corners of ...
4
votes
1answer
165 views

Artificial Line in PGFPlots 3D Parametric Plots?

I just tried to make a 3D parametric plot of the spiraling helix r(t) = {t, cos(2*pi*t), sin(2*pi*t)} using PGFPlots, but there seems to be an extra line connecting the points r(t_min) and r(t_max). ...
5
votes
1answer
123 views

Properly drawing unit normals (orientation and length) in TikZ 3D

I'd like to visualize some points in 3D together with the connecting triangles and the unit normals of these triangles (cross product of the difference vectors between the points) together with the ...
2
votes
0answers
128 views

Asymptote: Intersect Line with Plane, z-order not correct

Hello TeX Stackoverflow! I have a question about 3D plotting in Asymptote. I want to produce a very simple 3D sketch of a line intersecting two planes, but I have trouble making it look "realistic": ...
4
votes
1answer
142 views

Best way to do 3d transluscent planes

I am trying to replace a diagram I made in powerpoint with something that I am making in tikz-3dplot. The diagram should look similar to this The problem that I'm running into is that the lines ...
3
votes
1answer
128 views

Customized axes in tikz-3dplot, \tdplotdefinepoints not working as expected

I am using tikz-3dplot to draw vectors and arcs in 3d space. In the following example I am drawing two pictures. The code to draw the vector and the arc is the same in both pictures. However, picture ...
9
votes
1answer
470 views

3D arrows with TikZ

Asymptote does give 3D arrows when drawing three dimensional figures (they even have shade!). Could we fake it with TikZ? Here's an example, manually written, with just one arrow worked: \...
7
votes
3answers
739 views

TiKz. Angle between two vectors and a projection

I'm having trouble to draw something with TiKz. What I want to draw I think is simple: SIM is a vector in the YZ-plane with a Beta = 38º, source is just a random vector with positive x and y ...
11
votes
2answers
462 views

Tikz weird 3D look

I've got a slight problem with the way TikZ draws my 3D figure. The edges of the top and bottom of the cylinder in the picture don't seem to match correctly even though I don't think I made a mistake. ...
4
votes
1answer
348 views

Change line style of contour lines in pgfplots

I have a problem regarding the contour lines that pgfplots can add to 3D plots. I want the contour lines to be dashed instead of solid. I've attached a small example from the pgfplots manual where I ...
6
votes
1answer
210 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
232 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, ...
2
votes
1answer
170 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 /usr/local/...
2
votes
2answers
398 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
132 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
478 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
103 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} \usepackage{...
2
votes
1answer
134 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
283 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
286 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] ...
7
votes
1answer
459 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: size(...
1
vote
1answer
166 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
179 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
3answers
829 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 ...
3
votes
1answer
260 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
34 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
1k 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} \...
12
votes
1answer
272 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
203 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
166 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 \tdplotsetmaincoords{90}...
20
votes
1answer
689 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
148 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
112 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
175 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
499 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
206 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} \usepackage[...
2
votes
1answer
111 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
347 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
231 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
282 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
206 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
502 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 ...
5
votes
2answers
552 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
209 views

Drawing “beautiful spheres” in TikZ [duplicate]

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, ...