Tagged Questions
2
votes
1answer
122 views
Intersecting planes not shown correctly with TikZ
I made a plot in MATLAB of a deformed and an undeformed model. I converted the figure to TikZ using matlab2tikz and added it to my .tex file. I then noticed that the two configurations, which are ...
8
votes
1answer
93 views
Contour partially hidden by a surface in pgfplots
Thank's to SE (and particularly these two questions: Draw a bivariate normal distribution in TikZ and How to fix a contour plot at top of a 3D box), I've been able to draw what I was looking for with ...
12
votes
1answer
343 views
Tikz: intersection of line and plane
I am struggling with drawing a plane and a intersecting line. I would like to have the line C,P',P in the image, disappear if it is "behind" the plane and have it reappear if it is not behind the ...
2
votes
0answers
133 views
How do I replace an XYZ coordinate system on an already available plot?
I have an eps file looking like this:
I have no access to the original dataset, so replotting it is not an option. I would like to replace the ugly 80s style coordinate system (Both the captions ...
20
votes
3answers
506 views
Isometric Elevation Grid in TikZ
Is there a (simplistic?) way to draw a 3D elevation grid like this in Tikz or PGFPlots?
The blue line should be able to move up or down and, eventually, submerge the interior blocks.
I've looked ...
5
votes
1answer
249 views
2D surface on a 3D surface plot external data in a file
I am drawing a 3D surface from external data. Here they are:
0 0 -0.64
1 0 -0.5
2 0 -0.4
3 0 -0.31
4 0 -0.23
5 0 -0.2
6 0 -0.24
7 0 -0.32
8 0 -0.42
9 0 -0.59
10 0 -0.76
0 1 -0.54
1 1 -0.4
2 1 -0.27
...
3
votes
1answer
113 views
How to draw the outlines of a patch in pgfplots?
In pgfplots the patch plot library allows to basically draw 3D bezier planes easily. This is very helpful if the exact mathematical form of a plane is not known or not important. What I have not ...
8
votes
1answer
185 views
3D line plot in pgfplots
I have the following problem with pgfplots and \addplot3. I have a graph in [0,1]x[0,1] that should display a mesh plot and a line plot that traces a particular line across the mesh. The line plot is ...
3
votes
0answers
139 views
Naming 3D axes in pgfplots
I want to label the axes in a 3D plot with pgfplots. Using the anchors .right of origin and .above origin, I can label the axes as "x" and "y" in 2D with ease. In 3D, the labels must be tweaked to ...
3
votes
1answer
113 views
Axis label placement in 3d plot far out but why?
I want to plot a dataset in a 3D pgfplots graph. It looks like a good start but somehow the label placement is far out. Boiling it down to a MWE did not give me any hints how to get the labels back in ...
8
votes
1answer
146 views
Creating Bezier surfaces using procedural graphics
Are there any package for LaTeX that can create Bezier surfaces? I mean a actual existing function that takes matrices as arguments and generates the surface, not a function written by myself.
5
votes
1answer
299 views
pgfplots: color a (3D) surf using arbitrary RGB colors
I would like to color a surf using arbitrary RGB colors (unlike this question, which just colors the surf using the colormap).
In this minimal example (which plots the x+y function), I would like the ...
6
votes
1answer
312 views
2D colors above 3D surface plot
I would like to draw a 2D, colored plot of a function above its surface plot.
I tried copying the surface plot and setting z filter/.code={\def\pgfmathresult{1.4}}, but then everything is the same ...
5
votes
0answers
135 views
How can I create a 3D Manhattan bar chart? [duplicate]
I have some data which I would like to visualize. This data are 3-tuples of integers:
(Threads,Sum,# of occurences)
(1,2,20)
(1,7,18)
(1,100,25)
(2,7,15)
(4,103,24)
I would like to visualize this ...
4
votes
1answer
174 views
PGFPLOTS 3d box line for Z axis not being drawn
The vertical 3d box line for Z axis is not being drawn. If I make the grid lines dashed, the line is drawn, but also appears dashed, as the grid lines.
To me, it looks that the line is in fact drawn, ...
2
votes
1answer
454 views
matlab2tikz for surf plots: reducing data?
I was really happy to see that matlab2tikz also supports surf plots. Unfortunately, it produces too much data, so I run into the well-known memory problem. I tried compiling with lualatex instead of ...
6
votes
1answer
196 views
pgfplots: labels and width issues in non-boxed 3d plot with oblique projection
Update april 2013
The bug has been fixed with pgfplots version 1.8 (requires \pgfplotsset{compat=1.8}).
When I try to add the axes labels to this code, I get a division by zero error. I think the ...
8
votes
1answer
361 views
Changing view angle distorts sphere with pgfplots
I am trying to learn how to use pgfplots by plotting simple things, like a two-dimensional sphere. However, I find it quite surprising that depending on the view angle, the result sometimes does not ...
9
votes
2answers
569 views
Intersection of 2 surface plots in pgfplots
My question is pretty much a duplicate of this one. I'd like pgfplots to display the intersection between tho surface plots properly. Unfortunately, my function is quite different from the one in the ...
6
votes
1answer
769 views
How to change label and ticks of a pgfplots colorbar?
I have a 3d plot with colored surface and a colorbar made with pgfplots.
My probably related questions are:
How can I set the label of the colorbar?
What are the equivalents of zticks (positions of ...
5
votes
1answer
2k views
3D surface plots in TikZ
I need to plot a surface plot using TikZ. I have the (x,y) coordinate and the corresponding function value in a table form. I have not done 3D plots before in TikZ and hence I would appreciate any ...
16
votes
1answer
718 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, ...
11
votes
1answer
855 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 ...
5
votes
1answer
314 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
472 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 ...
4
votes
3answers
702 views
Surface plot with coordinates in pgf
Is it possible to draw a three dimensional surface using coordinates instead of formulas? Sadly I found nothing in the pgfplots-manual according to this problem.
MWE so far:
\documentclass{article} ...
28
votes
1answer
1k 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 ...
7
votes
2answers
716 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}, ...
9
votes
1answer
567 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 ...
4
votes
1answer
454 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]
...
5
votes
2answers
597 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 ...
3
votes
1answer
917 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}
% ...
8
votes
2answers
506 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 ...
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 ...
7
votes
3answers
925 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 ...

