Questions tagged [tikz-3dplot]
This tag is for questions related to the tikz-3dplot package for enhancing the TikZ coordinate system to 3D.
580 questions
8
votes
2
answers
268
views
How can I draw a filled plane using tikz/closedcycle
I want to make a 3-D figure with a spatial diagram line and draw its projections onto the three axes planes. For better visibility, I want to mark the projections' positions with shaded planes. The ...
0
votes
0
answers
88
views
What package is being used to generate these 3d plots? and advice on how to efficiently produce similar figures without hand-drawing everything
In the following 4800 pages long topology book one can see lots of images like this:
At the moment I am writing a document (Using Lyx) in which I would like to include similar plots. Does anyone ...
3
votes
1
answer
80
views
tikz-3dplot: Changing the default length unit from pt to cm
For the following, is it possible to change the default length unit to be cm so that the red and blue texts overlay each other?
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usepackage{...
4
votes
2
answers
198
views
points with "node label" fails to create closed region with cycle and fill it
The title and contents below have been edited to reflect the current problem and culprit.
I think it is not specific to 3dtools or tikz-3dplot but the inherent feature of TikZ where we cannot make a ...
3
votes
3
answers
206
views
Clip 3D shape in tikz
I do not know if this is possible: when I create this basic 3D figure, I would like the flat surface to follow the curvature of the sphere when they meet, giving a more clear 3D view.
Here the code:
\...
6
votes
1
answer
186
views
Managing vortex and spiral behavior in PGFPlots
I am trying to draw a vector field in pgfplots, but I am encountering issues that I can't solve despite various attempts.
Specifically, I want the vortices or spirals to be dependent by the vector ...
1
vote
1
answer
77
views
\tikzsetnextfilename (externalize) with \tdplotsetmaincoords (3d-plot) and tikzscale
Where is the mistake or incompatibility? If I comment out tikzsetnextfilename everything works as expected.
Consider the following setup (Windows machine, MikTeX installation):
<project_directory&...
0
votes
1
answer
125
views
Help recreating an image using TikZ [closed]
I'm useless with Tikz, my limit is very simple 2D plots.
I need to try and reproduce something along the lines of the figure I am attaching here.
Is anyone able to provide any guidance as to where to ...
2
votes
0
answers
32
views
Plotting 2d-function in 3d-plot [duplicate]
I'm trying to make a 2d-parabola in 3d-plot. It works with y=0 plane (black dashed parabola), but in x=0 I have parabola with connected ends (blue parabola), which is wrong. How can I get rid of this ...
1
vote
0
answers
108
views
TikZ-3d: Trouble Drawing Lines and Inserting Labels
So, I was using this solution on TeX Stack Exchange to draw some planes nicely. But, at the end, I wanted to draw some lines (to indicate right angles) and label the planes. But I found that the \draw ...
0
votes
0
answers
36
views
Complex 3d-figure in LaTeX (connected cuboids) [duplicate]
What are the steps to create this 3d figure in tikz?
I need to reproduce it, is tkz-euclide somehow useful for that? I'm pretty new in tikz and wanted to learn 3d figures instead of just 2d ones. ...
1
vote
2
answers
128
views
Is that possible to use coordinate calculation to project one point in tikz-3dplot?
I know that $(A)!(C)!(B)$ can project vertically from C to AB in 2D case, however, if I want to project it as the perspective changed in 3D diagram, it's failed:
\documentclass[tikz,border=6pt]{...
2
votes
0
answers
75
views
Clip in tikz-3dplot
I have the code below working perfectly:
\documentclass[tikz,border=0mm]{standalone}
\usepackage{tikz-3dplot}
\definecolor{vinho}{rgb}{0.0, 0.26, 0.15}
\usepackage{xfp}
\newcommand{\ar}[1]{\fpeval{...
3
votes
2
answers
149
views
\tdplottransformrotmain{}{}{} equivalent in luacode
I am trying to recreate the \tdplottransformrotmain{}{}{} command in luacode.
The command should input a point and a ZYZ rotation matrix, and output the point's image after it undergoes that rotation.
...
8
votes
4
answers
1k
views
How to make sphere in TikZ
I'm learning to make 3D figures like cone, triangle, sphere etc in TikZ and hopefully I managed to make nicely looking cones and triangels but the problem is with Sphere.
This how I currently managed ...
6
votes
1
answer
159
views
TikZ Parametric Surface Debugging Request
I am trying to make a parametric surface using TikZ.
When the faces of the surface are close to the boundaries, there seems to be an incorrect coordinate, because they aren't connecting properly.
...
1
vote
2
answers
96
views
How do I project planar shapes from coordinate space onto a surface plot?
I have the below code which I have been using to draw a basic torus (sourced from another question on this site):
\documentclass[tikz,border=7pt]{standalone}
\usepackage{amsfonts}
\usepackage{tikz}
\...
2
votes
2
answers
223
views
TikZ: Drawing an arc between two 3d-coordinates? [duplicate]
I try to draw an angle (right angle or greek letter) between two 3d-lines with tikz.
The code is:
\documentclass[varwidth=true, border=10pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{...
0
votes
0
answers
51
views
\tdplotdrawpolytopearc -- dimensions too large
I am obtaining a dimensions too large error when trying to use \tdplotdrawpolytopearc.
See https://tex.stackexchange.com/a/733935/319072.
\documentclass[tikz, border=1cm]{standalone}
\usepackage{tikz-...
0
votes
1
answer
135
views
Drawing Lagrange top in tikz [closed]
I would like to draw a Lagrange top in tikz, along the lines of the following image (taken from Thornton and Marion's "Classical Dynamics").
I have seen similar (simpler) drawings, but ...
2
votes
1
answer
135
views
Create 3D surface and color it with a 4th dimension
I am trying to make a 3D surface in pgfplots, and color it with data from a .csv file.
My file contains four columns. The first three correspond to the cartesian positions (x,y,z), and the fourth ...
0
votes
0
answers
47
views
Cross section of the sphere [duplicate]
How can I make the following picture using TikZ?
2
votes
2
answers
109
views
scale the x y and z dimensions individually in tikz-3dplot
In regular tikz, there are the xscale and yscale options. These only work on the screen image's dimensions though.
\documentclass[tikz, border=1cm]{standalone}
\begin{document}
\begin{tikzpicture}[...
3
votes
3
answers
265
views
automate the drawing of angles in 3d perspective
Credit: https://tex.stackexchange.com/a/727949/319072
Is there a way to automate the drawing of angles in 3d perspective? The angles library just draws them on the screen plane. I can do it manually, ...
2
votes
1
answer
154
views
How can we sketch a 3D histogram and 2D hinton diagrams with Latex?
I am trying to draw a 3D histogram and a 2D Hinton diagram same as these images:
Here is my code:
\documentclass[margin=2pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{...