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

learn more… | top users | synonyms

3
votes
1answer
321 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.
8
votes
1answer
819 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
942 views

Drawing a Plane in 3D space

How can I draw a plane with equation $- \sqrt{3} x+y=0 $ in space (with tikz)?
9
votes
1answer
456 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 ...
10
votes
2answers
539 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} ...
6
votes
1answer
249 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?
6
votes
3answers
878 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 ...
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. ...
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: ...
19
votes
2answers
1k views

How can I draw a vector field (quiver plot) on a surface in 3D?

I'd like to draw a vector field on a torus using PGFPlots and/or TikZ. I managed to do it using ePiX, based on the file decorate.xp from the example gallery, but then I have to do z-sorting by hand, ...
4
votes
1answer
776 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
419 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
743 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
509 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
189 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 ...
2
votes
1answer
254 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 ...
11
votes
1answer
332 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 ...
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 ...
6
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)?
14
votes
1answer
691 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, ...
7
votes
2answers
273 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: ...
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.
27
votes
2answers
4k views

Draw a bivariate normal distribution in TikZ

For a small class I want to draw a bivariate normal distribution and show where the means from the two variables meet in the space. Has anyone done this in TikZ?
38
votes
3answers
2k views

How to project text onto a plane?

I'm trying to create the impression that the text "slice" in the example below is written on the cube slice. What is the best solution? To slant the text? \documentclass{standalone} ...
2
votes
1answer
747 views

spherical coordinates in tikz 3d

Can we specify direction in spherical coordinates? I know we can do polar (angle:radius) but what is we are using tikz-3d and want to specify (r, theta, phi) where theta is the azimuthal angle?
42
votes
2answers
2k views

Draw polarized light

I was trying to draw something like that Searching through the net to see if it already exists in tikz I came accross in texample.net the following image which looks a lot like what I want to draw. ...
6
votes
1answer
1k views

Draw 3D rectangle

I've been searching this for hours, but didn't find a reason for this behaviour: Here is my example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{3d} \begin{document} ...
13
votes
3answers
860 views

Drawing a 3D cone

