Questions tagged [3d]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
30 views

pgfplots - 3d plots with overwritten lines

Hello There Certain 3d graphs plotted with pgfplots have lines and planes that should be hidden but are showing in front of the front lines and planes, how to fix that? MWE: \documentclass{article} \...
1
vote
3answers
74 views

Cylinder is clipped in z domain

I'm trying to render a circular cylinder, mathematically defined as $y^2+z^2=r^2, x\in [0,5]$. Here the MWE: \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{...
2
votes
1answer
40 views

Plotting a paraboloid with a z-shift using tikz/pgfplots [duplicate]

I am trying to plot the paraboloid z = x^2+y^2+2 with the following code: \documentclass[12pt]{article} \usepackage{pgfplots} \usetikzlibrary{3d} \pgfplotsset{compat=newest} \begin{document} \begin{...
0
votes
1answer
65 views

3D plot on latex is incorrect

\documentclass[titlepage]{article} \usepackage[margin=1in]{geometry} \usepackage{amsmath} \usepackage{amssymb} \usepackage{pgfplots} \pgfplotsset{compat=1.16} \usepackage{tikz} \usetikzlibrary{calc,...
1
vote
0answers
60 views

pgfplots 3d: un-render overwritten graph [duplicate]

Is there a way to tell pgfplots not to render the parts of a 3d graph that are overwritten? Here is a minimal example \documentclass{standalone} % pgfplots \usepackage{pgfplots} \pgfplotsset{ ...
5
votes
1answer
137 views

Drawing a 3d wheel

I'm trying to create a physics illustration of a spinning wheel (see here). I can draw a "flat" sketch of a wheel as following. Are there any nice tricks to make it appear more three-...
3
votes
1answer
62 views

Split curve with addplot3

I currently have this 3D plot and I want to show the Fundamental Theorem of Line Integrals where one would just find the endpoints. Using surf, I was able to get the shape I want, but I want it to be ...
1
vote
2answers
65 views

Area under 3d surfaces - tikz

I'm trying to draw the area under a cone (sqrt(x^2+y^2)), insider a cylinder (x^2+y^2 = 2x) using tikz. My problem is that the area is not being well defined. My code produces this weird shapes: View: ...
3
votes
2answers
223 views

How to draw on a curved 3D surface?

I'm trying to reproduce in LaTeX this image, hand-drawn with Mathcha. The thing is, I can't find anything online about how to draw on curved (smooth) 3d surfaces like this sphere. Technically, the ...
2
votes
1answer
49 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{...
8
votes
1answer
177 views

Partial derivative diagram issue with tikz

I'm modifyig this partial derivative diagram to get something like this: The code I've used and the result: \documentclass[tikz]{standalone} \usetikzlibrary{shadings} \usepackage{pgfplots} \...
7
votes
1answer
308 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 ...
3
votes
1answer
53 views

How to show the grid of a specific direction on a surface using pgfplots

I'm using pgfplots to represent a general cylindrical surface, to get something like this: How can I only show the grid on the x axis? I'm also having trouble to add the text. My code so far: \...
0
votes
1answer
66 views

including asymptote 3d figure into latex source file

I have installed asymptote separately and created a 3d figure by compiling the code directly on command prompt. The source code (b2.asy) and the corresponding output (b2.pdf) is attached. I would like ...
4
votes
1answer
576 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=...
2
votes
1answer
99 views

Recreate Figure

How can I recreate this figure? This is what I have so far: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \begin{scope}[xshift=-12cm] \draw[rounded corners=35pt](...
0
votes
1answer
107 views

Tikz plot 3D truss [closed]

How to draw the space truss below? Thank you in advance.
4
votes
3answers
349 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 ...
8
votes
2answers
491 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, ...
0
votes
0answers
22 views

shader=interp: got unsupported pdf shading type '0' with space between separate groups

I tried to plot a simple 2d-field using pgfplots and octave, following https://tex.stackexchange.com/a/118274/61517. The data can be found here, the corresponding code for my main-file is \...
4
votes
2answers
203 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 ...
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 ...
7
votes
3answers
2k views

How can I draw the surface f(x,y)=x^2+y^2 like my picture?

I have been trying to get this surface drawn using pgfplot, but I can't make it look like the picture I'm trying to make the code for. \documentclass{standalone} \usepackage{pgfplots} \begin{document} ...
4
votes
1answer
126 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....
1
vote
1answer
55 views

How to efficiently change the basis of a 3-dimensional figure

I'm actually rewriting a math textbook for my students. I wanted to show them that a basis isn't necessarily orthonormal. So I want to draw two figures with 2 different basisses. I found some code for ...
1
vote
1answer
53 views

media9 cross section add section caps by default in view file

I would like to know how to enable the 'add section caps' feature by default in a predefined view of a 3D object in PDF using the media9 package. Right now the part is hollow after making a ...
6
votes
1answer
263 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]{...
1
vote
1answer
72 views

Modifying pgfplots 3d surface

I'm trying to modify a surface in pgfplots to get something similar to a Matlab result. The image below is what I want to achieve. The code I used: \documentclass{standalone} \usepackage{pgfplots} \...
3
votes
1answer
102 views

Tikz 3d plot transfer function

This is a follow-up question to this I have plotted the graph with online help of different resources (code and picture attached) Now the problems are: It is not correcting plotting the curve in the y-...
1
vote
0answers
85 views

Tikz 3D plot of poles zeros

I need to make a 3D plot in tikz of the form as in the picture. It's the magnitude plot of transfer function H(s)= (s+1)(s+2)/(s+3)(s+1+j)(s+1-j) I am sorry, I have not shared any attempt because I am ...
12
votes
0answers
133 views

tikz 3d gets "too many vectors" at commercial printer - detection? fix?

The 3d marmot included in samcarter's upcoming tugboat article on tikzlings (thanks sc!), which reduces to, \documentclass{article} \usepackage{tikzlings} \begin{document} \tikz{\marmot[3D]} \end{...
1
vote
1answer
70 views

Filling a custom plane mapped by given points in 3D plot

For my multi-objective problem, I have obtained the efficient frontier which I want to display visually using a 3D plot in latex. Since the points do not have a matrix structure, I am getting a line ...
0
votes
0answers
29 views

Rotating a gradient fill or making xslant affect it

I am using this answer to create a floor-like surface, but when I have a rectangle with a gradient fill on this surface the gradient's orientation isn't affected by the transformation. I don't want to ...
2
votes
1answer
68 views

Measurements in pst-3dplot versus pst-solides3d

My aim is to draw a circumscribed circle on the polygon constructed as "cone base" using pst-solides3d. By circumscription, I mean that the corners of the polygon touch the circle from ...
1
vote
1answer
55 views

How to get a 3D mesh plot from a data file , with PGF?

I found this question but I think its answer isn't what I need. I hope that the plot from data file can be plotted as mesh, that is each point is connected to its closest neighbors on four sides but ...
0
votes
1answer
52 views

Parameterized pgfplots not showing proper surface

I have a very simple function composed of two planes in the unit triangle. I managed to plot this function by parameterizing the coordinates. Now that I have the function, I would like to see how it ...
0
votes
0answers
66 views

pgfplots show grid in 3D plot only in background

I created a 3D plot in pgfplots and I would like to show the grid of the 3D box only in the background. According to Section 4.11.3 "Appearance Of The 3D Box" of the pgfplots manual, 3d box=...
1
vote
1answer
49 views

Drawing a 3D diagram with individual traces

I am looking for a way to transfer the image on the bottom right into an image with a 3D effect (similar to the image on the top left: please excuse my poor drawing skills). At the moment I'm still ...
1
vote
1answer
85 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 ...
0
votes
1answer
127 views

pgfplots surface plot from table

I would like to create a surface plot (like the one shown below) from a .csv table containing three columns of data (x,y,phi) but all I get is a line plot (see second picture). The data table is ...
4
votes
1answer
82 views

Stop pgfplots from closing a cycle

I'm trying to draw the graph of a curve in three dimensions. For some reason, tikz/pgfplots is automatically closing the curve. I can't figure out how to stop it from doing this. Here is an example:...
0
votes
0answers
45 views

Fast(er) way of generating stacked 2d-plots in 3d

I have quite a lot of 2d-data I would like to display in a 3d-plot, similar to the figure below (drawn in Python): Until now I created those figures in pgfplots with addplot3, but for an increasing ...
2
votes
0answers
28 views

Tikzscale does not scale a figure when it contains addplot3

I wanted to implement a 3d-figure containing stacked 2d-layers, with an example below: I used the following code, with a main file: \documentclass{article} \usepackage{standalone} \usepackage{tikz} \...
5
votes
1answer
143 views

How can improve my Tikz scripting? (3D Cube)

I've been learning LaTeX for a while, and today I'm trying to create graphic elements for the first time using Tikz. This is what I'm trying to achieve: And this is what I've made: \documentclass{...
2
votes
0answers
48 views

How to make different color for grid lines on sphere

Below is a simple code for drawing spheres. I'd like to make lines of altitude in red and lines of the meridian in blue. Sorry, but I did not find the information in the manual. Could you help me? \...
0
votes
1answer
28 views

Plotting the path left by a vector rotating around the z axis and towards the xy plane with tikz-3dplot

I have a vector along the z axis and I want to show the path traced by the point of this vector while it is spiraling down towards the xy plane. In theory, this path should be traced on the surface of ...
0
votes
0answers
53 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 ...
1
vote
0answers
39 views

Can anyone use tikz to draw a three-dimensional schematic diagram of the mesh surface [duplicate]

Can anyone use tikz to draw a three-dimensional schematic diagram of the mesh surface
2
votes
1answer
117 views

Does Asymptote define a command which is equivalent with fillcolor and incolor of pst-solides3d?

http://pstricks.blogspot.com/2015/02/tore-evide-avec-pst-solides3d.html Asymptote code, settings.render=10; import graph3; // import palette; currentprojection=orthographic(1,1,.5); size(7cm); ...
0
votes
0answers
40 views

Fill interior of pgfplots surface plot

I have a 3D surface plot created with pgfplots and I would like to make the inside of the surface plot fully white. My current approach is to configure the colormap of the outside and the inside using ...

1
2 3 4 5
17