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
1answer
34 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
52 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
51 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
89 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
97 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
25 views

Spherical shell

I'd like to draw a figure like this using Tikz, anyone can help me?
2
votes
1answer
23 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
45 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
188 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} ...
11
votes
1answer
308 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} ...
2
votes
1answer
79 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 ...
0
votes
0answers
33 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
119 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
32 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
60 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} ...
5
votes
1answer
138 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 ...
2
votes
0answers
53 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
103 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
78 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
64 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
50 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
84 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
42 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
81 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
143 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
178 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
168 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
96 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
258 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
71 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
100 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, ...
11
votes
0answers
227 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
162 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 ...
1
vote
1answer
69 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
33 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} ...
3
votes
1answer
169 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
142 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
612 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
110 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 ...
2
votes
0answers
115 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": ...
4
votes
1answer
128 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
224 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
540 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
64 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
126 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
161 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
114 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 ...
7
votes
3answers
593 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
212 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, ...