Questions tagged [3d]

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

Filter by
Sorted by
Tagged with
2
votes
0answers
19 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
115 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
45 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
21 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
30 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
37 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
81 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
30 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 ...
0
votes
0answers
67 views

Projecting 3D Data set to 2D plane using pfgplots

I would like to project a 3D data set into a 2D plane at the bottom of a predefined 3D axis enviroment. Therefore I use the following code. The code does not achieve the wished results and plots a ...
1
vote
0answers
15 views

Problem to embed u3d file in pdf

I am beginner with latex code and I want add 3d object in my pdf. I find this code but I have this following error : ! Missing \endcsname inserted. \documentclass[a4paper]{article} \newcommand{\layout}...
0
votes
0answers
44 views

Drawing a 3D Volume in TIKZ knowing his sections

I'm basically a beginner using TIKZ and I need your help to draw a volume with these features: Domain: [0;4] Basis of the volume (on the x-axis): it is the function f(x)=cos(x/2)+1/2 in the domain. ...
2
votes
1answer
113 views

Using Asymptote for 3D plots

I have recently started learning Asymptote for generating plots in my TeX related documents, and have been using https://asymptote.sourceforge.io/asymptote_tutorial.pdf to get a grip on the code. ...
0
votes
2answers
70 views

How to 3d plot ax + by + cz = d equation in tex?

How to plot plane from equation rather than using coordinates in a tikz-picture environment like
1
vote
0answers
67 views

Guides for learning to plot with pgf

I've wanted to learn how to make graphs with tikz/pgf for a long time. I'm relatively new to tikz, the only source I've used so far is its massive manual. I know there is no shortage of material on ...
0
votes
0answers
44 views

PGFplots 3D projection: Remove ticks on top/right side

Is there a way to remove the ticks from the opposite axis in a 3D plot? For 2D axes one can use the tick pos=left option, but this does not seem to work for 3D plots.
7
votes
1answer
130 views

Dimension Lines in 3D drawings

I am trying to apply Tikz-dimline label position (Dimension lines) to a 3-dimensional drawing. This has worked well for me in 2D, so thought it would do so in 3D. Thus, when in a 2D drawing I would ...
17
votes
2answers
862 views

How can I draw the trefoil knot in 3D co-ordinates in Latex using these parametric equations?

When I use the parametric equations (according to Wikipedia) to plot a trefoil knot: x(t)=sint+2sin2t y(t)=cost−2cos2t z(t)=−sin3t I get a plot that looks very different from the nice plot on ...
2
votes
1answer
75 views

project plane in 3d asymptote plot

This is a follow up to an older question of mine which solved my issue of arrows in 3d plots with asymptote looking ugly. Now I would like to add a semi-transparent bottom layer to the box in my plot. ...
0
votes
2answers
98 views

draw 3D solid with rectangular cell in tikz

How can the following figure be drawn in TikZ? It is better if the three-dimentional body is drawn with tikz-3dplot package. MWE is from HowTo: 3D plot of a surface element with normal vector. Thanks ...
0
votes
0answers
42 views

3D bar chart with pgfplots

I want to draw a three-dimensional bar chart. I used this MWE code to draw two-dimensionally. Is it possible to draw in 3D like the last photo? MWE:(Source) \documentclass{standalone} \usepackage{...
4
votes
0answers
106 views

Plotting a 3D graph in Latex

I am trying to change the 2D scatter graph into 3D which can also take the value of the P column as z-axis. But the output I got is not smooth and I really don't understand how I can change it into 3D ...
1
vote
1answer
69 views

Using tikzpicture, how can I sketch the lattice of divisors of 60?

How can I sketch the lattice of divisors of 60 using tikzpicture? For the lattice of divisors of 30 is as follows: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} ...
0
votes
1answer
47 views

How to draw coordination complexes in 3d

I am looking for a way to reproduce figures such as this one : https://files.mtstatic.com/site_4334/18479/0?Expires=1614076506&Signature=WyOdnmiCsw8BOVr00WL5NsHkTQmmQmVWm8x2DuAfP0QuJ0XZsPe2t8v~...
2
votes
0answers
70 views

How do I crop a 3D surface in pgfplots?

I am attempting to reproduce the following graph using pgfplots: Here is the MWE code I developed, along with the corresponding plot generated: \documentclass{article} \usepackage[utf8]{inputenc} \...
0
votes
0answers
31 views

How to draw coordination complexes? [duplicate]

I am in need of drawing chemical complexes in space, with octahedral or tetrahedral or square or any other structure (for instance [Co(SO_4)(NH_3)_5]^+). Would anyone have any suggestion about which ...
5
votes
1answer
103 views

How to draw 80'th Johnson solid by using data of Mathematica with Asymptote?

