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

learn more… | top users | synonyms

2
votes
0answers
52 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
55 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: ...
1
vote
0answers
31 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
65 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
33 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
30 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: ...
1
vote
0answers
47 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} ...
2
votes
1answer
113 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[->] ...
3
votes
2answers
131 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
130 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
84 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
166 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
58 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
60 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, ...
8
votes
0answers
150 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
115 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 ...
0
votes
1answer
65 views

Vectors from functions in tikz 3d plots

I designed this graphic but now I want to make a change. I would like to sample with 10 points the three functions that define the coordinates x, y, z. I would then create 10 vectors that depart from ...
0
votes
0answers
31 views

One legend for two bar charts [duplicate]

I want to use only one legend for two histogramme plot. See the following example. Thank you in adavance. \documentclass[1p]{elsarticle} \usepackage{pgfplots} \pgfplotsset{width=5cm,compat=1.3} ...
2
votes
1answer
130 views

Draw a surface on a ternary diagram with pgfplots

I'd like to draw a surface on a ternary diagram. Until now, I can plot density maps on a ternary diagram (cf. density map). But I would like to replace the density map by a surface, like on figs a ...
3
votes
1answer
110 views

plotting 2D functions in 3D plot

I have the following code that plots 2D functions in a 3D plot. \documentclass[border=3pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.10} \usepackage{tikz-3dplot} ...
1
vote
1answer
302 views

Draw a sphere in Tikz

There are a lot of example codes and questions concerning Tikz, but I can't find exactly what I want. I want to draw a 3D sphere, but as the following figure illustrates something is wrong. The arc ...
5
votes
1answer
94 views

Properly drawing unit normals (orientation and length) in TikZ 3D

I'd like to visualize some points in 3D together with the connecting triangles and the unit normals of these triangles (cross product of the difference vectors between the points) together with the ...
1
vote
0answers
91 views

Asymptote: Intersect Line with Plane, z-order not correct

Hello TeX Stackoverflow! I have a question about 3D plotting in Asymptote. I want to produce a very simple 3D sketch of a line intersecting two planes, but I have trouble making it look "realistic": ...
3
votes
1answer
99 views

Best way to do 3d transluscent planes

I am trying to replace a diagram I made in powerpoint with something that I am making in tikz-3dplot. The diagram should look similar to this The problem that I'm running into is that the lines ...
3
votes
1answer
206 views

tikz-3dplot: Filling 3d-profile

\documentclass[tikz,border=10pt]{standalone} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{70}{70} \begin{tikzpicture}[tdplot_main_coords, scale=2] %define coordinates ...
1
vote
2answers
356 views

Drawing spherical harmonic density plots on the surface of a sphere in tikz/pgfplots

I would like to create spherical harmonic plots in tikz/pgfplots similar to the one below, except without the axes and with labels above every image: It would be good if I could specify different ...
1
vote
0answers
61 views

How can I enhance the plot of a convex hull?

I was trying to solve the problem of finding the convex hull of a set of points ( I posted a related question here ). I solved this problem by plotting all the possible links.. The correponding code ...
2
votes
0answers
107 views

Draw a convex hull and a plane using Pgfplots, in this specific case:

I have 2 surfaces to plot. The first one is a convex hull that passes through 7 points, and the second one is a plane formed by 3 points. The corresponding code is the following: ...
2
votes
0answers
123 views

plotting a function in 3d plot

I want to plot functions within the simplex, but every time I add a function in the usual 2d plot way i get an error. How can I add a function of two variables, for example x^2+y^2 =0.5, here is the ...
3
votes
1answer
89 views

Customized axes in tikz-3dplot, \tdplotdefinepoints not working as expected

I am using tikz-3dplot to draw vectors and arcs in 3d space. In the following example I am drawing two pictures. The code to draw the vector and the arc is the same in both pictures. However, picture ...
5
votes
3answers
361 views

TiKz. Angle between two vectors and a projection

I'm having trouble to draw something with TiKz. What I want to draw I think is simple: SIM is a vector in the YZ-plane with a Beta = 38º, source is just a random vector with positive x and y ...
7
votes
1answer
182 views

Drawing functions on spheres

In a paper, I have a class of functions S1→S2 depending on a real parameter t>0, and I would like to represent some of them on the sphere as curves to illustrate their behavior as t goes to 0, ...
4
votes
1answer
71 views

Buggy behavior of tkzMarkAngle

