Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [3d]

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

1
vote
1answer
38 views

How to draw toroidal grid diagrams in TikZ

I am trying to turn a planar grid diagram into a 3D toroidal graph by identifying the top edge with the bottom and the left with the right, i.e: So the grid below on the left would be transformed ...
4
votes
1answer
304 views

Drawing spherical mirrors

What is the best way to draw 3D spherical mirrors like these on tikz?
1
vote
1answer
40 views

How to fill region under a surface?

I'm trying to fill the region under the surface z = x^2 + y^2, over the rectangle 0<=x<=1, 0<=y<=1. How may I do so? Also, how do I orient the 3-d plot to as to have the x-axis coming ...
2
votes
0answers
37 views

Plot Velocity field having three components with Quiver pgfplots

I am stuck into plotting velocity field having three components. My data file contains velocity values on a plane y=0. My data is in the form. x z u v w where x and z are coordinates on y plane ...
0
votes
0answers
52 views

Multiple 2D Gaussian ellipses in 3D plot

I'd like to plot different bivariate Gaussian distributions as shaded 2D ellipses at different points in 3D space. The 2D ellipses I would plot like Jake suggests in Gaussian ellipsoids using tikz, ...
6
votes
1answer
747 views

A diagram about partial derivatives of f(x,y)

How can I draw this image using TikZ?
3
votes
1answer
35 views

How to change viewpoint when using logarithmic scale with pgfplots?

I want to display a surface, with 3 points sitting on it. I attempted to combine two posts, with partial success. If I change the viewpoint, I receive the upper figure. In this case the log scaling ...
3
votes
1answer
71 views

How can one go about drawing a sphere with a hole using pgfplots or TikZ?

I want to draw a sphere with a hole as shown below: What I have done so far is to create an outline of the required shape in Inkscape and export to a pstricks picture. The autogenerated code is as ...
10
votes
3answers
1k views

How to draw cubes in a 3 dimensional plane

So I want to draw a picture like this. However I can get no where close to it. I have tried following other posts and adapting them which has allowed be to set the axis up correctly but I just cannot ...
1
vote
1answer
28 views

Projecting contour on the floor in a 3d plot

The contour is drawn on the top surface, I'm trying to plot the contour on the floor (A-B). \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{width=10cm, compat=1.9} \begin{document} \...
27
votes
2answers
1k views

Levi-Civita symbol: 3D matrix

During the current review of the tensors I have arrived at a page of Wikipedia where you can see the symbol of Levi-Civita in a beautiful three-dimensional matrix. I hope that nobody will be angry ...
2
votes
0answers
66 views

3D Lighting & Shading with TikZ/PGFPlots

I'm trying to shade 3D parametric surfaces using a basic 3D lighting model, but this answer says that TikZ has no support for lighting. The only option is to use color gradients to shade vertices. ...
1
vote
1answer
58 views

How could I graph z=sqrt(x^2-y^2) using Pgftools? I believe I've all suggestions on the internet but to no avail

