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

learn more… | top users | synonyms

8
votes
2answers
1k views

3d Image using tikz?

I have attempted to draw a sphere between two planes that are defined as follows. a:= 2x - 2y + z + 2 = 0 and b:= 4x - 4y + 2z - 4 = 0 I know that the line is perpendicular to the two planes are ...
13
votes
2answers
1k views

TikZ: How to draw a sine curve in 3D?

I know how to draw a sine curve in TikZ and I know how to rotate it in the plane of the paper. I would now like to draw a sine curve that oscillates in the depth of the paper - to give the impression ...
14
votes
1answer
814 views

Drawing 3d circuit diagram

I've started using tikz only few weeks ago and find it utmost useful todraw beautiful picutres.But now i'm a bit stuck on a 3d circuit which should resemble the physical structure and hope the experts ...
19
votes
2answers
1k views

How can I draw a vector field (quiver plot) on a surface in 3D?

I'd like to draw a vector field on a torus using PGFPlots and/or TikZ. I managed to do it using ePiX, based on the file decorate.xp from the example gallery, but then I have to do z-sorting by hand, ...
13
votes
1answer
2k views

TikZ, 3d library and circle fading

I'm using the 3d library to put a circle on the z=0 plane, and other things. I'd like to fade this circle radially, but the result isn't as I would expect because the fading is not proportional to the ...
9
votes
2answers
764 views

Tikz : how to control length in 3D pictures?

I tried to draw a sphere with tikz with isometric projection or oblique projection (perpective cavalière in french). For oblique projection you have to put a scaling factor (scal < 1) for distance ...
5
votes
1answer
803 views

Is there any way to remove mesh lines completely in a pgfplots faceted 3d plot?

I can not seem to find the way to remove the lines in the surface mesh in a 3d faceted plot. I need a solution that does not use the "shader=interp" (i.e. gradient filling) so that the faces are ...
9
votes
2answers
695 views

Is lualatex supposed to be a superset of pdflatex? (regarding production of PDF)

In other words, is it a bug if lualatex cannot compile a document that pdflatex can? Based on the answers to this question How to expand TeX's "main memory size"? (pgfplots memory ...
8
votes
3answers
2k views

Surface plot with coordinates in pgf

Is it possible to draw a three dimensional surface using coordinates instead of formulas? MWE so far: \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} ...
6
votes
1answer
570 views

Extract coordinates from 3D point

How do I extract coordinates from a three-dimensional point defined when using tikz-3dplot? I would like to perform some calculations on these (more specifically a cross-product of two vectors), but ...
37
votes
1answer
2k views

Plotting several 2d functions in a 3d graph

I am trying to reproduce a similar figure to the following one. My first guess was to use pgfplots but I didn't find any example that I could use as a starting point. At the moment I am unsure if ...
35
votes
1answer
2k views

How to draw spherical geometries with TeX?

I am working in the field of Astrodynamics and have to do many computations using spherical geometry. To visualize some of the concepts I would like to prepare drawings of things like spherical ...
23
votes
1answer
1k views

Perspective transform

The following piece of eye candy: was produced using the following code: \documentclass[a4paper]{article} \usepackage{tikz} \usetikzlibrary{shapes.arrows} \usetikzlibrary{shadows.blur} ...
4
votes
1answer
1k views

PDF file containing 3D object is not included correctly with \includegraphics

I have a PDF file, containing a 3D object in PRC format. I try to include this into a LaTeX document to be compiled with pdflatex, with the simple source below: \documentclass{minimal} ...
11
votes
2answers
1k views

How to plot three-dimensional polar functions with pgfplots

I would like to plot the following functions with pgfplots: I know how they are defined: \sqrt{r}\sin\frac{\theta}{2}, \sqrt{r}\sin\frac{\theta}{2}\sin\theta, \sqrt{r}\cos\frac{\theta}{2}, ...
12
votes
1answer
987 views

3D Arrow Tips for TikZ/pgfplots

I really like the arrow tips shown in How to get rid of the viewer's (incorrect) axes in an Asymptote 3D graphics and am wondering how to produce this in pgfplots: I admit I have not tried ...
11
votes
2answers
975 views

How to get rid of the viewer's (incorrect) axes in an Asymptote 3D graphics