I'm trying to mark an angle on a 3d plot with \tkzMarkAngle which seems to behave quite oddly in combination with \tdplotsetmaincoords Here's what I mean, below is the minimal example: ...
6
votes
2answers
120 views

Three dimensional Regression Plan with Residuals

In R, I can make three dimensional Regression plane with residuals with the following command scatter3d(prestige ~ income + education, data=Duncan) with scatter3d function from car R package. I ...
1
vote
1answer
63 views

Side by side diagrams with equations in between?

What I am trying to do is take the 3-Simplex (tetrahedron) and put the 2-Simplex (Triangle) to the right of the tetrahedron (ultimately 3 of them but of course smaller) but separated by = and some +'s ...
1
vote
1answer
66 views

Glitch in 3D surface plot using pgfplots not solved by z buffer

The solution from this question does not work for me. The function is (x+y)^A. If I plot it with A larger than one, the 3D graph is fine. However, the graph is horrible if A is lower than one. ...
0
votes
0answers
77 views

How to draw three-dimensional parametric curves?

if we have the coordinates of a 3D_parametric curve in three matrix,that extracted from MATLAB,how draw it with latex? Do I have to enter the coordinates manually?Or is there a simpler way?
1
vote
1answer
164 views

3dplot viewing angle

I need to choose my view angle in \tdplotsetmaincoords{ }{ } (elevation and azimuth) so that my plot ends up looking like the one below. I wish to do this entirely via the view angle, not relabelling ...
1
vote
1answer
91 views

Fit 3D plot onto a shape

I want the 3D plot to be specified in terms of the coordinate system used to draw the rectangle. Right now, the 3D plot takes up way too much space and is off picture. I want it to be contained ...
1
vote
1answer
174 views

Draw a 2D functions in tikz

I want to be able to plot in a 3D environment any type of function of two variables z = f(x,y), where x and y are specified within a given range. For instance plot f(x,y) = x^2 + y^2 where x in [-2,2] ...
11
votes
2answers
302 views

tikz-3dplot: Rotate arc around specific axis

\documentclass[tikz]{standalone} \usepackage{tikz-3dplot} \begin{document} \begin{tikzpicture}[scale=2] % draw arcs \draw[canvas is zx plane at y = 1, line width = 1pt] ...
2
votes
2answers
289 views

Drawing spherical 3D plot with PGFPlots

I want to draw some plots which looks like this: I did not find anything related to this in the doc, and browse the Internet without success. I found ways to plot spherical values with a changing ...
5
votes
1answer
140 views

How to use custom colorscheme with `\tdplotsphericalsurfaceplot` from `tikz-3dplot`

As the title suggest I am trying to use a different color scheme than is currently the default in the tikz-3dplot package for the \tdplotsphericalsurfaceplot command if one uses the option ...
4
votes
1answer
103 views

Tikz Nozzle Design

I'm new to Tikz and I would like some help with a nozzle I'm designing (a nozzle for reaction control thrusters). I want to place a couple of nozzles on the sides of a cube. My idea was to use a ...
1
vote
1answer
188 views

tikz-3dplot , draw spheres instead of circles for 3D diamond lattice site visualisation

This is my first actual LaTeX question, so I hope I get it right. If not, please tell me. I've looked around, but couldn't find an answer to my question, not on stackexchange, but also not in the ...
4
votes
0answers
69 views

3-dimensional plot of a recursively defined curve? [closed]

Is it possible to draw 3-dimensional diagrams with LaTeX, as in the below picture, that come from a recurrence formula?
0
votes
2answers
181 views

Find cylinder tangent in 3D

I am trying to draw a complicated form that is loosely based on a half cylinder. I am using tikz-3dplot to be able to accurately draw arcs in planes other than the xy-plane and to nicely set the ...
20
votes
1answer
626 views

water inside 3D tube

How can I generate the above image using TikZ. The oval inside tube represents water and arrows indicates the dipole orientation of water. What I was able to get so far is pasted below. ...
4
votes
1answer
276 views

Drawing a shaded hemisphere using tikz?

I want to draw a shaded hemisphere using tikz. The final result should look like this (the lower part of the sphere should be removed): Until now I have this code: \documentclass{article} ...
2
votes
1answer
128 views

how to achieve and draw the final rotation of a frame with Euler angles.

I would like to do the final rotation using Euler angles. In this link Euler Angles, the final rotation undergoes three successive rotations, starting from frame (x,y,z), going through (x',y',z') and ...