# Tagged Questions

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

575 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 ...
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, ...
62 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. ...
1k 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, ...
308 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 ...
315 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 ...
273 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 ...
556 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 ...
204 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 (...
238 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 ...
397 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 ...
1k 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 ...
338 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 ...
140 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 ...
198 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 ...
377 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 ...
1k 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 ...
118 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} \begin{...
706 views

### How to draw a squeezed ellipse with fading color on a sphere surface with TikZ?

Ideally, I would like to draw something like part (c) of the image below: . Here, I narrow down the question to how to draw an ellipse on the surface of a sphere with fading color as shown on part (b) ...
485 views

### How can I draw the 3d blood vessel [closed]

How can I draw the 3d blood vessel as the picture showing?
2k views

### I want to draw a dot / small sphere in a TikZ 3D Plot

I got a 3d coordinate system and I want to mark a point with a dot. \begin{tikzpicture}[x = {(0.866cm,0.5cm)}, y={(0cm,1cm)}, z={(0.866cm,-0.5cm)},] \draw[thick,->] (-15,0,0) -- (15,0,0) node[...
115 views

### Is it possible to make slideshow with u3d files in a beamer template?

I'm just interested if there is a technical way to merge between animate package and movie15 package in order to get an interactive 3D slideshow (like that shown below in the link) with full features ...
387 views

### tilted planes as scopes

I am trying to rebuild the following 3D graphic with TikZ. Exact resemblance is not required, and I have actually decided to change the geometry and style a bit to increase the clarity of the (...
264 views

### Can I add 3D objects as subfigures (using movie15)

I have faced one stiff problem that when I try to add four 3D plots (2 rows x 2 columns) in my beamer by using subfigure approach, I fail! This is my minimal example: \begin{frame} \begin{figure}[t] ...
138 views

### Lines plotted in front of others, though they should behind in a 3d plot

After converting a figure to TeX using matlab2tikz, I figured there's a little problem. The figure consists of many lines, but there are two different sets of lines a cloud set, forming a stream ...
140 views

### PGFplots 3D: Axis labels are placed “in the middle” of axis instead at the tip

I would like to use the "center"-style for axis and place the label of the axis near the arrow tip. It works in 2D but in 3D the labels for the x and y axis are placed at very weird places. See the ...
392 views

### Transform paper folding diagram to 3D object or vice versa

I made this commands to make paper models, and I ask if it is possible to have a 3D view of them converting in tikz-3D, or backward. But it's easier to draw the flat model and generate the volume ...
553 views

### How can I draw a twisted 3D arrow?

Does anyone know how I can draw an 3D arrow that in itself is twisted by 90 degrees? I need such arrow to show how polarized light is twisted in a liquid crystal. I would like to include that arrow ...
674 views

### Draw closed section of sphere using pgfplots

I want to draw a section of a sphere to represent its volume. I have currently got the following: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.11} \begin{document} \begin{...
313 views

### tikz-3dplot, geodesics and adressing endpoints in polar coordinates

I am trying to draw geodesics on a sphere. While many approaches, like for example this one, i am more interested in another way. If i specify two points, say qand p on the Sphere, i would like to ...
250 views

### Cannot compile asymptote 3D graphic

I just installed Asymptote on my laptop and while I can compile 2D images, rendering never completes when compiling 3D images. Here is what I did on my Windows 8.1, 64 bit machine: installed ...
189 views

### Drawing bonds between atoms with pgfplots

I'm trying to draw a molecule using pgfplots. I have successfully drawn the atoms with the code below: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.9} \usepackage{tikz} \...
288 views

### How to fill a planar 3D path in asymptote?

Is there, in Asymptote an equivalent of the fill command that works for planar 3D paths? I thought surface did this: I expected the commands fill(project(p)) and draw(surface(p)) to always ...
270 views

### Camera zoom and picture size in Asymptote

I am trying to make a 3D animation in Asymptote involving moving infinite surfaces. I would like to set up a "steady camera", so that a unit ball would always look the same size relative to the screen,...
143 views

### pgfplots: frame not closed for surface plot

If you compile this MWE you will find that the frame for the 2d plot is closed, but for the contour plot, which is a 3d plot, not. Both figures are taken from the examples from the pgfplots manual. ...
504 views

### HowTo: 3D plot of a surface element with normal vector

I'm new to tikz, and I'm trying to visualize a surface element, something like In contrast to the example image above (which I referenced from the web), I would like to draw the surface element in ...
768 views

### Drawing coaxial cables: TikZ or pstricks

I want to draw this. I don't find any way to do I can draw some things... but it's so bad! and it's not realistic! please HELP... \begin{document} \newcommand\innenleiter[3]{% \tikzset{Cylin/.style={...
304 views

### Asymptote: Parametric surface isn't working with Spline interpolation

I have a parametric surface that is defined in terms of the Lambert W function and which I want to display with Asymptote. For that the Lambert W function was implemented using Newton's method and the ...
351 views

### Labels in 3D mode don't work in Asymptote

When I create 3D asymptote graphics, labels just don't work. When I copy the code from the question in Positioning Labels in Asymptote I get the exact same plot just without the "x". Everything works ...
393 views

### Using tikz how to draw a wedge?

I'm working on to create illustrations for my class on Mechanics of Materials & Theory of Elasticity! I am trying to create a wedge and put arrows on plane to show the stresses acting. ...
515 views

### Draw a circle in a coordinate system of an arrow on a half-sphere

I am trying to draw a half sphere with several arrows on it. Each of those arrows should have a circle positioned on it, drawn in a local coordinate system of the arrow. I managed to draw the sphere ...
231 views

### Asymptote: How to draw surfaces with more than four vertices without “seams?”

In Asymptote 3D, I need to draw surfaces with more than 4 vertices, but when I do, either it simply doesn't work (I can't reproduce this in a simple example, but can provide a more complicated case ...
162 views

### Bending of edges

I have some problems bending the edges of my grap properly. I want to draw a flow network, so far I have done the following: What I would like to have is that the edges going out from the Source ...
577 views

### How to plot the four regular star polyhedra with tikz?

I can plot the regular convex polyhedra, for examples \begin{tikzpicture}[scale=1.0] \tikzstyle{every node}=[circle,fill=blue!20,inner sep=0pt,minimum size=0.4cm] \foreach \y[count=\a] in {10,9,...
180 views

### Path shaded perpendicular to its direction

Is ist possible to apply a shading to a path perpendicular to it's current tangent. I want to draw some kind of 3d-pipe. My question is related to this question. I want to draw 3d-molecules and I am ...
573 views

### Parametric Plot 3D, Helix and Astroidal Sphere

Can somebody help me with creating two plots -- a Helix and an Astroidal Sphere -- in LaTeX? The attached pictures are screenshots from Mathematica and show the desired results.
1k views

### Parabolic Moebius map on sphere using tikz

There is a discussion here about coding the elliptic Moebius map. I however am interested in how I might do the parabolic one. case [d] The arrow heads are not an issue, but how do I get the lines ...
251 views

### How can two bivariate normal distributions be plotted in one plot?

I would like to visualize the following two bivariate normal distributions: I found Jakes awesome answer and adjusted it so that the plots get rotated the correct way. Current plot Question ...