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

learn more… | top users | synonyms

4
votes
1answer
126 views

Setting camera view within Sketch

I'm using sketch to generate 3D tikz graphics, but the sketch documentation is not helpful. For example, here is some sketch code: def v1 ( 0.000, 0.000, 1.000 ) def v2 ( 0.894, 0.000, 0.447 ...
7
votes
3answers
661 views

tikz stacked disks 3D

I would like to know if it is possible to draw an image like this in 3D using tikz? I am having some text around this picture, which looks great in tikz, but I am unable to draw this kind of 3D figure ...
3
votes
1answer
191 views

Can we color and rotate a cube?

I want to present a cube to illustrate, and I want to color four of its sides. The colors will be blue, red, green and yellow; the two remaining sides should be clear or white or, perhaps, black. In ...
28
votes
2answers
895 views

3D solids with Tikz - or an alternative?

I want to draw 3D shapes in latex. I have tried out different strategies, but nothing has led me to a good solution yet. First what I want to do, then what I have done so far. In prioritized order, ...
8
votes
2answers
499 views

Drawing Solids with LaTeX

I want to know if there is a package that automatically draw solids (spheres, cylinders, cubes, prisms). I know I can do this kind of drawing using TikZ or PSTricks. But what about a package where ...
7
votes
3answers
424 views

Creating a labeled tetrahedron with tikzpicture

I am wanting to draw a tetrahedron with labeled points on each corner. I attempted to edit the example of a cone that I found here: A cone with tikzpicture I have made it look partially like a ...
8
votes
3answers
430 views

PGFplots 3d: Creating a filled solid of revolution

I have searched through the internet for a solution, but since I'm not that skilled with pgfplots, I need your help. For several examples I want to draw solids of revolution, but filled ones. I ...
6
votes
1answer
208 views

How to prepare coordinates for 3D surface plot using pgfplots

I'm trying to plot a Pareto front on 3 dimensions, using pgfplots. However, although I expect a nice surface to appear (since it is a Pareto front), pgfplots does not produce the result I want (yet). ...
5
votes
2answers
526 views

Making mesh grid lines transparent in surface plot with pgfplots

I need to make a partly transparent, one color, surface plot. Additionally I want to control the transparency of mesh lines. Running this code: \documentclass{standalone} \usepackage{tikz,pgfplots} ...
1
vote
0answers
167 views

Setting a rotation matrix instead of Euler angles in tikz-3dplot

In tikz-3dplot, I would like to use rotated coordinates by setting the according rotation matrix directly, instead of implicitly by Euler Z-Y-Z angles. I already tried to modifiy the internal matrix ...
5
votes
0answers
163 views

Help creating 3D solids of revolution in pgfplots? [duplicate]

I have done a lot of plotting in 2D using pgfplots but I am new to the 3D portion. I am attempting to illustrate a solid of revolution. For example, I have the area under the curve y = x^2 + 1 on the ...
4
votes
2answers
214 views

Draw circle perpendicular to line

I was trying to create a circumference perpendicular to a line similar to this but I only see a tutorial for creating in a axis-plane (xy, xz, yz) \documentclass[tikz, border=15mm]{standalone} ...
1
vote
0answers
190 views

Drawing a mesh heart in TikZ

I would like to reproduce the figure created with Matlab here, using TikZ. However, I'm very inexperienced with TikZ, and anything more than just drawing lines is beyond my abilities. Could anyone ...
3
votes
1answer
164 views

Converting node coordinates in tikz 3d?

Consider this MWE: \documentclass[% 12pt, journal, onecolumn, twoside, draftcls, letterpaper, ]{IEEEtran} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{positioning} \usetikzlibrary{3d} ...
4
votes
1answer
108 views

Correct clipping of 3D tikz for adjustbox?

Consider the following MWE: \documentclass[% 12pt, journal, onecolumn, twoside, draftcls, letterpaper, ]{IEEEtran} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{positioning} ...
9
votes
2answers
263 views

pgfplots 3d cylindrical coordinate system

I am trying to plot a cylindrical coordinate system using pgfplots. The idea would be to plot the r,theta plane similar to what polaraxis provides, see here. I don't know how to translate something ...
3
votes
2answers
194 views