I have tried graphing it with the parametric notation (i.e. ({x},{y},{sort(x^2-y^2)}) and as seen on my code below but nothing renders the image shown on graphing calculators. \begin{tikzpicture}[...
1
vote
1answer
62 views

How can I 3D plot y=4x^2+z^2 using Pgfplots?

I am trying to 3D plot y=4x^2+z^2 using Pgftools but I'm unable to use z as an independent variable in the function. \begin{tikzpicture}[scale=1.5] \begin{axis}[ grid=major, 3d box=complete, ...
3
votes
1answer
72 views

Restricting Domain of 3D Plot

I have this 3D plot: I would like to plot the function only over the region over the darker half of the bottom (the part closer to us). Here is a MWE: \PassOptionsToPackage{usenames,dvipsnames,...
3
votes
1answer
51 views

Drawing Solid Lines on 3D Plots

I am trying to draw a line moving along with a 3D graph to represent the region of integration. So for this, the black line on the bottom represents the cut off for the region of integration. I ...
3
votes
1answer
88 views

Tikz/Pgf - Surf plot with smooth color transition

I am drawing a surf 3d plot in Tikz/Pgf using gnuplot. This surface need to be projected on a plane, which can be achieved by adding another surf plot. The thing is that the transition between colors,...
3
votes
1answer
96 views

Smooth projection of a surf plot - tikz/gnuplot

I am drawing a 3D-Bessel function using pgfplots and gnuplot. What I am trying to do is plot on top of the 3d box, a projection of the 3d function. I thought of using a contour gnuplot plot, but ...
2
votes
1answer
64 views

Plotting a smooth curve in 3D from external coordinate file

I want to create a 3D plot from previously calculated coordinates saved in a file, like "xz.dat". This contains the data as : x z 0.5 0 0.54 0.01 0.58 0.01 0.62 0.02 0.66 0.03 0.7 0.03 0.74 0.04 0....
9
votes
1answer
471 views

3D buried view in Tikz

I want to achieve 3D effect in my picture. This is to show Electron beam lithography followed by lift-off process. I want to make a cross shaped hole in the top layer and fill it with a gray color ...
2
votes
1answer
99 views

Filling In Region of 3D Plot

I am trying to fill in the area under this 3D graph, using the idea from this post. Here is a MWE for the function I want to plot under: \PassOptionsToPackage{usenames,dvipsnames,table,x11names}{...
3
votes
1answer
60 views

Planar disk axisymmetric

I'm trying to recreate this image: The figure is representing an axisymmetric representation (cylindrical coordinate system) of 2 planar coils of wire. I am wanting to add some intuition to the ...
2
votes
3answers
125 views

TikZ PGF: How to hide parts of 3D graph when lower than surface?

Assumed we have this kind of 3D surface: Minimum Working Example: \documentclass[tikz]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[zmin=0,zmax=0.5,...
4
votes
1answer
102 views

TikZ PGF: How to draw crater-like 3D surface based on polynomial equations?

Assumed we have some kind of squared 3D graph like this one: Minimum Working Example (MWE): \documentclass{standalone} \usepackage{tikz, pgfplots} \begin{document} \begin{tikzpicture} \begin{...
2
votes
1answer
90 views

TikZ PGF: How to draw 3D graph based on polynomial equation?

Unfortunately the TikZ-manual is a bit complicated to understand about this point. Assumed we have some kind of squared 3D graph like this one: Minimum Working Example (MWE): \documentclass{...
3
votes
1answer
168 views

Is there a command to find coordinates of projection of a point on a plane?

Let SABC be a tetrahedron, SA = c, AB = a, AC = b, SA perpendicular to AB, AB perpendicular to AC, and AC perpendicular to SA. I am trying to find the projection H of the point A on the plane SBC. I ...
5
votes
1answer
123 views

How to draw cylinder and cone to finish this drawing?

After a lot of attempts without success, I am asking here: How to draw a cylinder connecting the two circles? How to draw a cone from point A to the nearest circle? \documentclass[tikz,border=5pt]{...
3
votes
1answer
98 views

Is there a command to find coordinates of projection of a point on a line in 3D?

Sometimes, I need determine coordinates of projection of a point on a line in 3D. I know The Syntax of Projection in 2D at 13.5.5 The Syntax of Projection Modifiers at Manual for Version 3.1. This ...
1
vote
1answer
124 views

TikZ PGF: How to develop cell values for 3D graph?

Currently there are some awesome pgfplots around here. I think about something like this one: Minimum Working Example (MWE): \documentclass[border=5mm]{standalone} \usepackage{pgfplots, filecontents}...
4
votes
1answer
71 views

Improve perspective visualization in 3d plot

I'm trying to vizualize the computation of Euclidean distance in 3d using pgfplots. This is my current attempt: \documentclass{article} \usepackage{pgfplots} \begin{document} $\mathrm{dist}(p,q) = \...
5
votes
1answer
759 views

How to draw a circle (sphere) passing through four points?

I am trying to draw a circle (sphere) passing through four points B, C, E, F like this picture I tried with tikz-3dplot and my code \documentclass[border=3mm,12pt]{standalone} \usepackage{fouriernc}...
2
votes
3answers
105 views

parallelepiped inscribed in cylinder

I 'm trying to draw a simple 3D shape (like parallelepiped or cylinder) with tikz, but I fund too complicated codes. I want to draw something like this Is it possible with a simple code? Thank's ...
5
votes
1answer
178 views

Chemfig: a 3d molecule

I want to draw the molecule attached with chemfig. Could not find anything for the core of the connections. Any idea?
4
votes
1answer
86 views

How to make cuboids with different dimensions xyz with TikZ

I want to plot blocks (transportation pallets). Each block has 0.8m width, 1.2m depth, and 2.15m high, and they are placed horizontally (only one block height) grouped 2x2, 3x3, 4x4, 5x5, 6x6, 7x7 ...
3
votes
1answer
58 views

A dot using \pstThreeDDot

I want to put a dot on the beginning of the red line. My code is: \documentclass[a4paper,pstricks,11pt]{report} \usepackage{amssymb} \usepackage{latexsym} \usepackage{amsmath} \usepackage[usenames]{...
2
votes
1answer
59 views

Vertical surface with lines using \psSolid

I’m trying to put a line on a top of this surface (like the red one but on the top of the surface). Here it is the code: \documentclass[a4paper,pstricks,11pt]{report} \usepackage{amssymb} \...
1
vote
1answer
116 views

Drawing closed 3d path with pgfplots

I'd like to reproduce the following 3d image using pgfplots the battery doesn't need to be there, just the closed path and the axis. I haven't been able to find any examples of 3d paths that are ...
2
votes
1answer
119 views

Sphere Segments in PGF/TIKZ

I want to draw sphere segments, I made a sketch here: An optional bonus would be to separate the segments slightly in x1 direction. Any help would be appreciated!
7
votes
1answer
76 views

PGFPlots - how to avoid aliasing when plotting 3d surface on limited domain

I'm trying to render the following plot so that the shading goes right up to the bounding curve without this jagged aliasing. The function is $\frac{x}{y^5 + 1}$ in the domain $\sqrt{x} \le y \le 2$ ...
3
votes
1answer
81 views

Mapping with Tikz and Gnuplot in defined area

i´m trying to plot some x,y and z values from a .txt-file with gnuplot in Latex. The plotting itself works fine. The Problem is, that there should be a defined Outline surrounding my plot. Everything ...
6
votes
1answer
183 views

Draw a sphere with a handle with TikZ

I am trying to draw a sphere with a handle similar to the one I have attached below with the package TikZ. Unfortunately, while I know how to draw a sphere or a torus, I don't know how to put them ...
1
vote
1answer
64 views

3D Piecewise Plot with varying bounds in Tikz/PGF

The function to be plotted reads as In it, these constrains hold true: If plotted it looks like Please excuse the different symbols, I will explain: p/p_0 is equivalent to \Pi and \gamma is ...
3
votes
2answers
180 views

Draw the three cylindrical sections

I want to draw the three conic sections (circle, ellipse and rectangle) where the cylinder and cross sections are colored: \documentclass{standalone} \usepackage{tikz} \usepackage{animate} \...
8
votes
1answer
244 views

How to plot trinomial distribution in tikz?

I am trying to plot a 3d probability mass function like below (probability histogram for trinomial distribution). Could not find anything helpful online for 3D discrete plotting like below given a ...
2
votes
1answer
96 views

Equation with summation - regression plotting - pgfplots

I am trying to 3D plot the below equation in tikz. I have basic premise setup like this, with sample set as datatable. \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.15} \...
2
votes
1answer
61 views

pgfonlayer pgfplotstableforeachcolumnelement issue

This is the continuation of this issue and this, where I try to draw normal distributions along the regression line for different x values in 3D. The problem now is, for all distributions, I try to ...
2
votes
1answer
180 views

3D graphs and projections

I found this image on a presentation. I am working on MWE but I was wondering if you had ever come through that type of representation with a projection on the 3d graph ? It could look quite like ...
5
votes
1answer
101 views

How to retrieve regression line to plot normal distribution upon it

This is a continuation of this question. Below is my current output and problematic area is that brown curve. I am trying to plot pdf as a 2D graph standing upon the regression line (red). I am ...
1
vote
1answer
177 views

Marks do not appear in 3D for 3D scatter plot

I am trying a 3d scatter plot as below, however marks are circles, appearing only in 2D always whichever view I choose. I want them to be flat on the X-Y plane. Please let me know how to do it. I ...
3
votes
1answer
79 views

How to pass an array to function in pgfmathdeclarefunction

I am trying to plot below function as 3d surface plot, where $\theta_1,\theta_2$ are the x and y axes respectively. The Z axis is supposed to be $L(\theta_1,\theta_2)$. $$ L(\theta_1,\theta_2) = \...