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

learn more… | top users | synonyms

4
votes
0answers
511 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
422 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 ...
2
votes
2answers
538 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
361 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 ...
19
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
519 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
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} ...
10
votes
1answer
608 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: ...
4
votes
1answer
220 views

Make lines disappear, pst-solides3D

I'm drawing the following cylinder which represents a water flowing and cooling down \documentclass[a4paper,10pt]{article} \usepackage{pstricks} \usepackage{auto-pst-pdf} \usepackage{pst-solides3d} ...
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 ...
6
votes
3answers
974 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
293 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
889 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 ...
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
350 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 ...
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
552 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
317 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
580 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 ...
4
votes
1answer
257 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 ...
11
votes
1answer
941 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
518 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 ...
6
votes
1answer
895 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
1k 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 ...
15
votes
1answer
1k 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
151 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
878 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 ...
7
votes
0answers
398 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
790 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 ...
34
votes
1answer
1k 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 ...
4
votes
1answer
362 views

PGFPLOTS 3d box line for Z axis not being drawn

The vertical 3d box line for Z axis is not being drawn. If I make the grid lines dashed, the line is drawn, but also appears dashed, as the grid lines. To me, it looks that the line is in fact drawn, ...
9
votes
2answers
2k views

How to draw an Icosahedron?

After going through the pgf manual and also searching the web for some solution or at least a hint on how it can be done (preferably using TikZ), so I came here with my question: How to draw an ...
11
votes
2answers
630 views

How to cut a surface at the intersection with another surface in Asymptote?

In the code below, I define a cylinder (as a surface of revolution) and a plane (as a cyclic path). From both, I can get a surface that renders in 3D. Now, I would like to hide (or better remove) the ...
6
votes
1answer
168 views

Recreating a square with fixed baseline and height (3d)

I am trying to recreate the following image, as close as possible. The point is that the circumference of the bottom, plus the height of the cube needs to be 30. Which gives 30 = 4x + h so I want ...
2
votes
1answer
2k views

matlab2tikz for surf plots: reducing data?

I was really happy to see that matlab2tikz also supports surf plots. Unfortunately, it produces too much data, so I run into the well-known memory problem. I tried compiling with lualatex instead of ...
28
votes
3answers
2k views

How can I draw nucleosomes with wrapped DNA in tikz or pstricks?

The nucleosome is the fundamental unit of DNA packing in cells, and I am trying to generate some figures for regular use in manuscripts and presentations. The nucleosome is commonly abstracted to a ...
6
votes
1answer
511 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 ...
3
votes
0answers
304 views

Pst-Solides3D Transformation of a Cube with parameter [closed]

I'm working on the example given at 4.14.3. in the documentation on Pst-Solides3d : Transformation associated with the distance to the origin. The code is as follows ...
6
votes
1answer
629 views

What packages or tools best support any 3D line, plane, surface intersections?

I have not explored the PSTricks' pst-solides3d, TikZ's equivalent packages, Asymptote as a tool, etc, yet. I have a task to make some simple 3D diagrams that are related to 3D geometry subject we ...
4
votes
0answers
238 views

3d axis label ovelapping [closed]

I'm using matlab2tikz to generate the tikz code for my figures. When compiling the document with the figure code as below, I get an ovelapping with the axis label y and z. Here is what I've got: ...
17
votes
4answers
2k views

How can I draw a transparent cube in 3D perspective?

I would like to draw a transparent, `flattened cube' in perspective with dotted lines from both vanishing points to each of the vertices of the 3D solid. Is there a PSTricks package for this? It is ...
5
votes
2answers
943 views

How can i import a 3D SolidWorks Model into my PDF using LaTeX

Acrobat Adobe supports 3D PDFs to be included into LaTeX. I could use another tool to create a PDF and import that PDF into my build, but i would rather use a package o include a solid works model ...
18
votes
2answers
2k views

Making a labeled Klein bottle using TikZ or pgfplots?

I'd like to be able to draw the following cell complex structure on the (three-dimensional embedding of the) Klein bottle using LaTeX. I am pretty pleased with my hand-drawn rendition, but LaTeX is ...
7
votes
2answers
558 views

Shading of cubes in 3D picture

The example here is just great (and even better with the implementation in the comment). I would, however, like to have all the sides on a cube in the same color but have the color change in each ...
12
votes
1answer
2k views

Documentation of the tikz 3d library

Where can I find the documentation of the tikz 3d library? There seems to be no such section in the manual and google didn't help me in this case.
8
votes
1answer
442 views

Best way to get the unit vector of a given vector in tikz 3d

Suppose I have a coordinate in tikz 3d which I interpret as a vector, for example \coordinate (v) at (3,2,9); What's the best way to get the unit vector pointing into the same direction? My first ...
4
votes
2answers
471 views

Drawing a central composite design

Please I would like to draw a central composite design using PSTricks, or possibly tikz. This is the cube with the axes showed below. I have tried pst-3d but this is not easy. If you had an example of ...
9
votes
1answer
1k views

Changing view angle distorts sphere with pgfplots

I am trying to learn how to use pgfplots by plotting simple things, like a two-dimensional sphere. However, I find it quite surprising that depending on the view angle, the result sometimes does not ...
10
votes
2answers
1k views

Intersection of 2 surface plots in pgfplots

My question is pretty much a duplicate of this one. I'd like pgfplots to display the intersection between tho surface plots properly. Unfortunately, my function is quite different from the one in the ...