{3d} is about three-dimensional content, e.g., images and drawings.
4
votes
1answer
107 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 ...
0
votes
0answers
36 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
91 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 ...
10
votes
3answers
182 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 ...
7
votes
1answer
160 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 ...
4
votes
2answers
117 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
71 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 ...
4
votes
0answers
109 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:
...
10
votes
1answer
104 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
102 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)?
5
votes
2answers
86 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:
...
11
votes
1answer
243 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, ...
2
votes
5answers
652 views
Draw an aircraft with Tikz
I want to draw a plane using the Tikz tool.
You will find, attached, a screenshot.
11
votes
1answer
437 views
Isometric paper and drawing on it — with PSTricks
I would like to create a drawing on isometric drawing paper like the following:
N.B. Forget the drawing on top of the paper; it is just something I found in order to illustrate the type of paper I ...
31
votes
3answers
1k 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}
...
1
vote
1answer
112 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?
33
votes
2answers
883 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.
...
11
votes
3answers
527 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
78 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
89 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 ...
1
vote
0answers
181 views
How to draw a 3d cylinder using TikZ-3dplot?
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
145 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 ...
1
vote
2answers
186 views
How to draw spherical using 3dplot
I would like do draw some sphericals using the package 3dplot. Does anybody know how to draw spericals with different diameter and postition in a coordinate system like that one?
...
2
votes
1answer
153 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 ...
12
votes
3answers
496 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
133 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, ...
5
votes
1answer
223 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}
...
8
votes
1answer
144 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 ...
14
votes
4answers
560 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: ...
12
votes
1answer
399 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 ...
5
votes
1answer
199 views
tikz-3dplot rotation around the X axis?
I'm trying to create a simple spherical quadrant grid using the tikz-3dplot package. The longitudinal grid lines look fine but when I try to create the latitudinal lines I get really strange results ...
2
votes
0answers
155 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 ...
20
votes
3answers
531 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 ...
5
votes
1answer
357 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
133 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 ...
8
votes
1answer
263 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 ...
6
votes
1answer
308 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
169 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:
...
3
votes
0answers
166 views
Naming 3D axes in pgfplots
I want to label the axes in a 3D plot with pgfplots. Using the anchors .right of origin and .above origin, I can label the axes as "x" and "y" in 2D with ease. In 3D, the labels must be tweaked to ...
3
votes
1answer
124 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 ...
8
votes
1answer
172 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.
6
votes
1answer
229 views
A perpendicular line to a plane in 3D
I have two line segments identified by two end points each. Two line segments are in the same plane and intersecting at a point. I would like to draw a line (normal of the plane) passing through the ...
5
votes
1answer
346 views
pgfplots: color a (3D) surf using arbitrary RGB colors
I would like to color a surf using arbitrary RGB colors (unlike this question, which just colors the surf using the colormap).
In this minimal example (which plots the x+y function), I would like the ...
6
votes
1answer
355 views
2D colors above 3D surface plot
I would like to draw a 2D, colored plot of a function above its surface plot.
I tried copying the surface plot and setting z filter/.code={\def\pgfmathresult{1.4}}, but then everything is the same ...
12
votes
1answer
463 views
Drawing 3D crystal lattice with tikz/pstricks
I need to draw 3D lattice of DO3 type (Ni-Mn-Al, DO3) and more complex ones.
Both TiKZ and PSTricks packages draw following objects on top of previously drawn disregarding "real" 3D position. For ...
5
votes
0answers
136 views
How can I create a 3D Manhattan bar chart? [duplicate]
I have some data which I would like to visualize. This data are 3-tuples of integers:
(Threads,Sum,# of occurences)
(1,2,20)
(1,7,18)
(1,100,25)
(2,7,15)
(4,103,24)
I would like to visualize this ...
23
votes
1answer
424 views
More elegant way to achieve this same camera perspective projection model?
I just finished a camera perspective projection model using TikZ. Although, while I'm pretty satisfied with the result, it took me a lot of time to do it. It's easy to see from the code below that I'm ...
6
votes
0answers
211 views
TikZ trapezoid transformation (vanishing point) [closed]
Within a TikZ drawing, I want to distort a 2D rasterimage (from
\includegraphics) so that it appears to be rotated by 90° around the
vertical axis in 3D (it should look perpendicular to the sheet of
...
15
votes
1answer
441 views
How to draw a “Mexican hat potential” using 3dplot?
I would like to make a Mexican hat potential (like this one from Wikipedia)
drawing through TikZ, and I am sure the function to use is straightforward, but I have not managed to find the right ...
33
votes
1answer
575 views
Elliptic Moebius map on sphere using Tikz
I'm trying to adapt this example from texample to produce a sphere with arrows indicating the effect of a elliptic Moebius map.
In fact, I'm trying to redraw the spheres below, but for a while I'm ...





