Tagged Questions

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

learn more… | top users | synonyms

8
votes
1answer
363 views

3D arc in Asymptote

I constructed the technical figure embedded below. I wonder how to draw red arc to denote angle $\alpha$ between two blue vectors. (Actually, I add the desired output using Inkscape.) The Asymptote ...
4
votes
1answer
304 views

Unordered layers in tikz-3dplot (3d effect)

Short formulation of the question Is there a way to order layers in tikz-3dplot according to their distance to the observer's position? The picture should look realistic in order to give some ...
6
votes
1answer
161 views

Fill a region between two coplanar paths in asymptote

I'd like to reproduce in 3D the same thing as can be seen in the manual (section 3.5, Paths) size(0,100); path unitcircle=E..N..W..S..cycle; path g=scale(2)*unitcircle; ...
9
votes
2answers
399 views

Interactive surface plot with pgfplots

I know that it is possible to embed three-dimensional files into PDFs with \LaTeX which can then actively be interacted with by the reader (see here for example). I have a surface plot I made with ...
9
votes
1answer
310 views

TikZ: a cylinder of infinite height

I would like to use the Magenta cylinder from dandelin spheres, but I want to have the illusion that the cylinder goes to infinity in the positive z direction. I am ignoring the rest of the code ...
4
votes
1answer
379 views

Pgfplots: How to fill area under a curve in a 3d plot similar to \closedcycle in 2d

How can I fill the area under a curve in a 3d plot, similar to the \closedcycle command in ordinary 2d plots? Applying this command does a filling which is not rotated. Minimal working example: ...
2
votes
1answer
176 views

Asymptote default renderer problem after upgrading to TeX Live 2013

I just upgraded my TeX Live installation on Ubuntu 64-bit from 2012 to 2013. After the upgrade, when I tried to render some simple 3D drawings I was not getting the default rendering window to come ...
7
votes
1answer
368 views

Asymptote: Is there an equivalent to silhouette for surfaces?

Update If there is no equivalent to silhouette could you comment on my following ideas: I can get the projection of my surface using the planeproject transformation. This is still a three dimension ...
5
votes
2answers
533 views

Drawing molecules with tikz

I have to draw a molecule in 3D with a little pore represented by a 3D sphere inside of it with the same center. I have never used TikZ but I know that it's useful for drawing in LaTeX and I hope ...
10
votes
1answer
1k views

How can one plot in 3D a matrix with LaTeX?

I have a problem with drawing a 3d plot in TikZ. I have a matrix of size (n*m) n is the number of points in the x-direction and m is the number of points in the y-direction and the values in the ...
5
votes
1answer
223 views

Drawing a surface over a nonrectangular domain in asymptote

I use asymptote because of its amazing 3D capabilities. However, when I tried to plot a surface over a nonrectangular domain, I could not do it without getting jagged edges. As far as I know, other ...
4
votes
1answer
387 views

Asymptote 3D viewable in Evince/Okular

Is there a way to get Asymptote 3D figures in a PDF viewable in Evince/Okular? All what I can get is a very bad rastered image in place of my figure. I don't care about the interaction with the 3D ...
8
votes
2answers
426 views

Setting the unit vector ratio gives a '! Dimension too large' error

I have a Delaunay-triangulated surface generated in MATLAB, which I would prefer to render in tikz. I use Nico Schlömer's matlab2tikz script to generate the standalone tex file. The MATLAB result ...
7
votes
1answer
313 views

pgfplots: 2d graphics in 3d axis environment

I would like to stack several external 2d plots into a 3d axis environment like the orange and green planes in my example. As the 2d plots are created externally, I am looking for a way to rotate and ...
4
votes
0answers
181 views

Is it possible to create red/blue 3d color in LaTeX?

Is it possible to create a red/blue 3d effect in LaTeX using a preexisting package? If not, would anybody have any insight into how to go about this? I am planning to make a beamer presentation on 3d ...
2
votes
0answers
217 views

tikz-3dplot: Drawing an arc with the let syntax in 3d

How can I use the let syntax to draw an arc when using tikz-3dplot? At the present, the arc is drawn but doesn't look right. \documentclass[tikz, convert = false]{standalone} ...
2
votes
2answers
642 views