Connecting line calculations with fitting node in 3D tikz?

Consider the following MWE: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{positioning} \usetikzlibrary{fit} \usetikzlibrary{3d} \makeatletter \tikzset{ ...
4
votes
1answer
168 views

Opacity for pst-3dplot object

How can the opacity of a pst-3dplot object be set to be transparent? I have an example where using opacity or strokeopacity options do not work. I am trying to make an image similar to the following: ...
11
votes
2answers
288 views

Asymptote: when white isn't white

I'm trying to display a white 3D ball with Asymptote (3D PDF), but it always turns up gray: import graph3; import solids; defaultrender.merge=true; size(10cm,0); ...
2
votes
1answer
140 views

Uniform appearance of tick marks in 3d pgfplot?

In the default configuration the tick marks in a 3d plot from pgfplots are looking nicely when using a box but in my opinion not really uniform when the axis lines are in the center. Is there any ...
1
vote
1answer
207 views

rectangle in 3d plane

I am trying to plot a 3d axis with a rectangle perpendicular to the x-plane using the following code: \documentclass[tikz]{standalone} \usepackage{pgfplots,pgfplotstable} \usetikzlibrary{calc} ...
7
votes
3answers
734 views

pgfplots: 3D surface plot from data with free format

I want to plot 3D data from a file (data file) using pgfplots. The data represents an ellipsoid. I want to draw the outer shell like in the following picture, just without the background and in ...
4
votes
2answers
107 views

\pgftransformtriangle problem

Why the red square and circle are not set and oriented on the blue points ? \documentclass[tikz]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \def\Azi{30}%30 \def\Alt{20}%20 ...
2
votes
2answers
285 views

addplot3 [area plot] filling the wrong area

using some saved data, i use (The data file cane be download from pX.txt where the first column is the x and at each iteration, I plot the other columns with respect to the first column) ...
6
votes
3answers
333 views

indicate a right angle in 3d

The following MWE shows what appears to be a piece of paper folded. I want to indicate that the angle between the dashed lines is right angled by adding a simple square at M, such that the missing ...
9
votes
2answers
358 views

3D font in LaTeX

This is an unusual question regarding rendering of a font with a specific 3D-esque style in LaTeX, XeLaTex, or any other TeX flavor. I was looking at some fonts the other day and I came across one of ...
4
votes
1answer
703 views

Plotting 3D graphs in specified axial direction in tikz

I am a complete tikz noob and just taking snippets of examples to draw my first diagram. To get my head around orientations I am starting with the polarizing microscope example ...
1
vote
0answers
141 views

Can't zoom on u3d object in pdf

I am trying to make pdfs with u3d objects embedded, however when doing so I note that I cannot zoom in on the object, either by scrolling, or switching to the zoom tool. Interestingly, the pan tool ...
309
votes
51answers
82k views

Nice scientific pictures show off

Task Show off your best scientific illustration ! The main purpose of this question is to share beautiful scientific pictures, preferably with an educational aspect. Content Your post must ...
29
votes
2answers
997 views

Draw 3D intersecting surfaces

Problem This is a shameless "just do it for me" graphics question, but honestly I have no idea where to start. I'd like to reproduce this figure The image shows the intersection of two ...
2
votes
0answers
131 views

Making a black hole and information

I would like to make the picture similar to the following to represent information in a black hole horizon and black hole inside the sphere in tex. I can make a sphere but making the discrete bits ...
6
votes
1answer
171 views

Is it possible to write text in 3D plots? (And newbie questions on 3d graphics)

I'm making my first steps in 3D graphics in LaTeX. What I got so far is this image In the backgorund one can sense a small D_g; the blue domain should be denoted with that. The red surface should ...
7
votes
2answers
534 views

Projection of included 2D graphics to a plane

General purpose I want to project a graphic file from external sources (example.pdf saved on my computer e.g. a chip design) on the bottom of a 3D graphic (which I can draw in LaTeX by using TikZ, ...
1
vote
1answer
336 views

Torus with semi-dashed line in TikZ

Is there a simple way to produce in TikZ a two-torus rounded by two circles, each with the non-visible half dashed, as in the sketch?
6
votes
2answers
164 views

Close the corners of a grid (of tubes) on a surface in asymptote

Consider the following simple drawing of a saddle surface using asymptote import graph3; real f (pair p) { real x = p.x; real y = p.y; return 0.5*(x^2-y^2); } surface ...
4
votes
0answers
398 views

3d arrows in tikz, or arrows that fit perspective

I'm trying to draw a 3d arrow in a 3d box (well lots of them actually). I've got the 3d box sorted, but the arrow doesn't look quite right. I've set up my axes/projection with: ...
31
votes
1answer
959 views

How can we draw a 3D Christmas gift box, with TikZ?

In the spirit of How can we draw a Christmas tree with decorations, using TikZ? Can you draw a 3D Christmas gift box with as many details as possible(bow tie, elevated lid/bow, patterned wrapping ...
7
votes
2answers
381 views

How to make a 3D Lattice?

How could I create a lattice like this: In 3D, with the ability to change the x,y and z spacing independently of each other? Any solution using any LaTeX program would be great! I have tried to do ...
4
votes
1answer
204 views

Fill a triangle in space using asymptote

I am trying to draw a triangle in space, given its three vertices, using asymptote. A minimal example is import grid3; import graph3; size(12cm,0); currentprojection=orthographic(1,-2,1); ...
5
votes
1answer
248 views

Surfaces rendered using Asymptote won't layer correctly

Question I recently asked a question here: How to plot a lattice of points on the surface of a torus? Where I have two answers, but both render incorrectly on my machine. They are supposed to look ...
7
votes
0answers
184 views

3d graphics/diagrams [closed]

Is there a convenient way to create a 3d graphic/diagram like the following in LaTeX (e.g. with tikz)? I'm aware that convenience is a point of view, however I would describe myself as a newbie to ...
1
vote
0answers
181 views

Replace \path in Tikz with a 3D tube

Is it possible to define a new command in Tikz, which will use the same arguments as the \path [line] (node1) -- (node2); command, but which draws instead a 3D tube?
6
votes
2answers
307 views

Splitting y domain in 3D pgfplots

What I want is to plot my function from y=0-->y=3 and then from y=3,2-->y=6. I want to ommit the space between 3 and 3,2. This is my code: \documentclass[border= 5mm]{standalone} ...
14
votes
2answers
489 views

quiver plot on hyperboloid surface

Using pgfplots, I'm trying to create a quiver plot on a hyperboloid surface something like this. I was able to generate the hyperboloid surface using parametric equations. I could'nt find out how ...
4
votes
0answers
205 views

How to draw this 3D H-layout recursive tree with Tikz? [closed]

Background: This is an extension problem from my last post How to draw the recursive H-Layout tree using Tikz?. The (2D) H-layout tree is actually from the VLSI layout problem in computer science. I ...
3
votes
1answer
830 views

Create 3D heatmap desity plot using TikZ

My question is very similar to "Create heatmap with PSTricks or TikZ", but this time in 3D. So I have tabulary data as follows: x | y | z | value 1.2 | 1.3 | 1.4 | 1.20 0.2 | 0.3 | 0.4 | 3.20 ...
5
votes
1answer
371 views

How can I create simple 3D models?

I would like to reproduce the following image, but in addition labelled with "Wheelbase $w$" and "Track $t$". (Wikipedia image source) I've tried my best with pst-solides3d, but the result is much ...
5
votes
1answer
366 views

How to produce a 3d surface plot by rotating the 2d plot of a function

What I want to do is to produce a 3d plot of a surface of revolution. So far I have achieved the following code... \documentclass[border= 5mm]{standalone} \usepackage{pgfplots} ...
2
votes
2answers
319 views

How to draw a graph by indicating volume of 3D elements but not their position

I have about five thousand observations which I would like to plot in a graph. Since the range of values is wide (from 1 to 108,000, with 90% of the observation taking a value of 2, 99% of the ...
16
votes
3answers
983 views

Draw a 3D diamond structure

I want to draw a 3D diamond crystal structure. The point where I struggle is quite in the beginning to draw connecting 3D rods: \documentclass{article} \usepackage[utf8]{inputenc} ...