I have an Asymptote graph of a 3D surface (code below) that I export into 3D PDF file (containing PRC). I include nice axes with LaTeX labels on them, but in addition to these the viewer displays very ...
4
votes
1answer
773 views

How to remove coordinates in a 3d plot using pgfplots

I would like to know how to remove coordinates in an addplot3 surf plot. Here is a simplified example: \begin{tikzpicture} \begin{axis}[clip=false,view={45}{45},grid=major] ...
7
votes
3answers
2k views

Drawing Axis Grid in 3D with Custom Unit Vectors

I am trying to adjust the unit vectors for each of the axis, and draw a coordinate grid. I can get it to work without specifying the unit vectors, of specifying it as: x={(1.0cm,0.0cm)}, ...
5
votes
2answers
930 views

pgfplots: three dimensional plot with one variable as exponent?

In want to draw this function with pgfplots: f(x,y) = 1-(1-(1+y)^(-x))/x*y. When compiling, I get some error message about z buffer reoderings. I already played around a bit and ist seems to me the ...
35
votes
2answers
4k views

How can I draw an arc from point A -> B on a 3D sphere in TikZ?

I'm basing myself on http://www.texample.net/tikz/examples/spherical-and-cartesian-grids/ and now I need to add a arc from point P to Q. What I was able to get so far: ...
7
votes
2answers
1k views

Plot TikZ items with respect to 3D position, not the order of appearance in the code

I have a big bunch of polygons plot in 3D with TikZ. The code is generated by a program, so it's hard for me to print the "foreground" polygons last, so that they are well printed in space. In other ...
30
votes
3answers
13k views

3D bodies in TikZ

Is there like a library that has default geometric figures like the ones shown below. Am not acquainted yet with 3D diagrams in TikZ.
3
votes
1answer
1k views

3D plots with pgfplots

I am trying to plot 3D plots with pgfplots. I have started with an example from documentation: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usepackage{pgfplots} % ...
4
votes
1answer
486 views

Relative positioning in 3D

I am trying to position a node in 3D according to the (x, y) coordinates of a node previously defined on another z level. However, I can't figure out how to make it work: \documentclass{article} ...
17
votes
2answers
2k views

Draw a prism in TikZ or PSTricks

Is there a way to define an polygon in plane and output an (orthogonal) prism with that polygon as its base? The prism should be drawn in 3D in parallel oblique perspective with controllable height h, ...
9
votes
2answers
903 views

pgfplots: two labelings for a single 3d plot

I am trying to add a second labeling to my 3d plot, but I can not figure out how to do it correctly. The idea is to add a second axis without any grid, ticks, lines and nothing but labels and overlay ...
3
votes
1answer
778 views

Embedding 3D PRC model in LaTeX with custom views visibilities (movie15)

I'm using the movie15 package to include 3D graphics in my LaTeX document. I have model in PRC file format (generated by Asymptote). You can find all files of interest + my pdf output here: ...
1
vote
1answer
1k views

Some simple surface drawing using addplot3 for pgfplots won't compile

I am having trouble compiling even some very simple surface drawing using pgfplot and addplot3, for example please see the attached code, I keep getting error saying \begin{axis} on input line 8 ended ...
2
votes
2answers
369 views

3dplot in Beamer crop and ticks problem

I'm new to pstricks, and I've been struggling with several issues using it with beamer. So my problem is that I'm trying to show a 3D plot in a beamer frame. However, for some reason, that I can't ...
9
votes
2answers
821 views

pst-solides3d and hidden lines

I am trying to draw figures with pstricks for the first time. Unfortunately, I am struggling with it. I was trying to draw a pentagon-cone and an octahedron using pst-solides3d, but it draws some ...
19
votes
2answers
4k views

Drawing a circle on a non xy-plane with TikZ

Say I'm drawing a 3D picture. Now I would like to draw a circle, perspectively correct, on the yz-plane, but TikZ does not seem to be capable of this. All one can do is drawing circles on the ...
26
votes
2answers
4k views

Draw a bivariate normal distribution in TikZ

For a small class I want to draw a bivariate normal distribution and show where the means from the two variables meet in the space. Has anyone done this in TikZ?
46
votes
2answers
8k views

Drawing simple 3D cylinders in TikZ

I'm trying to draw some simple 3D objects in TikZ. I can do spheres and cuboids okay, but I'm struggling with circular cylinders: When rotating the scene (I use tikz-3dplot for this), the end faces ...
0
votes
1answer
327 views

