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

learn more… | top users | synonyms

1
vote
0answers
17 views

3d projection on a line in Tikz-3d

I am trying to draw (in tikz-3d) a perpendicular from a point to a line that is not a coordinate axis. The question is how to find a projection of this point. I need some analog to tikz-euclide: \...
4
votes
1answer
56 views

Embedding pgfplots' plot3 into a tikz-3dplot

I'm trying to embed a 2D Gaussian into a tikz-3dplot, but I'm having problems transforming the coordinate systems. As a simplified example, I'm plotting a plane in pgflots' \addplot3 and I'm embedding ...
0
votes
0answers
26 views

Pgf surface plot - Not getting the proper plot

I have produced a surface plot in matlab which looks like this I want to reproduce the same using pgfplot to include in my latex document. The data for the surface plot can be found here. But when ...
2
votes
0answers
62 views

Using equation/function in 3D TikZ

I have a subset in 3D, than has the restrictions: 1<=x<=2, 1<=y<=2, 1<=z, 2x+2y-z<=5. So far I have just plotted the point, where I restrict x and y. How do i plot the last ...
2
votes
0answers
42 views

How can I rotate this ellipse on xy plane?

I want to enclose the red circles into an ellipse, but this ellipse should rotate, but the rotation is wrong. \documentclass[border=1cm]{standalone} \usepackage[x11names,dvipsnames]{xcolor} \...
1
vote
1answer
58 views

I do not know the key '/tikz/start'

I am receiving an error message: Package pgfkeys Error: I do not know the key '/tikz/start' and I am going to ignore it. Perhaps you misspelled it. }when I would like to draw a simplex-type graph. I ...
1
vote
2answers
79 views

Image with tikz

