Skip to main content

Questions tagged [tikz-3d]

For questions about projections using {tikz-pgf} including PGF's `3d` library.

29 votes
4 answers
11k views

TikZ: How to draw an isometric drawing in tikz

In the below image top: rectangles Bottom: isometric views. How to do it in TikZ? Similar result but not correct... \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \...
sandu's user avatar
  • 8,052
21 votes
1 answer
1k views

Symbolic 3d coordinates in TikZ

Warning: answering this question may require some efforts. The purpose of question is to "teach TikZ 3d coordinates". What does that mean? If we define a coordinate in TikZ, \path (<x>,<y&...
user avatar
20 votes
3 answers
7k views

Drawing Axis Grid in 3D with Custom Unit Vectors

I am trying to adjust the unit vectors for each of the axis, and draw a coordinate grid. I can get it to work without specifying the unit vectors, of specifying it as: x={(1.0cm,0.0cm)}, y={(0.0cm,1....
Peter Grill's user avatar
18 votes
2 answers
2k views

Tikz: Draw a RGB cube

I am trying to draw a RGB cube using Tikz. Until now I managed to create this cube with color gradients: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{3d} \usetikzlibrary{shadings} \...
Eugen Randt's user avatar
17 votes
1 answer
3k views

3D Arrow Tips for TikZ/pgfplots

I really like the arrow tips shown in How to get rid of the viewer's (incorrect) axes in an Asymptote 3D graphics and am wondering how to produce this in pgfplots: I admit I have not tried yet, ...
Peter Grill's user avatar
13 votes
1 answer
640 views

How to draw an arc for a bullet

My apologies in advance if you feel that this question is more about drawing instead of being technical. The following diagram is what I want to replicate in Latex: I believe I have done most of the ...
Will Kim's user avatar
  • 2,072
13 votes
2 answers
481 views

High entropy alloy in TikZ

I'm trying to reproduce this illustration of a high entropy alloy (HEA) in TikZ: What I have so far looks quite bland because I can't find a way to randomly assign one out of a list of colors. \...
Janosh's user avatar
  • 4,130
12 votes
1 answer
725 views

How to draw a 3D sphere and a 3D cone for Spherical coordinates

I'm trying to replicate this figure: Right know, I have this code: \begin{figure}[H] \centering \begin{tikzpicture}[yzx, scale = 0.9] \draw[->] (0,0,0) -- (5.5,0,0) node(x)[left]{$...
Peluche's user avatar
  • 613
11 votes
1 answer
997 views

How to draw the following diagram (a wedge of cheese) using pgfplots or tikz?

I would like to draw the diagram below using either pgfplots or tikz. I am able to draw a cylinder, using the pgfplots manual, but I don't know how to draw a fraction of a cylinder.
Anthony Macks's user avatar
11 votes
2 answers
846 views

How to do a planar/multiview/first-angle projection in Tikz?

I need to make quite a few "first-angle projection" in Tikz (see Wikipedia ) for an exercise sheet, so I was wondering if there is a routine to make them? By this I mean that I could give a certain ...
ARG's user avatar
  • 285
10 votes
2 answers
8k 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} \begin{...
Sebastian Schneider's user avatar
10 votes
2 answers
611 views

Drawing a basket in Tikz 3d

For some mathematics project I'm trying to draw a basket as sketched in the picture below, I've gotten some of the lines of the basket in, see picture below after the MWE, however I'm still ...
Matthew Lou's user avatar
10 votes
1 answer
575 views

Planes tangent to a cylinder

I am trying to make this graph I have had several advances compared to my original question, but I don't know how to color the part blue, This is the result that I have obtained together with the ...
Zaragosa's user avatar
  • 601
10 votes
1 answer
646 views

How do I shade a cone to match ball shading?

How do I shade a cone like this Note that the bright part is wider at the bottom (because the radius is greater there). The intent is that the cone and \tikz \shadedraw[ball color=red] circle[radius=...
Mogens's user avatar
  • 101
9 votes
1 answer
633 views

How to draw a 3d horseshoe in TikZ

I am trying to draw an experimental setup involving a horseshoe magnet. I am having difficulty of hiding lines that should not appear, and I am unsure how to use shading to indicate the different ...
sab hoque's user avatar
  • 2,637

15 30 50 per page
1
2 3 4 5
11