Questions tagged [tikz-3dplot]

This tag is for questions related to the tikz-3dplot package for enhancing TikZ coordinate system to 3D.

Filter by
Sorted by
Tagged with
2
votes
1answer
45 views

Draw 3-dimensional angles

I'm using the following code to generate a sketch of a conic pendulum. \usetikzlibrary{angles, quotes} \pgfdeclarelayer{foreground} \pgfsetlayers{main,foreground} \tdplotsetmaincoords{80}{10} \begin{...
0
votes
0answers
52 views

Plotting 3D equation, Wigley ships hull

I want to use Tikz to plot the mesh of a so-called Wigley ships hull, which is described by the following equation: I'm having trouble with constructing the right commands/code for this, especially ...
7
votes
1answer
297 views

asymptote 3d plot with contour on top of surface

I'm trying to plot 3D graph with Asymptote. I used a previous post as guidance. I have well structred X and Y and Z values in 2 files. One with x and y variables and the other file with z matrix. All ...
4
votes
1answer
572 views

How to delete the sphere that is inside the cylinder?

Please help me, I want to delete the sphere that is inside the cylinder. How can I do this? This is my code. import solids; size(10cm,0); currentprojection=perspective(camera=(5,-4,2)); viewportmargin=...
4
votes
3answers
345 views

Gauss mapping image

I am trying to graph this image (where the sphere on the right is the unit sphere x^2+y^2+z^2=1) The image of the hyperboloid by N is {(x,y,z)\in Sphere : -sqrt(2) < z < sqrt(2)}, it is exactly ...
5
votes
2answers
189 views

How to draw circumsphere of a tetrahedron unknowing center of sphere?