Legend on top of a pst-solides3d drawing

Another question aboutpst-solides3d and visibility: How can one draw a legend on top of the 3d drawings ? I thought that putting the put command before or after the 3d drawings commands would render ...
8
votes
3answers
1k views

Cut-off cone in TikZ

How would I draw the following cone using TikZ? I have no clue how to incorporate the "cut-off". I want to draw a picture of the cone given by the points (y, t) for y in R^d and t in (0, infty) such ...
8
votes
3answers
2k views

How to draw a circular cone

I want to draw the circular cone given by the equation z²=x²+y². (I do not mind using any given package.) I tried to use the pst-solides3d package with the help of its manual to generate the ...
6
votes
1answer
266 views

Cyclic ring and visibility problem in pst-solides3d

I'm trying to draw two cylindric rings on top of each other with pst-solides3d. Here is what I have: \documentclass{article} \usepackage{pstricks} \usepackage{pst-solides3d} \begin{document} ...
3
votes
2answers
560 views

How to pick a plane inside a cube in pst-3dplot?

I want to pick and highlight a diagonal plane of a cube. I do not want to color it but use some kind of fill-style so that I can print it on a black and white printer. The following is my solution ...
4
votes
1answer
793 views

Navigation system coordinates in tikz-3dplot

I am using tikz-3dplot and trying to represent navigation system transformations. In navigation systems, the orientation of the vehicle axis is given in terms of Roll, Pitch and Yaw. These are ...
1
vote
0answers
818 views

Exporting 3D graphics from Mathematica to TeX [closed]

So far, whenever I had to use a 3D plot generated in Mathematica in a LaTeX document, I used exported the graphics to either of the following: PDF PNG file format. Then I could easily include the ...
6
votes
1answer
653 views

plot 1d curves in 3d space with nice looking intersections

I am trying to draw multiple colored one-dimensional parametric curves in three dimensional euclidean space. The curves themselves do not intersect in 3d, but ...
5
votes
1answer
679 views

Some extensions to pst-solides3d

I asked this set of questions (actually 2 of the 3 below) on the PSTricks mailing list a couple of days ago, but have since heard that Herbert's "to do" list is quite lengthy. So, I'm distributing ...
4
votes
0answers
808 views

Drawing tri-axial ellipsoid and intersecting it with a sphere [closed]

I would like to draw a tri-axial ellipsoid (that is, an ellipsoid with three different main axes). I'd also like to draw a sphere in the same picture, showing the curves of intersection between the ...
6
votes
2answers
1k views

xyz coordinates rotation

is it possible to set a different orthonormal base for the xyz coordinate space? for example, the default one is x=(1,0,0) y=(0,1,0) and z=(0,0,1). I would want to set this base: x=(1,0,0) y=(0,0,1) ...
12
votes
3answers
773 views

polytopes as inequalities sistem solutions in R3 (x-y-z) cartesian space

i'm here to ask if there's a TikZ/pgf support to draw areas resulting from a system of linear inequalities, into a xyz cartesian space. i found examples of my needs for xy plan at How to plot polygon ...
25
votes
9answers
6k views

Drawing polyhedra using TikZ with semi-transparent and shading effect

I would like to draw an Octahedron using TikZ, I found nowhere to start, I tried drawing 6 points and then connecting them properly, but this method gives no 3D feel at all, this is my drawing: ...
5
votes
2answers
2k views

Changing axes in tikz-3dplot picture

As is, the axes in the following picture \documentclass{article} \usepackage{tikz,tikz-3dplot} \begin{document} \begin{tikzpicture}[scale=3] \draw[thick,->,black] (0,0,0) -- (2,0,0) ...
7
votes
2answers
1k views

3D-plotting sine integral (PSTRICKS)

I'd like to build up a 3D-Plot (based on pst-solides3d), where the function looks like x=u, y=v and z=\int_0^x \frac{\sin\left(\pi t \right)}{\pi t} - \frac{1}{3} ...
4
votes
1answer
993 views

Easy way to do several line styles on one path using TikZ?

I'm drawing a lot of 3D pictures for school using 3D-plot for TikZ. I like it when the lines that are inside or behind an object, eg. the ones that shouldn't be visible to be thinner than the lines ...