{pgfplots} is a package for creating 2D and 3D plots of mathematical functions and numerical data, using the PGF graphics framework. For questions about the inbuilt plotting functionality of TikZ/PGF, use {tikz-pgf} instead.
0
votes
0answers
44 views
Issue with PGFPlots text
I'm trying to generate some plots using TikZ, with the following code:
It's not about babel, fontenc, or inputenc; I've tried removing them to no avail.
\documentclass[a4paper]{article}
...
3
votes
1answer
73 views
LaTeX - PGF groupplot - polar axis
I can't find the answer anywhere, is it [and how] possible to make a group plot of multiple polar graphs? For grouping, I use pgf.groupplot library, for polar axis, I use \begin{polaraxis} from pgf ...
4
votes
1answer
54 views
Put numbers in legend using pgf pie
I would like to have the numbers that are inside the pie chart to be in the legend. How can I make that happen?
Here is the MWE:
\documentclass{article}
\usepackage{pgf-pie}
\usepackage{tikz}
...
1
vote
1answer
62 views
Pgfplot figure off-center
I create a tikzpicture in standalone mode (see code below). Then import the resultant .pdf file into my document via \includegraphics (see pic). However the axis labels are cut off and part of the ...
2
votes
1answer
65 views
tikzpicture and pdf - x axis partially disappears
I would like to know why the x axis partially disappears, given the following code. Is it a PDF problem? Also, is there any option to connect the midpoints automatically but not in a smooth fashion?
...
4
votes
0answers
28 views
Pgfplots closes plot cycle when it should not [closed]
I experience a strange behaviour with pgfplots.
I plot a series of datasets with no problems, but suddenly when I plot my last set of data, a line is drawn from the last point back to the first ...
5
votes
0answers
67 views
How to change xticklabel or yticklabel style to Percentage?
When using tikzpicture in the pgfplots package, how can I change use PERCENTAGE for xticklabel or yticklabel.
Here is a simple example:
\documentclass[a4paper]{article}
\usepackage{pgfplots}
...
3
votes
1answer
51 views
How to increase numbers precision in TikZ histogram
I entered fixed point numbers in the following code:
\begin{tikzpicture}
\centering
\begin{axis}[xbar,bar width=0.2cm,legend style={at={(0.5,-0.15)}, xmin=0,xmax=0.8,anchor=north,legend ...
1
vote
2answers
67 views
How do I add a marker to TikZ plot for specific x coordinate? [duplicate]
Please take a look at my code. I am plotting values from a file and I want to add a marker at the x coordinate of 100 GHz.
\documentclass[convert={density=400,outext=.png}]{standalone}
...
3
votes
2answers
145 views
+50
How to shift x ticks in pgfplots having multiple stacked bars
My goal is to generate this bar chart:
I was able to achieve this chart as my MWE:
\documentclass[parskip]{scrartcl}
\usepackage[margin=15mm]{geometry}
\usepackage{pgfplots}
...
3
votes
1answer
55 views
pgfplots Axis-Subsections on X-Axis on a bargraph?
I am trying to get pgfplots to draw some bargraph like this:
but I cannot figure out how to get pgfplots to add the second X-axis-labeling so I could actually draw the data in a way that would be ...
4
votes
3answers
241 views
Easiest way to plot matrix image
Is there an easier way to create this in pgfplots than plotting the matrix image externally and using addplot graphics (as on p.42 of the pgfplots manual)?
A mesh plot (as suggested for plotting ...
3
votes
0answers
123 views
Adding a normal vector to a curved mesh area
How can I put a normal vector on the outer blue mesh?
TeXample
\documentclass[12pt]{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usepackage{amsmath}
\usetikzlibrary{arrows}
...
3
votes
1answer
47 views
pgfplots: Positioning “node near coord” at the bottom of the bar
I would like to position nodes near coords at the bottom of the corresponding bar, right by the X axis.
Here's what I've got now:
\documentclass{report}
\usepackage{pgfplots}
\begin{document}
...
2
votes
0answers
17 views
node at sloped path and/or not respecting every path/.style [duplicate]
I'm producing a schematic Nyquist plot, and I want to create an arc between the x-axis and a straight line, which should be denoted PM (phase margin). I use the intersections library to find the ...
3
votes
0answers
46 views
pgfplots: Aligning multiple bars and marks horizontally along symbolic X-axis
I want to plot average values of some measure as bar charts with error bars and its maximal values as marks above the bars.
I use two separate plots for that now.
The problem is aligning marks with ...
2
votes
0answers
36 views
Global legend for multiple figures
Similar to this question, I need output as follows but in a neat way. My solution code is not neat any more: I added a dummy axis to use its legend. Also the legend must be at top of the page.
Here ...
2
votes
0answers
38 views
Compile time optimized “area under analytical curve” plotting with pgfplots?
There are some question regarding how to plot an area under a curve with pgfplots. But as far as I can see, all the answers have in common that a function has to be plotted twice with different style ...
3
votes
1answer
30 views
Increasing error bar in Pgfplots?
I read data from a table to create a plot in Pgfplots:
x y sigma
1 2 0.3
2 4.1 0.4
where sigma is the standard error associated with y.
Since y and sigma together are are standard ...
5
votes
1answer
59 views
question about pgf-blur package in xelatex
Here is my code:
\documentclass{article}
\usepackage{pgfplots}
\usetikzlibrary{shadows.blur}
\begin{document}
\tikzfading[name=fade down,
top color=transparent!30,
bottom ...
4
votes
1answer
28 views
Skip specific string in a numeric column while using pgfplots
In this question, NaN string is omitted as mentioned in the manual of pgfplots package. My input data contains UnDf and I want to omit/skip this value.
Here is sample code from the question I have ...
3
votes
0answers
41 views
pgfplots: changing line axis and plotting lines width
I have some problems with the width of the lines in my graph. When I try to change the width of the plot lines, straight lines remain in the default width whereas the non-straight lines are shown in ...
1
vote
0answers
58 views
error generating separate pdf from pgfplots [closed]
When I followed the chapter 7pgfplots manual (Revision 1.8) to generate seperate pdf files from the pgfplots figure I could not get the required pdf files.
MY file name is test.tex
Here is the ...
6
votes
2answers
60 views
Align pgfplotstabletypeset and plot left and right
I can't get the plot and the pgfplotstabletypeset to align so that they are right next to each other. Is this possible at all? Please help me.
This is what it looks like at the moment:
This is my ...
4
votes
1answer
59 views
Filling the bars in stacked bar plots with hash or dot points
I was looking for a way to fill the bars in bar plots or stacked bar plots with hashes or dots (something like the following figure).
Since it took me a long time to figure it out how to do it, I ...
4
votes
1answer
68 views
stacking negative value for ybar
I would like my ybars to be stacked the same way positively than negatively. It works for positive values but not for negative ones.
On the given example, ThirdCol should be stacked negatively. Any ...
4
votes
1answer
62 views
Two fills between functions calculated by pgfplots
This question resembles fill the area between two curves calculated by pgfplots, however I'm not able to use the stack plots solution.
I want to fill the left part of the lined area with one fill, ...
7
votes
1answer
80 views
Strange interaction between fontspec, lua and pgfplots
While trying to combine some Lua code with plots written in pgfplots something went completely wrong. I have no idea what causes the problem, as the error message is a bit opaque to me. Here is the ...
1
vote
0answers
86 views
Pgfplot figure off-center because of axis label
My figures are always off-center because the right axis is trimmed closer to the figure than the left. Do I have to manually extend the right axis by an adhoc amount every time?
...
1
vote
0answers
26 views
Changing fill option in \addplot has no effect [duplicate]
\addplot table [x=X, y=4ACH,fill=black,draw=black,bar shift=-0.5ex] {\datatable};
makes no difference to colour of bars.
change color of pgfplot bar plot has the same problem but the workaround ...
1
vote
0answers
19 views
How can I prevent a node from being cropped in an axis environment?
I would like to put labels on the left side of a y-axis, but the text gets cropped. How can I prevent this?
(Also, the entries are looking awful, so any ideas how to make it looking better are ...
5
votes
1answer
124 views
ellipse intersecting a circle
I am trying to draw an ellipse which intersects the sphere of influence, that is, the dashed circle around the moon. The ellipse needs to pass through (-170.864:.7cm) location along the v0 vector and ...
2
votes
2answers
109 views
barchart in pgfplots looks really bad
Problems:
The bar value "90" is written over a black line, almost impossible to read
The value "58" is written over an x tick, hard to ready
Bar spacing is bad. There is too much space between the ...
0
votes
0answers
27 views
Group labels in pgfplots or finding cm fonts for windows
I'd like to put a second xlabel on a grouped bar graph using TiKz but can't seem to work it out. So I have found this cm superfonts package: http://ctan.org/pkg/cm-super. Or I can download cm fonts ...
6
votes
3answers
120 views
Smooth curve through points with pgfplots
I know that one can get smooth point connections with option smooth to \addplot that takes the previous and the next point into account, but this still connects all the points.
How can I draw a ...
3
votes
1answer
84 views
Small x axis range in pgfplots
I try to plot data in pgfplots. My data file has 1001 points in a range (x axis) from 2499999500 to 2500000500, so I have steps of 1. I get the message “Package pgfplots Warning: Axis range for axis x ...
2
votes
0answers
50 views
Plot doesn't care about axis setting [closed]
I have a Pgfplot and for some reason it does not care about my y-axis settings... I have set ymax to 15 but for some reason it only goes up to ymax is 14 or something...
Can anyone explain why? And ...
2
votes
0answers
51 views
Using pgfplots and gnuplot and compiling with output-directory
I would like to use the pgfplots package along with gnuplot. However, I cannot get this to work if I compile using the -output-directory option. For example, if I have the following MWE:
...
4
votes
1answer
61 views
PGFPlots error “Dimension too large” when plotting .csv data
I did search on here for a solution and I did read the manual, but i couldn't find an answer (or at least one that I understood).
I am plotting some data in a .csv file and for some reason when the x ...
6
votes
1answer
73 views
Postprocessing pgfplotstable results using siunitx
I am trying to use the \num command from siunitx inside a table made with pgfplotstable, because I need the format given by siunitx with \sisetup{scientific-notation = true} and all the advantages of ...
2
votes
1answer
108 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 ...
1
vote
1answer
67 views
adding complexity to a hyperbolic trajectory
Jubobs generated this code from Drawing a hyperbolic trajectory.
If we draw a horizontal line that intersects the hyperbola (I really dont want to add this to the picture), we would have some angle.
...
3
votes
1answer
171 views
Drawing a hyperbolic trajectory
In Drawing the Celestial Sphere with Tikz Package, they use pspicture. Is there a way to use pspicture inside of tikz? I want to have a hyberbola pass by the Earth with a periapsis of 500km (scaled ...
7
votes
2answers
121 views
half of a hyperbola
Only top portion of half my hyperbola is coming in correctly. The other half is doing something strange:
\documentclass{article}
\usepackage{tikz, pgf}
\begin{document}
\begin{center}
...
8
votes
1answer
72 views
Setting axis line offset?
I was wondering if it was possible to easily detach the axis lines from each other.
From this piece of code,
\begin{tikzpicture}
\begin{axis}[%
xmin=-6.3, xmax=6.3,
ymin=-2.3, ...
3
votes
0answers
76 views
pgfplots — Patterns are not displaying correctly in PDF version 1.4 [closed]
I am using this method to plot a pattern in-between two curves. If I save the file as PDF version 1.5 everything looks great. Unfortunately the journal that I am submitting the paper to requires PDF ...
4
votes
1answer
93 views
Good-looking luminosity function plot
I'm trying to make a good-looking photopic luminosity function plot. So I want to make colored plot, but its colormap should depend on X values. Is it possible with pgfplots?
I'll also appreciate any ...
2
votes
1answer
45 views
Use markers as clip path
I want to plot a line, where the markers knock out a piece of the line instead of being displayed (it would be useful if there was a way to leave a bit of space around a marker, too). Drawing the ...
2
votes
1answer
117 views
How can I get the grid done correctly?
I'm trying to put the grid in my graphic, and I'm getting this problem below. The grid style must be help lines, and dashed, this I know how to do, but the problem remains in put the grid correctly.
...
3
votes
1answer
47 views
Force re-reading a data file
I have a data file from which I want to plot odd/even rows seperately, in the same axis.
But the table options seem to apply only once, when reading in the data, which only happens once per axis (i.e. ...