I am trying to draw a sphere passing through four points A, B, C, D of a tetrahedron ABCD. In this code, I have center of sphere is (0,0,0 and radius of sphere is a*sqrt(3). \documentclass[border=2mm]{...
8
votes
2answers
490 views

Draw a non-geodesic rectangle

I try to draw this image. where $\alpha_1$ and $\alpha_2$ are circumferences in the unit sphere, passing through C=(1/sqrt(3),1/sqrt(3),1/sqrt(3)) with center at the origin of coordinates, that is, ...
1
vote
1answer
96 views

How to make this figure better?

I am trying to draw figure shown below: Here is my MWE: \documentclass[tikz, border=2mm]{standalone} \usepackage{cmap} \usepackage{amsmath, amssymb, latexsym, mathtext} \usepackage[T2A]{fontenc} \...
4
votes
2answers
201 views

How to plot a 3d solid generated by revolving a curve?

I have this curve (0,0) parabola (1,1) and I would like to generate 3d plots where this curve is revolved around the x-axis, y-axis, x=a, y=b, x=c, and y=d. Is this possible? How can I do it? If it's ...
4
votes
1answer
148 views

How to draw a cylinder above a cube with dashed lines?

I am trying to draw this figures with dashed lines With Mathematica, It easy to draw. How to draw the second picture with TeX? I only draw the cube. My code \documentclass[tikz,border=3mm]{...
1
vote
0answers
50 views

Some book to learn to graph 2D and 3D

I have been drawing in a fairly basic way for a long time or using alternative programs to generate my graphs, but now I would like to learn how to graph in Latex but I don't know where to learn to ...
2
votes
2answers
153 views

How to draw a cone in a cube line this?

I am trying to draw a cone in a cube like this I tried \documentclass[tikz,border=3mm]{standalone} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{70}{100} \begin{tikzpicture} [...
0
votes
1answer
62 views

2 3D plots in one graph: changing colors and z bounds are ignored?

I am trying to plot two 3D plots in one graph, but Latex stops recognizing the zmin and zmax values for some reason, so it doesn't compile because dimensions are too large. Reducing the number of ...
5
votes
2answers
186 views

How to draw this pictures from Mathematica?

I see this pictures The second picture is drawn with one line by Mathematica. I tried \documentclass[tikz,border=3mm]{standalone} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{70}...
4
votes
1answer
123 views

How to make dashed lines automatic of a sphere when I rotate a sphere?

I copy this code from here settings.render=8; import solids; size(5cm); currentprojection=orthographic(1,0.3,0.3); revolution b=sphere(O,1); draw(surface(b),white+opacity(.5)); skeleton s; b....
0
votes
0answers
34 views

surf, shader = faceted interp bloats figure

I tried to generate a 3-D figure in Latex using tikzpicture and pgfplots. Here I can vary the shader between shader = interp and shader = faceted interp (see line 74). The resulting filesize of the ...
2
votes
2answers
156 views

Blochsphere Package Shading

I am using the blochsphere package and have a problem with shading of the drawn ball. Using the color white for the ball and opacity=0.7 makes it quite dark greyish. I dont want to turn down the ...
6
votes
1answer
260 views

Chebyshev net in the Sphere and Catenary

Hello I have experience writing texts in latex, but I am a beginner in drawing in latex, I have tried to make these graphics with great effort but I have not succeeded. \documentclass[crop,tikz]{...
4
votes
3answers
364 views

How to construct the point S of this tetrahedron?

Let be given tetrahedron SABC, where AB= 3, AC=4, BC=5, SA= 6, SB=7,SC=8. I tried \documentclass[tikz,border=3mm]{standalone} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{60}{70} ...
0
votes
0answers
69 views

How to draw stack of prism in a pyramid?

I am trying to draw this picture I tried \documentclass[tikz,border=3mm]{standalone} \usepackage{tikz,tikz-3dplot} \begin{document} \tdplotsetmaincoords{100}{70} \begin{tikzpicture}[...
6
votes
3answers
1k views

How can I draw a frustum like this?

I am trying to draw a frustum with centers of two bases A, C and two radii SA and CD, height of frustum AC. I tried \documentclass[tikz,border=3mm]{standalone} \usepackage{tikz-3dplot} \begin{...
8
votes
4answers
2k views

How to draw this cube with holes?

I am trying to draw this cube I tried \documentclass[tikz,border=3mm]{standalone} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{60}{120} \begin{tikzpicture}[...
1
vote
0answers
50 views

Tangent images to icosahedron face

I would like to plot images in a tangent plane to each face of an icosahedron. Something like in the image. I have tried several approaches like: Tikz : texture cube faces using png image and example ...
1
vote
1answer
165 views

How can I make 3D drawing in tikz

Is there a way to make tikz draw in 3D, I am trying to draw vectors and axis in $ \mathbb{R}^3 $ (in the space), maybe not one that advanced since I am new at using latex. this is a try for the axis: \...
5
votes
3answers
224 views

How can I draw the point is intersection of a plane and a line?

Let SOAB be a pypamid with OAB is an equilateral triangle and SO perpendicular to the plane OAB. The plane passing through O and perpendicular to the line SB cuts SB at M and SA at N. I tried \...
3
votes
1answer
149 views

How to draw circle passing through three points in 3D?

How to draw circle passing through three points A,P, Q in this code. \documentclass[border=3mm,12pt,tikz]{standalone} \usepackage{fouriernc} \usepackage{tikz,tikz-3dplot} \tikzset{projection of point/...
1
vote
1answer
79 views

How to draw insphere of a pyramid?

I am trying to draw insphere of tetrahedron DABC. My code \documentclass[tikz,border=3mm]{standalone} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{60}{100} \begin{tikzpicture}...
6
votes
4answers
662 views

How to draw this cone?

Let be a pyramid DABC, where D(0,0,0), A(0,0,3), B(3,0,0) and C(0, 3,0). I am trying to draw this code I cannot draw the cone. I tried \documentclass[tikz,border=3mm]{standalone} \usepackage{tikz-...
0
votes
2answers
42 views

Fill between four parametric paths that together are continuous

I have a shape made up of four paths, and I'd like to fill the inside. The four paths are given in parametric form, and each consecutive pair has exactly one point common, so I'd hope this is a well-...
1
vote
1answer
84 views

Gradient field of a Function for 2 Variables

Initially I had something that looked like this, where I had something that was supposed to be a hemisphere and below was the gradient field. But I couldn't get the edges to go all the way down and ...
1
vote
2answers
155 views

How to plot the 3D graph of the following three inequalities in latex (e.g., tikz/pgf)?

How to plot the 3D graph of the following three inequalities in latex (tikz/pgf) ? z <= x+y+1, z <= 4x, z <= 5y. My attempt: \documentclass[12pt,leqno]{amsart} \usepackage{pgfplots} \...
2
votes
4answers
140 views

How to plot atan2(x,y) like?

How do i plot atan2(y,x) like the Wikipedia picture https://en.wikipedia.org/wiki/Atan2#/media/File:Atan2_diagram.svg I tried \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.10}...
-1
votes
1answer
72 views

How to draw 2 figures that slices the sphere in 2 different ways?

Here is the figure I wanna draw in overleaf: Any advice about how to draw this, please?
2
votes
1answer
55 views

tikz-3dplot : discordance between polar and Cartesian coordinates ? (solved)

Recently I used the package tikz-3dplot to draw a figure until I was confronted to a very strange issue. I finally build a Minimal Working Example to isolate the problem and fully annotated it to ...
0
votes
0answers
52 views

3d with pgfplots or tikz-3dplot

In the last weeks I made first steps in 3d graphic with pgfplots and also with tikz-3dplot. After all I can't decide, what will be the preferred 3d path to use. tikz-3dplot looks more difficult than ...
11
votes
2answers
618 views

Draw a solid with circular base & square cross-sections in TikZ

I want to draw a solid with these specifications in TikZ. The base of the solid is the disk x^2+y^2\leq 4. The cross-sections by planes perpendicular to the y-axis between y=-2 and y=2 are squares ...
0
votes
1answer
49 views

How can I add a textfield in a Tikz drawing's node?

Given is the following TextField command: \newcommand{\TF}[2][15em]{\TextField[borderwidth=0.1pt, width=#1, height=1.25em, ...
2
votes
1answer
95 views

How do I set a Tikz drawing to the background of my page?

I tried to use layers with \usepackage{scrlayer-scrpage} and add a Tikz drawing but it seems to still place the drawing in relation to the other things and not behind anything. I'm not sure what I did ...
1
vote
1answer
101 views

How to rotate a curve around an specified axis in TikZ?

I want to rotate curves around a line like x-axis. For example, I want to draw below figure. Is it possible to do this work in TikZ? MWE: \documentclass[12pt, border=5mm]{standalone} \usepackage{tikz,...
5
votes
2answers
243 views

Draw a wedge with circular base in TikZ

I want to draw the follwing figure in TikZ. Of course, I was able to draw most of its components, but I can not draw the cylindrical part. Here is my effort so far. MWE: \documentclass[14pt]{memoir} \...
-1
votes
1answer
163 views

Adding the surface to a Riemann Sum

The @user240002 in the post in Riemman Sum built a Riemann Sum of a two variables function: \documentclass[tikz,border=3mm]{standalone} \usepackage{tikz-3dplot} \tikzset{pics/3d bar/.style={code={% \...
0
votes
0answers
52 views

Make sphere look round

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz,tikz-3dplot} \begin{document} \tdplotsetmaincoords{60}{150} \begin{tikzpicture} [scale=1.5, tdplot_main_coords, axis/.style={-&...
0
votes
1answer
78 views

Modify the z-scale in PGFplots

I have the following code: \documentclass[11pt]{beamer} \usepackage{pgfplots,tikz} \begin{document} \begin{frame} \begin{tikzpicture}[scale=0.6] \begin{axis}[xlabel={$x$},ylabel={$y$},zlabel={$z$}...
2
votes
1answer
78 views

plot a surface using a nonrectangular domain

There is a way to plot a surface in a nonrectangular domain? For example, plot f(x,y)=x^2+y^2 where 0 <= x <= 1$ and x^2 <= y <= x? I have the following code, almost the result witha ...
5
votes
1answer
256 views

Draw spherical coordinates definition in TikZ

I want to draw the following image in TikZ that defines the spherical coordinates. The result of my efforts so far is in the MWE below. Thanks for any help! \documentclass[border=5pt]{standalone} \...
2
votes
1answer
141 views

How to draw 3D angle mark with line in spherical coordinates

In order to illustrate the substitution formula of a special double integral, I need to draw a graph of spherical coordinates. However, it is not convenient to add angle mark and shadow to the picture ...
1
vote
0answers
47 views

Lines disappearing after rotation in tikz 3d

I am trying to plot a cube with two vectors inside in tikz, but I rotated the axis so that it becomes more readable. However, some of the lines that I plotted (and showed before the z-axis rotation) ...
0
votes
0answers
40 views

Rotate coordination

I'm trying to rotate the coordinates so it looks like the one in the picture. \documentclass[12pt,tikz]{standalone} \usepackage{tikz} \usepackage{tikz-3dplot} \usepackage{tikz} \...
0
votes
0answers
114 views

How to draw a cubic surface in tikz?

How to draw a cubic surface with tikz?
0
votes
1answer
131 views

Drawing a detector's cartesian and spherical coordinate in one picture using tikz-3dplot

I am trying to reproduce below image using tikz-3dplot. Immediately I stumbled upon a problem where I cannot draw the cartesian x-y-z axis with the z-axis to the right because \tdplotsetmaincoords{...

1
2 3 4 5
9