TikZ & PGFPlots: adding a TikZ 3d axis into a pgfplot

\documentclass[tikz]{standalone} \usepackage{tikz-3dplot} \usepackage{pgfplots} \pgfplotsset{compat = 1.8} \begin{document} \tdplotsetmaincoords{60}{130} \begin{tikzpicture}[tdplot_main_coords] ...
13
votes
2answers
2k views

Big data surface plots: Call gnuplot from tikz to generate bitmap and include automatically?

Motivation I have large numerical data files, that I would like to create density (surface) plots of. Since they are very big, we can rule out a few possibilities such as to plot them directly with ...
8
votes
2answers
810 views

Helix on a cylinder

I want to plot geodesics on a cylinder. These are straight lines, circles or helices. I can plot the first two, but I don't know how to draw the helices. To be precise, I would like to know how to ...
1
vote
0answers
352 views

Trouble with 3D axis in pgfplots [closed]

I have texlive 2012 and have drawn a curve in three dimensions with pgfplots. That has not been a problem. The axes occurs in a way not appear well suited. In the code I indicated that ymax = 1.5, ...
4
votes
1answer
124 views

How to do a surface with pstricks using data from a surveying?

For each point of the grid a have the coordinates (X,Y) and height (Z), like: X 1 2 3 1 2 3 1 2 3 Y 1 1 1 2 2 2 3 3 3 Z 2 1 0 4 5 1 8 4 3
6
votes
1answer
316 views

TikZ: showing a plane moving in 3 space

I have 2 identical planes a distance of \Delta t apart. I want to show that first plane is being pushed in the direction of the second plane. I was thinking maybe some randomly placed arrows tangent ...
4
votes
1answer
387 views

Scale Axis in PGFPlots without changing orientation

I'm trying to plot a data matrix using pgfplots and a surface plot. The method described in this question worked well for me: Using pgfplots, how do I arrange my data matrix for a surface plot so ...
26
votes
1answer
1k views

TikZ: drawing 3 intersecting circles and shading

How can I draw the three intersection circles/ellipse with that shading paradigm (not necessarily the same colors) effectively? It appears that the original image doesn't have overlapping colors ...
8
votes
1answer
795 views

How to project a function over a 3D plane

When I looked up the method to express two variable functions as a sequence of intersecting horizontal planes, I thought to use PGFplots to construct a simple set of "slices" of a generic function ...
3
votes
1answer
319 views

Draw an implicitly defined surface in 3D

I want to visualise the following set as a subset of [0,\infty)^3: What's the most efficient way to do this? I am thinking of either TikZ or psTricks.
3
votes
1answer
852 views

Drawing a Plane in 3D space

How can I draw a plane with equation $- \sqrt{3} x+y=0 $ in space (with tikz)?
6
votes
1answer
283 views

Random 3D shape

I created a picture for a random charge distribution and it currently looks like this \documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections, decorations,circuits.ee.IEC, calc, ...
9
votes
1answer
432 views

How to achieve a perspective where two axes of a 3D scene coincide with the x and y axes of the 2D projection?

How should the corresponding camera line look like? currentprojection = orthographic(camera=(x,y,z),up=Y,target=O); In particular, I need a formula for the triple (x,y,z) depending on the angle ...
7
votes
0answers
295 views

Why isn't the arc drawn on the good plane using tikz-3dplot in Tait-Bryan convention

As some people on tex.sx, I used the tikz-3dplot and changed some commands to use Tait-Bryan convention instead of the default Euler convention. As you can see on the following picture, the rotation ...
6
votes
1answer
243 views

Draw bivariate normal distribution in x-z plane

In draw-a-bivariate-normal-distribution-in-tikz, the bivariate normal distribution was plotted on the x-y plane. Is it possible to plot this on the x-z plane/y-z plane?
10
votes
2answers
521 views

TikZ: two ellipses in different planes

How can show that two ellipses are in different planes? \documentclass[convert = false, border = 1cm]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} ...
4
votes
1answer
715 views

How to rotate around arbitrary axis in XYZ coordinate system

I am drawing the cartesian coordinate system in XYZ coordinate system and would like to illustrate a point in the 3d space by drawing the projections on each plane. A simple version would be as ...
8
votes
2answers
405 views