I want to create some thing like this , but instead of a box, I use another object (a dog silhouette). Here is what I have so far \begin{tikzpicture} \begin{scope}[scale=0.25, xshift=70, ...
2
votes
1answer
214 views

ray from the origin of a sphere to the radius

In my previous post shifting a sphere, I have two spheres which were lifted from texexamples.net On the left bottom side, there is a sphere with a ray from the center to the radius of the sphere. I ...
3
votes
1answer
272 views

Shifting a sphere in code from Texample.net

From Texamples - Stereographic and cylindrical map projections, I decided to use the first sphere. However, I want to setup two spheres. When I add another sphere, only the shaded circle shifts ...
14
votes
1answer
1k views

Tikz: intersection of line and plane

I am struggling with drawing a plane and a intersecting line. I would like to have the line C,P',P in the image, disappear if it is "behind" the plane and have it reappear if it is not behind the ...
7
votes
2answers
1k views

3D-plotting sine integral (PSTRICKS)

I'd like to build up a 3D-Plot (based on pst-solides3d), where the function looks like x=u, y=v and z=\int_0^x \frac{\sin\left(\pi t \right)}{\pi t} - \frac{1}{3} ...
4
votes
0answers
517 views

How to draw a 3d cylinder using TikZ-3dplot? [duplicate]

I'm trying to draw a 3d cylinder using TikZ-3dplot, but the cylinder walls are not aligned properly (as you can see in the image). Does anybody knows what am I doing wrong? \documentclass{article} ...
5
votes
1answer
452 views

Stereographic Projections

Take the unit sphere in the three dimensional space. A plane through the half of the sphere perpendicular to the vertical axis. Pick a point in the plane and draw the line which joins it with the ...
4
votes
1answer
863 views

Navigation system coordinates in tikz-3dplot

I am using tikz-3dplot and trying to represent navigation system transformations. In navigation systems, the orientation of the vehicle axis is given in terms of Roll, Pitch and Yaw. These are ...
2
votes
1answer
387 views

Intersecting planes not shown correctly with TikZ

I made a plot in MATLAB of a deformed and an undeformed model. I converted the figure to TikZ using matlab2tikz and added it to my .tex file. I then noticed that the two configurations, which are ...
20
votes
3answers
2k views

Projection of Circle onto Spherical Surface

I want to draw shapes looks like 15 degrees tilted-semi-sphere and there are circles, placed in a triangular shaped array, on the base area. Then these circles are projected onto surface of sphere. ...
2
votes
1answer
579 views

drawing a circle in the xy plane when using 3d coordinates

I am trying to make a circle in the xy plane that has walls that slope up. How can I do this? Basically a bucket with a bigger opening then base. \documentclass{article} \usepackage{tikz, ...
6
votes
1answer
565 views

pgfplots: labels and width issues in non-boxed 3d plot with oblique projection

Update april 2013 The bug has been fixed with pgfplots version 1.8 (requires \pgfplotsset{compat=1.8}). When I try to add the axes labels to this code, I get a division by zero error. I think the ...
10
votes
1answer
673 views

Contour partially hidden by a surface in pgfplots

Thank's to SE (and particularly these two questions: Draw a bivariate normal distribution in TikZ and How to fix a contour plot at top of a 3D box), I've been able to draw what I was looking for with ...
15
votes
4answers
1k views

How to draw a 3D hexagonal structure with TikZ?

What is the best way in TikZ to draw a hexagonal stucture in 3D? For example, graphite crystals, honeycombs or stable racks made of hexagonal aligned stiffeners. I already found this nice solution: ...
20
votes
3answers
919 views

Isometric Elevation Grid in TikZ

Is there a (simplistic?) way to draw a 3D elevation grid like this in Tikz or PGFPlots? The blue line should be able to move up or down and, eventually, submerge the interior blocks. I've looked ...
2
votes
0answers
304 views

How do I replace an XYZ coordinate system on an already available plot? [closed]

I have an eps file looking like this: I have no access to the original dataset, so replotting it is not an option. I would like to replace the ugly 80s style coordinate system (Both the captions ...
6
votes
1answer
2k views

2D surface on a 3D surface plot external data in a file

I am drawing a 3D surface from external data. Here they are: 0 0 -0.64 1 0 -0.5 2 0 -0.4 3 0 -0.31 4 0 -0.23 5 0 -0.2 6 0 -0.24 7 0 -0.32 8 0 -0.42 9 0 -0.59 10 0 -0.76 0 1 -0.54 1 1 -0.4 2 1 -0.27 ...
3
votes
1answer
382 views

How to draw the outlines of a patch in pgfplots?

In pgfplots the patch plot library allows to basically draw 3D bezier planes easily. This is very helpful if the exact mathematical form of a plane is not known or not important. What I have not ...
11
votes
1answer
1k views

Creating Bezier surfaces using procedural graphics

Are there any package for LaTeX that can create Bezier surfaces? I mean a actual existing function that takes matrices as arguments and generates the surface, not a function written by myself.
9
votes
1answer
1k views

3D line plot in pgfplots

I have the following problem with pgfplots and \addplot3. I have a graph in [0,1]x[0,1] that should display a mesh plot and a line plot that traces a particular line across the mesh. The line plot is ...
7
votes
1answer
588 views

TikZ: draw objects in transparent objects (3d)

I want to draw a cuboid in another transparent cuboid with TikZ. Therefore I've created a \newcommand to draw a cuboid. \documentclass[11pt, halfparskip]{scrartcl} \usepackage{ucs} ...
3
votes
0answers
339 views

Drawing specific curves/planes [closed]

I want to submit a paper and the only thing that's left to do is to add some graphics. My deadline is on Wednesday/Thursday. What I want to do is some basic curve/plane drawings. Here is an image: ...
4
votes
1answer
290 views

Axis label placement in 3d plot far out but why?

I want to plot a dataset in a 3D pgfplots graph. It looks like a good start but somehow the label placement is far out. Boiling it down to a MWE did not give me any hints how to get the labels back in ...