This is the image I would like to obtain And this is my suggestion so far \documentclass[a4paper ,11pt]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[y={(1cm,-0.5cm)}, x={(-1cm,...
0
votes
0answers
38 views

Modify a tikz 3D image

This is the image I would like to modify Here the modifications that I want: remove the box and maintein only the 3 main axis tilt along y-direction the 3D function inside make the function ...
1
vote
0answers
45 views

Asymptote or pst-solides3d for 3d figure

I want to draw three dimensional figures and diagrams for my physics classes. Some examples of drawing can be various crystal structures in various orientations, various planes in them, three ...
18
votes
2answers
370 views

Pgfplot - Cross section of a 3D line plot (Poincare Sections)

I have plotted a 3D line using this following data: p p1t p2t -65.79 -210.81 137.73 -124.76 -182.7 189.67 -170.78 -141.97 233.17 -206.39 -96.42 257.48 -226.99 -40.212 268.45 -231.57 20.337 255....
1
vote
0answers
29 views

tkzMarkAngle changes size of tikzpicutre

I am trying to label some 3D figures. Here is a MWE: \documentclass[tikz]{standalone} \usepackage{tikz} \usepackage{tikz-3dplot} \usepackage{tkz-euclide} \usetkzobj{all} \begin{document} \...
5
votes
1answer
105 views

How to rotate a circle around two axes?

I am trying to rotate a circle around two axes. The circle should be placed perpendicular to the red vector. Code: \documentclass[a4paper]{article} \usepackage{tikz} \begin{document} \begin{...
2
votes
0answers
42 views

Visible and non-visible lines in simple 3D drawings (cube - planes)

I want to make some simple 3D drawings, most of them in Cavalière perspective. I also want to see the difference between visible lines and the non-visible lines. The code I've made is: \...
1
vote
0answers
53 views

pgfplot: 3D version of a plane and its the gradient vector

Checking pgfplot for the addplot3-command was easy! I've found this very nice possibility to plot a plane: \begin{tikzpicture} \begin{axis} \addplot3[ surf, mesh, ] {x+y+1}; \end{axis} \end{...
1
vote
1answer
81 views

How can I make a 3D representation of a potential well

I want to do draw a 3D representation of a potential well in cartesain coordinates, like this: Since I never had to do 3D plots, I have no idea where to start.
5
votes
1answer
92 views

tikz 3d graph with circular domain

I have got a pretty simple function to make a 3D graph of. The function is defined as: Plotting this was not that much of a problem with the follwing code: \documentclass[border=10pt]{standalone} \...
2
votes
1answer
43 views

How can I fill a face of cubic with variable color on tikz?

Base on the bellow figure, I want to change color of two face. How it is possible.Both side are the same (just I cant plot correctly one of them). \documentclass[border=10pt,tikz,multi]{standalone} \...
0
votes
0answers
77 views

3d plot with reflected arrows in “planes” using TikZ

I'm trying to reproduce this picture in TikZ, but I don't know how to get those 3D "planes" of arrows shown. Here is my attempt so far, which isn't remotely close to what I want (and mostly ...
3
votes
1answer
81 views

Drawing two spheres separated by horizontal distance along z axis

I would like to draw another sphere like the following one, including axes, lines and angles (all of them "primed"), but shifted by (0,0,5), that is, displaced by 5 along z axis. I want to have both ...
0
votes
0answers
111 views

Drawing waterdrop after splashing with tikz

I want to generate figures which represent a water drop after the impact with a liquid surface using TikZ. I would like to sketch a 2D-figure like the scheme attached and a sequential 3D-figure of ...
3
votes
1answer
114 views

Prism with curved surfaces with pgfplots

How can I reproduce the 3D prisms shown below using pgfplots (even if they'll be a collection of surfaces is ok)? My main problem is the generation of the bottom and top surfaces. I also tried to use ...
0
votes
0answers
46 views

Spherical shell

I'd like to draw a figure like this using Tikz, anyone can help me?
2
votes
1answer
38 views

Can I set z-axis to point to the right with tikz-3dplot?

All I want to do is to rotate the axes of the accepted answer of the question in How to draw and annotate a spherical coordinate system such that the new z-axis stays where the current y-axis is. ...
0
votes
1answer
51 views

Drawing ground in 3D using 3dplot

I want to draw ground at the specific point(0.25,0,-0.15). I am using 3dplot so the ground doesn't look aligned with the main_axis (having a little slope). How can I make the ground look aligned with ...
4
votes
1answer
220 views

3D Shaded diamond with intersecting plane pt 2

This code is building from the code found here. I am trying to get these plots: Here is what was already done in the previous post: \documentclass[tikz,border=3mm]{standalone} \usetikzlibrary{...
11
votes
1answer
438 views

How to make this 3D shape (ellipsoid) more realistic?

So I am trying to draw an ellipsoid, this is what I have so far: How can I make it more realistic (by improving the shadowing)? \documentclass{article} \usepackage{tikz} \usepackage{pgfplots,tikz-...
2
votes
1answer
108 views

Drawing arcs in tikz-3dplot

In my post here My document cannot draw angles, I replaced the drawing of angles by \tdplotdrawarc[color=blue]{(-0.25,-0.2,0)}{-0.3}{0}% {55}{anchor=south east,color=black}{$\...
0
votes
0answers
34 views

My document cannot draw angles

I have the following document which is just a figure and works as a standalone. When I copy the code and insert it in a larger document I get the following error: ! Missing \endcsname inserted. <...
5
votes
1answer
137 views

3D Shaded diamond with intersecting plane

I would like some help to get this figure in LaTex: with the shapes shaded. This is what I have so far. \documentclass[tikz,border=3mm]{standalone} \usetikzlibrary{intersections,calc} \...
0
votes
0answers
56 views

Tikz-3dplot - how to draw a translucent gray dome on my coordinate system?

below is my attempt to draw a dome around my coordinates for illustration purposes. I have found a few problems. First, it appears that tike-3dplot does not support fill opacity with \...
3
votes
1answer
72 views

Draw cells in a 3D plot with only cell center data [duplicate]

I have data that is basically 3D (x,y, and temperature), a simple top view 3D plot in pgfplots \documentclass{standalone} \usepackage{tikz,pgfplots} \begin{document} \begin{tikzpicture} \begin{...
5
votes
1answer
147 views

Cube in TikZ not drawn correctly - possibly a bug in TikZ?

I have a simple cube in 3-space, 4 faces drawn in red and top and bottom in green. \documentclass[border=5,tikz]{standalone} \usepackage{tikz-3dplot} \begin{document} \foreach\s in{2,4,...,360}{...
2
votes
0answers
57 views

How does tikz-3dplot parse keys?

I'm trying to draw in spherical polar using tikz-3dplot and I don't understand how some of the \td... commands parse their args. What I do is define a pic, which takes 2 arguments (using /.style args) ...
3
votes
1answer
135 views

Periodic coloring of boxed plane partions

I am using the code below, which creates different coloured layers. Having trouble to get a decoration in making it work simultaneously for each layer in the three axes. Kindly some help here. I am ...
2
votes
0answers
92 views

How to draw (Cartesian, cylindrical, and spherical) coordinates and differential elements?

How to draw the following figures? I tried to do it myself, not an easy job, apparently! I did also find these relevant posts: For the 1st pic: 3D Cube within a cube? For the 2nd & 3rd pics: ...
2
votes
1answer
77 views

Reverse clipping in a 3D figure - Projection issue

I have an issue with a reverse clipping on a 2D surface represented in a 3D space. Although the reversed clipping is working, the cut part is not projected on a plane. Here is the MWE: \...
2
votes
1answer
61 views

How to draw the line above the filled section in diagram?

I am the basic user of \LaTex. It would be great if someone can help me to sort out this problem. In the following shown figure, If I fill the middle section with some colors the straight line in ...
0
votes
1answer
94 views

tikz-3dplot: Find projection of a vector on a unitary sphere

I am using TikZ (with the 3dplot package) to draw figures that mostly represent vectors lying on 2-Spheres surfaces. I have to say I am a bit of a newbie with TikZ, but I think i got the basic ...
0
votes
0answers
34 views

Drawing 3D cylinder with Tikz [duplicate]

I wanted to draw a 3D cylinder on top of a set of axes, and I don't know how to do this. My idea is to draw two circles, one at z=-1 and the other at z=1 and the somehow fill in the region between ...
1
vote
1answer
63 views

3D plot in Tikz - Points at the top connecting

I've made a plot of the function $z = sqrt(x^2+y^2)$. Here is my output: At the top of my plot, the points are connecting. How do I stop this from happening? Here is my code: \usepackage{...
1
vote
0answers
113 views

Convert the pstricks to tikz, 3d tubes

How to convert the following code on pstricks to TikZ? \documentclass[10pt,a4paper]{book} \usepackage[utf8]{inputenc} \usepackage[usenames,dvipsnames]{pstricks} \usepackage{pst-solides3d} \begin{...
2
votes
1answer
223 views

How it is possible rotate a part of 3D tikz picture (like picture) and the bottom area is fix(no rotation)? [duplicate]

I want to rotate picture using 3D tikz like below picture. Is it possible? \documentclass{standalone} \usepackage{tikz,tikz-3dplot} \begin{document}‎‎ \begin{tikzpicture} \draw[->] (0,0,0)--++(5,...
3
votes
2answers
243 views

how I can draw an skew cylinder (rotate around x axis) and fill it (in 3D tikz)?

I can draw the black part in the picture, but I cant rotate with angle alpha and draw the red part and fill it. Also, it is obvious, two side of figure rotate, and one side is fix, and the other one ...
4
votes
2answers
194 views

How to plot multiple 2d filled graphs in 3d with TikZ? [duplicate]

I am trying to plot four 2d plots in a 3d box. I want these plots to be filled with respect to zero. That is, if the line is above zero, I want it to be filled from the line until zero. If the line ...
3
votes
1answer
112 views

sphere with waves on the surface

I am working on surface waves on a curved surfaces and I need to draw a 3D sphere with sinusoidal waves on its surface, waves should start from the top and end in bottom, I have no idea how to do it. ...
7
votes
1answer
340 views

Drawing a circle on non-plane in 3d - Tikz

So I'm trying to draw a circle in a nonstandard plane with TikZ, but can't seem to find any documentation. I originally tried what was found here: Drawing a circle on a non xy-plane with TikZ But this ...
0
votes
1answer
73 views

tikz 3-d object

Can the next code be drawn as a 3-d object { \begin{minipage}[c]{.7\textwidth} \vskip -15.cm { \begin{tikzpicture} \draw [thin,orange,fill=yellow] (.25,.25) -- (.25,0) -- (.5,0) -- (.5,.25) -- (....
3
votes
0answers
140 views

Change cubes in 3d plot pgfplot to bars

I am plotting a 3d diagram using cubes to represent the data. Works fine so far. Basically, this is what I started with: http://pgfplots.net/tikz/examples/scatter-cube-plot/ Now what I want to do, ...
14
votes
0answers
311 views

How to draw topological surfaces?

I am making some notes on differential geometry and topology lecture. As I know in LaTeX we can draw some very nice images. But I was not able to find any examples on surfaces, which I could use. Is ...
2
votes
1answer
232 views

TikZ: shading a ball with colors

I am interested in plotting a ball similar to the ones below: where the color of the surface of the ball depends on the distance from a chosen point (where the vector arrow points to). How can I ...