I read Johnson solid at here. By using Mathematica with syntax PolyhedronData[{"Johnson", 80}, {"Vertices", "Faces"}] I got {{{-2.19149, -0.351484, -0.244698}, {-2.10378, ...
1
vote
0answers
50 views

Extra line in 3D tikzpicture [duplicate]

\documentclass[10pt]{article} \usepackage{pgfplots} \pgfplotsset{compat=1.15} \begin{document} \begin{tikzpicture} \begin{axis}[ xlabel=$x$,ylabel=$y$, grid, axis lines=middle, grid style={dashed,gray!...
0
votes
1answer
88 views

Polar coordinates in tikz-\addplot3

I am failing to display a paraboloid with tikz \addplot3 command. I read a thourough manual that I found online as well as tried to adapt this example, but I don't really understand how to translate ...
0
votes
0answers
51 views

Interactive (Rotable) PDF with 3D Plot

Using (say) Matlab, it's very simple to create 3D surface plots. Is it possible to embed them into LaTeX such that the resulting PDF is interactive and one can rotate the figure and look at it from ...
-1
votes
1answer
50 views

3D graphing using latex with complex equation [closed]

i am new to 3D graphing using latex, is that anyone here can do a 3D graphing for this complex equation below? \left[ \left( \frac{x^2}{7^2}\right) \cdot \sqrt{\frac{\lvert\lvert x \...
2
votes
3answers
188 views

Tikz 3D Plot: Plane that cuts through a cube

I would like to draw a cube that intersects with the plane while highlighting the intersected area. What I have accomplished so far is the plot below. Unfortunately, the plane looks like being in ...
2
votes
1answer
147 views

How to add grid and define z domain for 3D plotting

I'm trying to reproduce the following graph. I didn't find a way to: add a horizontal grid stop drawing the line at (n,n,0) to draw a dashed line below (Bonus) change the ticks' mark by a circle Do ...
0
votes
0answers
54 views

How to match the filled contour and contour lines

How can I match the levels lines with the filled contours? Is there a pgf-based solution to draw the levels lines? My code \begin{tikzpicture} \begin{axis}[ view={0}{90}, colorbar right, ...
2
votes
0answers
153 views

3D surface plot using Tikz, overlap

I am looking for hints or help on how to fix the following: I am trying to get a nice-looking 3D surface plot of a parametrization of a part of a sphere. This is a MWE of it: \documentclass[crop,tikz]{...
0
votes
0answers
25 views

PGFplots 3D plot with axis lines left

I try to align the three axes of a 3D plot such that each axis start in the point (xmin, ymin, zmin): I tried axis styles=left, but in this case the y axis begins at xmax: Which is the behavior ...
4
votes
1answer
135 views

German right angle symbol on the horizontal plane

I faked a solid on the paper plane, but here \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \usepackage[left=2.00cm, right=3....
0
votes
1answer
67 views

Tangent vector on a scaled 3d plot of a torus

Is there a way to draw a tangent vector to a torus so that it follows its rescaling? In other words, I have a plot of this type: and once scaled the torus, it comes out that Here is the code with ...
0
votes
1answer
107 views

!Missing \endcsname inserted. <to be read again> when attempting 3dpdf

I'm trying to make a 3d pdf image, and get this error. I'd appreciate any advice. \documentclass[a4paper]{article} \usepackage[3D]{movie15} \usepackage{hyperref} \usepackage[UKenglish]{babel} \begin{...
0
votes
1answer
46 views

problem with 3d parametric plots and view from top

Im plotting parametric functions and getting different views of them. The problem is the top view, specifically when the function varies in the z direction, the perspective is not correct. Code ...
0
votes
0answers
66 views

bounding an image by 4 corners and making them set the perspective

Edit new question formulation I wan't to distort an image so it fits within 4 poins defining a plane. @abcdefg suggested an answer and I took a look at it: Text in TikZ with perspective (not just ...
3
votes
1answer
91 views

Symmetric Arrowhead in 3d Asymptote Plot

I am making a simple 3d plot with asymptote and would like to have a nice arrow in the plot. I did manage to get an arrow in there, but it looks very asymmetric. I wish the top and bottom side of the ...
2
votes
2answers
269 views

A rectangular shaped carpet with the grass

I have a rectangular shaped carpet. Is it possible to create a specific code to simulate a grass carpet, like in a golf field? \documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-...
1
vote
1answer
73 views

Illustrate sheet of paper cut into a box

So I am trying to recreate the two images below in tikz. The first one was easy, i've yet to add the labels and such but that is easy. However, I am strugglign with the second one. How can I make it ...
0
votes
0answers
45 views

Insert .obj file in pgfplots

My idea is to reproduce a figure similar to this one. At the moment the approach I have thought about is to use any free 3D model of a head an load it using pgfplots and then draw the planes. Is there ...
2
votes
1answer
78 views

Can I remove the front planes of the 3D grid when using the Asymptote package?

I have the following image based on the code below. Is there a way to remove the front planes so that the 3D surface will really appear to be inside the box? Thank you. settings.render=0; ...
3
votes
1answer
251 views

How to graph a 3D surface with “holes”?

I would like to plot the surface over . I cannot figure out how to show the two "holes" of the surface that result due to its intersection with the plane. I tried the following but I ...
2
votes
1answer
59 views

exporting surface color data from MATLAB for usage within pgfplots code

I am writing a MATLAB program that exports MATLAB plots to tikz code. One of the features that I find very useful and that I would also like to implement is the specification of the surface color. In ...
0
votes
0answers
33 views

drawing a set of squares in 3D

Consider the set of squares right to the equality. How could I draw another set but parallel to the first set? Then another one, so it is as if there is a three dimensional distribution of squares ...
0
votes
2answers
76 views

pgfplots: 2D contour plot of 3D function: placement of axes labels

I'm using pgfplots \addplot3 to plot contour plots of two-variable functions, as seen in the (x,y) plane (using view={0}{90}). However the default placement of the axes labels is odd (I suspect, ...
5
votes
2answers
279 views

Binary Number Representation in 3d tikz node box

My effort is \documentclass[margin=1in]{standalone} \usepackage{tikz} \usetikzlibrary[arrows, decorations.pathmorphing, backgrounds, positioning, fit, petri] \begin{document} \begin{tikzpicture}[...

1
2 3 4 5
16