Questions tagged [3d]

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

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

How to change orientation of a latitude circle on a sphere?

I have a sphere, a disk that goes through the equator, and a latitude circle above the equator that is colored red. I would like to rotate that red circle so that it intersects the equator disk. How ...
user avatar
0 votes
1 answer
39 views

How do I plot the solutions of an equation of a 3D Plot?

I want to plot all possible solutions for sqrt(|x||y|) = 2 into my plot as a line. My code for the plot currently looks like this \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat = ...
user avatar
0 votes
1 answer
75 views

Problem plotting 3D data from file using surf

I am trying to plot 3d data as a surface plot. However the result is not the one I would like to obtain. Here is the code: \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \pgfplotsset{...
user avatar
1 vote
2 answers
115 views

3D boxes in perspective

I am trying to draw 3D boxes in perspective, but with no success. The intention is to have several boxes with different sizes on top of each other, like this: This is my MWE: \documentclass{article} \...
user avatar
  • 1,214
1 vote
0 answers
66 views

Draw 3D shapes in perspective with tikz

Is it possible to draw a parallelepiped in perspective such as shown in the figure below (with colors, transparency, edges, etc)? Is it easily feasible using tikz or do I need other library? Notes: ...
user avatar
  • 1,214
1 vote
1 answer
83 views

Blurred in TikZ and 3D shadows

I want to produce a 3D object like the one in the picture using TikZ. I am able to make the first one, clipping some svg paths on the object. But how can I blur it?
user avatar
5 votes
2 answers
366 views

3d rectangles in TikZ

I need to draw several similar shapes like this: My code: \documentclass[tikz,border=1mm]{standalone} \usetikzlibrary{perspective} \def\r{0.5} \def\ri{\r*0.5} \def\rii{\r*sqrt(2)/2} \def\riii{\r*...
user avatar
  • 828
1 vote
0 answers
43 views

Use "each nth point" with \addplot3

I would like to use each nth point in combination with \addplot3 to plot every tenth data-point for both the x-axis and y-axis, but whatever I try, pgfplots just ignores it and uses all the data ...
user avatar
1 vote
1 answer
29 views

Node in three dimensions with pgfplots

I am using pgfplots to draw a curve in three dimensions. I've placed a point on this curve, and would now like to obtain the following two: The node's name should appear below the node; I would like ...
user avatar
  • 173
3 votes
0 answers
57 views

Creating a cone in TikZ

If I compile this file: \documentclass[12pt]{article} \usepackage[math]{kurier} \usepackage{pgfplots} \pgfplotsset{width=15cm,compat=1.18} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \...
user avatar
3 votes
2 answers
224 views

How to draw cube chain?

I'm trying to find the easiest way to draw a 3D cube chain in latex. Help me I know how to draw cube in tikz. For example \newcommand{\tikzcuboid}[4]{% width, height, depth, scale \begin{tikzpicture}[...
user avatar
  • 33
1 vote
1 answer
58 views

Two graphs in the same axes \addplot3 (pgfplots) [closed]

I want to draw two graphs using pgfplots. Here's the first one: \begin{tikzpicture} \begin{axis}[ xmin=-pi, xmax=pi, ymin=-pi, ymax=pi, zmin=0, zmax=2.5, xlabel={$\...
user avatar
2 votes
1 answer
258 views

Tangent, Normal and Binormal Vectors

I want to draw a schematic figure which illustrates the coordinate system relationship between the Cartesian coordinate system and the helix natural coordinate system. Which tools (eg. tikz-3dplot, ...
user avatar
1 vote
0 answers
43 views

Intersectionpoints 3D => Intersection of path3 with Bezier triangle is not yet implemented

I am using Asymptote version 2.80 on a W10 PC. I try to re-use an old (2019) code to plot the intersection of a sphere with a cone. The 2019 generated drawing is joined. ? I did that in 2019, but when ...
user avatar
  • 11
1 vote
1 answer
178 views

How to draw a shaded boundary using TikZ

How can I draw a simple shaded region such as the one shown below using TikZ? The shaded region bounded by the equation r1r2r3 - r1 - r2 - r3 + 2cos(theta) and is r1=r2=r3=4. The boundary will ...
user avatar
  • 1,696
1 vote
1 answer
47 views

Pgfplots, reverse y dir has no effect in 3D matrix plot

In the PGFPlots manual, matrix plots are not listed among the 3D plot types. However, they seem to work just fine, especially to plot planar data, except for, apparently, the y dir=reverse option ...
user avatar
3 votes
3 answers
153 views

Draw a paraboloid and its contours in TikZ

I have two similar images in which paraboloid and its contours are drawn. What I've ever tried is in the following code that is very different from the figure. \documentclass{standalone} \usepackage{...
user avatar
  • 337
1 vote
0 answers
32 views

Setting the directionality of \tdplotdrawarc in cartesian coordinates

I have an issue with regards to \tdplotdrawarc in TikZ. Consider the following snippet: \documentclass{article} \usepackage{tikz,tikz-3dplot} \usetikzlibrary{intersections,fadings,decorations....
user avatar
  • 185
0 votes
1 answer
41 views

PGFPlots colormap for 3D Line Plot from data set not working

I am trying to get my 3D Plot colorized in a way that the path is colored by a colormap such as viridis or jet. I am not seeing the issue in my code: MWE: \documentclass[border=5mm]{standalone} \...
user avatar
2 votes
0 answers
70 views

Problem about Asymptote's Gradient

The following example illustrates that something is wrong with Asymptote's rendering of Gradient in 3D (in interactive viewing mode Acrobat Reader): The complete .tex file for generating the picture: \...
user avatar
  • 51
1 vote
0 answers
29 views

avoid the cutting out of figure on the sides in asypmtote

I am using the following code using asymptote to make a cube with balls on edges but the balls at the two vertical edges as shown get cut out. I tried tuning the size of the figure but that doesn't ...
user avatar
  • 409
3 votes
0 answers
359 views

Asymptote's rendering in interactive viewing mode

The following example illustrates that something is wrong with Asymptote's rendering of transparency in 3D (in interactive viewing mode Acrobat Reader): The example consists mainly of two intersecting ...
user avatar
  • 51
0 votes
0 answers
52 views

Shaded ellipsoid with curves on it

My final goal is to replicate the following figure (at least the right part) in tikz-3dplot: For now, however, I'd like to ask only about plotting an ellipsoid in tikz-3dplot with "ball color&...
user avatar
  • 265
0 votes
1 answer
205 views

How to draw this figure in LaTeX? [closed]

I am using Geogebra. When I export to LaTeX, Geogebra does not support 3D shapes, only 2D shapes. I need someone to explain to me how to draw this shape in LaTeX.
user avatar
2 votes
1 answer
49 views

How to use int or floor to compute coordinates

I want to illustrate the approximation of the volume under a surface with a double Riemann sum. I am drawing 3d boxes over a 6x6 rectangular grid, from back to front, left to right (painter's ...
user avatar
2 votes
2 answers
124 views

TikZ wrong perspective?

The perspective looks wrong. What's going on? (Also, feel free to comment on anything that could be improved.) \documentclass{standalone} \usepackage{tikz}\usetikzlibrary{calc} \pagecolor{darkgray}\...
user avatar
  • 1,383
1 vote
2 answers
106 views

pgfplots 3D: z-buffer not working, showing objects in wrong depth-order

I'm trying to create a simple 3D figure, using the following MWE: \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.9} \begin{document} \begin{tikzpicture} \...
user avatar
  • 147
3 votes
1 answer
104 views

LaTeX 3D Plot from csv

I have a lot of csv-files with this format: -,x0,x1,x2,x3,x4 y0,z00,z10,z20,z30,z40 y1,z01,z11,z21,z31,z41 y2,z02,z12,z22,z32,z42 I want to make a 3D Plot with LaTeX. Unfortunately, I was not able to ...
user avatar
  • 33
4 votes
0 answers
56 views

How to make a "linear" cyclic texture on a 3D surface with Asymptote?

I'm trying to reproduce this Hopf torus in Asymptote, with a similar texture (three colors alternating): So I defined a pen array like this: pen[] fflag = { rgb("ffffffff"), rgb("...
user avatar
2 votes
1 answer
101 views

Asymptote 3d plot of an implicit function (with absolute value)

When I run the following code, the program seems to go into an infinite loop. If I write a function without the abs function, the program runs normally. The resulting plot is similar to the picture ...
user avatar
  • 1,627
0 votes
1 answer
77 views

Transparent plane connecting three nodes in 3d lattice

I am mimicking a crystal lattice as follows: The structure is created with nodes joined by edges but the outer nodes are connected with semi-transparent planer face as clearly shown here: Now, I am ...
user avatar
  • 185
0 votes
1 answer
75 views

Change pgfplots shading and coloring of patch plots [closed]

Following this answer, I want to insert a solid model of some complicated geometry into my LaTeX document. The default coloring for the facets is based on its average z value. The higher the facet is -...
user avatar
  • 222
1 vote
0 answers
45 views

Rotating a surface with pgfplots

I'm trying to rotate a surface to get something like this: I tried to use this answer with no results. My code so far: \documentclass[10pt]{standalone} \usepackage{tikz} \usetikzlibrary{shadings} \...
user avatar
0 votes
0 answers
72 views

Change Javascript cycle velocity

I'm creating a 3D pdf with latex and media9 and I added some views for my .u3d object. Now i Have found a script which changes the views automatically:Link It is possible to change these script to ...
user avatar
  • 290
1 vote
2 answers
117 views

Please help me with latex 3D graphs [closed]

I need help figuring out how to generate the two graphs of 𝑓(𝑥, 𝑦)=𝑎*𝑠𝑖𝑛(𝑥)𝑒−𝑦^2+ 𝑏𝑐𝑜𝑠(𝑦)*𝑒^−x^2 and 𝑓(𝑥, 𝑦)=𝑎*𝑐𝑜𝑠(sqrt(𝑥^2 + 𝑦^2))+𝑒^−sqrt(𝑥^2+𝑦^2).
user avatar
2 votes
1 answer
37 views

Hiding Tikz nodes behind eachother

I want to create a cube consisting of smaller cubes in particular color patterns. It seems to me loops are very useful here, but I get nodes drawn through eachother. Is there a way to tell tikz to not ...
user avatar
0 votes
0 answers
68 views

Please help me with latex tikzpicture 3d [duplicate]

I want to build a graphs with this formulas first graphic is 𝑓(𝑥, 𝑦) = 𝑎 ∙ 𝑐𝑜𝑠 (√𝑥^2 + 𝑦^2) ∙ 𝑒−√𝑥^2+𝑦^2 second graphic is 𝑓(𝑥, 𝑦) = 𝑎 ∙ 𝑠𝑖𝑛(𝑥) ∙ 𝑒−𝑦^2+ 𝑏 ∙ 𝑐𝑜𝑠(𝑦) ∙ 𝑒−𝑥^2
user avatar
0 votes
1 answer
66 views

pgfplots - colormap and z buffer interference

Hello there Trying to add the option z buffer = {sort} to a graph using a custom colormap generates an error: MWE: \documentclass{article} % pgfplots \usepackage{pgfplots} \pgfplotsset{ compat ...
user avatar
  • 79
0 votes
1 answer
49 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} \...
user avatar
  • 79
1 vote
3 answers
91 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{...
user avatar
2 votes
1 answer
56 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{...
user avatar
0 votes
1 answer
73 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,...
user avatar
  • 159
1 vote
0 answers
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{ ...
user avatar
  • 79
5 votes
1 answer
147 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-...
user avatar
  • 265
3 votes
1 answer
117 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 ...
user avatar
  • 33
1 vote
2 answers
80 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: ...
user avatar
3 votes
2 answers
307 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 ...
user avatar
2 votes
1 answer
67 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{...
user avatar
  • 265
8 votes
1 answer
221 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} \...
user avatar
7 votes
1 answer
368 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 ...
user avatar

1
2 3 4 5
17