How can I draw two intersecting spheres with highlighted intersection?

I would like to get an image like the this: with two intersecting spheres, marked centers , one point on the intersection should also be marked and a highlighted intersection. I've tried to get ...
9
votes
1answer
706 views

Drawing a ring around a torus (doughnut) using TikZ

I was trying to draw a 2-torus (a doughnut) using TikZ, based on the answer to my previous question Moebius Strip using Tikz, and got the following The result is impressive! However, the vertical ...
3
votes
1answer
492 views

Addplot3 with graphics / Image Offset to Axis

I'm currently working with tikz and pgfplots to set a few plots. It works marvelously for a lot of applications, add I have set a number of plots (especially surfaces from matlab) with help of the ...
8
votes
2answers
907 views

Drawing the contour of a 3d torus

I would like to draw a torus, like the one on the question How to draw a torus, with a 3d package. I would like to avoid drawing the torus in 2d with inkscape (or directly with tikz) because I will ...
1
vote
1answer
122 views

How to fix layering with the 3d package?

I used the 3d TikZ library to draw a circle in the z-y plane around a line along the x axis. But since the circle is drawn on top of the line, it does not look like the line passes through the circle. ...
8
votes
2answers
175 views

3D data plot with PSTricks

Consider the following example: \documentclass{article} \usepackage{pst-3dplot} \begin{filecontents*}{plotting-of-3d-surface.data} 2.17 0.001 0.82044815 2.17 0.002 0.82345825 2.17 ...
16
votes
3answers
4k views

How to plot a surface from a set of data?

Disclaimer: I already read questions like 2D surface on a 3D surface plot external data in a file and 3D surface plots in TikZ but these did not solve my problem. I have this set of data: x y ...
12
votes
2answers
1k views

How to draw an Euler angle rotation sequence with TikZ?

For some lecture notes I want to illustrate successive unit axis rotations using Euler angles. I am quite happy with what I came up with so far: However, I am failing at drawing the angles in ...
6
votes
3answers
832 views

Circular arrow in 3D to indicate a unit axis rotation

I would like to indicate the directions of rotation and symbols used for the respective Euler angles. This would look nice using small circular arrows around the axes, as shown below: In this ...
2
votes
1answer
249 views

pgfplots “dimension too large” with 3D graphic from external source

I want to include a 3D plot that I created in R. The plot is prepared according to the example given for Matlab in the pgfplots manual. I cropped the whitespace around the saved png, added ...
6
votes
1answer
1k views

Setting camera projection angle in tikz to enhance the depth perception when drawing 3D figures

First please see the following example using MATLAB drawing command >>surf(membrane); We can adjust the camera angle using MATLAB's built-in command camproj, the effects are as follows: ...
11
votes
1answer
322 views

Presumed error of pgfplots in the “cutting” of a surface

I'm struggling with a 3D representation through the use of the package pgfplots. I'm faced with an alleged error in pgfplots (from my point of view). Consider the txt file (which is attached here) and ...
5
votes
2answers
1k views

Easiest way to draw a 3d coordinate system with axis labels and ticks in tikz

What's the easiest way to draw a 3d coordinate system in tikz with axis labels and ticks like the following one: Is there any additional package which does this (with adjustable parameters)?
7
votes
2answers
261 views

Position shift when adding label to 3D asymptote diagram

I have this strange issue with 3d asymptote diagrams. Without labels they act as a normal figure, but when I add label, the diagram moves to the edge off the page... MWE: ...
14
votes
1answer
672 views

How to draw the right ascension and declination of a vector in a rotated coordinate frame in TikZ?

During my research I came across the illustration of two reference frames. In my opinion this illustration is lacking, because the coordinate systems are not drawn. This makes it hard to understand, ...
12
votes
1answer
950 views

Help creating solid cylinders along a path in Tikz for crystal lattice diagram

I am trying to draw a diagram using Tikz that will show the crystalline lattice structure of diamond. It should look like the following illustration (reference). I have managed to figure out the ...
9
votes
5answers
3k views

Draw an aircraft with Tikz

I want to draw a plane using the Tikz tool. You will find, attached, a screenshot.