{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.

learn more… | top users | synonyms

1
vote
1answer
168 views

How to use specific x-values of a CSV-file for drawing a x-y-plot? [closed]

I have a question concerning pgfplots. I have a CSV-file with x-y pairs. The CSV-file is very large (>10k entries). I want to plot now x vs y, but only at some specified x-coordinates. In other ...
1
vote
0answers
166 views

Shade background in pgfplots [closed]

I am using pgfplots package. I tried to use shade axis background. It is working in the .dvi output... But I don't see the shade when I convert it into pdf. Can anybody tell me the reason? I use ...
1
vote
0answers
52 views

multiple labels in pgf plots [closed]

I have a box plot with 8 entries. Now I'd like to group them a little. The first four belong to Test1 and the last four to Test2. What I'd like is to Have two xlabels one with 2 ticks (Test 1 ; Test ...
1
vote
0answers
259 views

Free space in bar-chart with empty entries

I would like to plot some data set with the ybar option of pgfplot. But not all entries are nonzero. The zero entries waste space between the bars and when the plot gets crowed it is not clear anymore ...
1
vote
0answers
52 views

How to turn off the axis in tikz plot? [duplicate]

Anyone knows how to let the axis disappear from my plot. \begin{tikzpicture} \begin{axis}[colorbar] \addplot3 [surf,faceted color=blue, samples=15, domain=0:1,y ...
1
vote
0answers
291 views

pgfplots: Plotting one data set with label and the other without label [closed]

I am trying to generate a plot using two data series and have the labels just on one of the series, but not the other. In the following example I would like to see the labels on first \addplot, but ...
1
vote
1answer
210 views

Add labels to y ticks in bar chart [duplicate]

I'm just starting to mess with pgfplots and just had a quick question in formatting bar charts. Specifically, I was trying to add labels to each of my y ticks and i couldn't figure it out. ...
1
vote
0answers
519 views

Plotting a histogram from a dat file using pgfplot [closed]

I want to create a histogram from a dat file with two columns, error and frequency. It also has a large amount of bins, 501. I have followed instructions provided elsewhere on this site but the data ...
1
vote
0answers
143 views

A workaround for visualization depends on and ybar stacked

Are there any workarounds for the bug? The "visualization depends on" function causes an error with stacked plots. With "ybar stacked", the minimal example generates the error message ...
1
vote
0answers
98 views

Issue with PGFPlots text [closed]

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} ...
1
vote
0answers
83 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 ...
1
vote
0answers
29 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
71 views

How can I prevent a node from being cropped in an axis environment? [closed]

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 ...
1
vote
0answers
258 views

Undefined control sequence. \pgfplots@already@computed@legend@node [closed]

I got following error in my computer only. Undefined control sequence. \pgfplots@already@computed@legend@node ..._{\text ...
1
vote
0answers
101 views

Import external eps into pgfplot [closed]

I have some flow image files in .eps format which I would like to import in pgfplots. What is the practical way to do so?
1
vote
0answers
280 views

standalone pgfplot with extra include in subdirectory -> no output [closed]

I am trying to generate a pgfplot with data in a textfile as a standalone document. I am using the 1.2 version of standalone from https://bitbucket.org/martin_scharrer/standalone/downloads because it ...
1
vote
0answers
42 views

In pgfplots, font=\small throws undefined control sequence [duplicate]

I would like to reduce the label font size in a pgfplot. When I do x tick label style={rotate=90, anchor=east}, the file compiles, when I do x tick label style={font=\small,rotate=90, anchor=east}, ...
1
vote
0answers
266 views

change color of nodes in pgfplots bar plot [closed]

I have a bar plot which print the number next to the bar. The text is however not very well readable due to the color applied to it. Therefore I would like to know how to modify its style. ...
1
vote
0answers
177 views

How to bring beauty to this pgfplot? [closed]

We are making a plot as follows: \documentclass{standalone} \usepackage{pgfplots} \usetikzlibrary{calc,shadings} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \def\xmin{0} ...
1
vote
0answers
212 views

scaled y ticks=false don´t work together with loglogaxis? [closed]

I´ll like to remove the multiplier on the y axis. My wish is to get somethings like, 0.001, not 1.10^-3. Can somebody help me please ...
1
vote
0answers
441 views

3D surface in pgfplots with given data [closed]

I am trying to make a 3D surface in pgfplots with input data. I am not able to get the expected graph. I would highly appreciate if you could point out to me what I am missing. ...
1
vote
0answers
56 views

fix position legend in pgfplot [duplicate]

Possible Duplicate: Put legend (pgfplots) below the plot I'm trying to set correctly the right position of the legend of my plot. I would have the legend just bottom right of my plot. Any ...
1
vote
0answers
937 views

Installing pgfplots package on Mac OS Lion [closed]

I was wondering if I can get help on installation of pgfplots package on Mac OS Lion for LaTeX. I have downloaded a zip file from pgfplots download link but don't really know how to install it. I also ...
1
vote
0answers
225 views

tikz foreach used for number in filename for addplot [closed]

I have quite a few tables generated which I want to plot in the same TikZ figure (using pgfplots). I am currently trying to use a foreach loop to plot them all, but it is only plotting the last ...
1
vote
0answers
53 views

PGFPlots fixed number formatting fails on small numbers [duplicate]

Possible Duplicate: How do you remove the axis multiplier? I have a problem getting fixed (as opposed to scientific) number formatting on my axes in PGFPlots. The following example: ...
1
vote
0answers
2k views

Creating .dat files and reading a .dat file in pgfplots [closed]

The first question I have, is about creatinga .dat file in Mac. How can I create a file containing columns of data with .dat format in Mac OS Lion? What I did was to create the file using TextEdit, ...
1
vote
0answers
29 views

Visualising a matrix as an image, or specifying directly values for segments rather than for vertices [duplicate]

Possible Duplicate: Using pgfplots, how do I arrange my data matrix for a surface plot so that each cell in the matrix is plotted as a square? I'm trying to use pgfplots to visualise a ...
1
vote
0answers
125 views

pgfplots: work on single points in different files

I have a file containing a lots of data: time, position (3 coordinates), velocity (3 coordinates) and energy. I want to pick only the coordinates at t=50 (50th column of the table) and calculate the ...
1
vote
0answers
51 views

pgfplots: function with a filled confidence band [duplicate]

Possible Duplicate: Is there an easy way of using line thickness as error indicator in a plot? How can I plot a function with a filled confidence band using pgfplots? I have table data in ...
1
vote
0answers
37 views

Extract x and y coordinates when using intersectionlibary [duplicate]

Possible Duplicate: Coordinates of intersections I have the following minimal plot \documentclass{standalone} \usepackage{pgfplots} \usetikzlibrary{intersections} ...
1
vote
0answers
43 views

pgfplots: How to change the alignment of one single node [duplicate]

Possible Duplicate: How to display labels on points of a tikz plot I plot a scatter plot using pgfplots and automatically label every single mark with its description. When two marks are ...
1
vote
0answers
57 views

How to split y axis in pgfplots to display differing datasets in one graph? [duplicate]

Possible Duplicate: Axis break in pgfplots I'm trying to convince pgfplots to display my measurement results. It works quite well except the fact that the datasets vary in numbers. Most of ...
1
vote
0answers
317 views

Nested axis: several concatenated axis with different ticks

I'm trying to convert a so called "dotplot" into latex. This plots are used in biology to compare sequences. Each axis represents a sequence and the coordinates of a dot are the actual X and Y ...
1
vote
0answers
2k views

! I can't find file `pgflibrarytikz*.code.tex' [closed]

I can compile the following LaTeX: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,backgrounds,plotmarks} \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing ...
1
vote
0answers
1k views

Can't plot a surf from MATLAB using pgfplots [closed]

for whatever reason I cannot come up with I am not able to plot a surf figure I have generated in MATLAB and then converted to tikz using the script available here. I am getting the following errors: ...
1
vote
0answers
160 views

Make the boundary of markers more apparent in pgfplots? [closed]

I use pgfplots to draw a black-white array resembling imshow() in MATLAB. I use the following code (from Plot a matrix of real values with TikZ/PGF like imshow in matlab ) to do it ...
1
vote
0answers
509 views

Reproducing a 3dplot example from texample.net using pgfplots: drawing angles with pgfplots in 3d [closed]

I am trying to reproduce the 3dplots example from www.texample.net using pgfplots: So far, I did not come far at all, actually. One problem is that pgfplots does not allow to work in spherical ...
1
vote
0answers
200 views

Pgfplots: How to get the data to be shown by hours instead of days? [duplicate]

Possible Duplicate: pgfplot: Datafile format for datetime field The solution to the following problem is probably very straightforward, but I've yet to find the right solution. I'm trying ...
1
vote
1answer
559 views

use the coordinates of an axis tip with pgf plot

here's a drawing I just made (the sine function are replaced by external datas) \documentclass[12pt]{article} \usepackage{pgfplots} \usepackage{tikz} ...
1
vote
0answers
460 views

pgfplotsinvokeforeach using parameter [closed]

The following code works in the minimal example but not in my document \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \pgfplotsinvokeforeach{1,2,...,10} { ...
0
votes
1answer
59 views

Combination Function with Factorial - Not correct result - Pgfplots

\begin{tikzpicture} \begin{axis}[ axis lines = left, xlabel = $Number of Elements$, ylabel = {$Combinations=\frac{(n)!}{(n-r)!(r!)}$}, ] %Axis \addplot [ domain=2:10, samples=100, color=red, ] ...
0
votes
2answers
221 views

LaTeX: plotting function, formatting axis

I've got some problems with plotting a function in a diagram with logarithmic axis: I doesnt give me any errors, but I don't see a graph. Do I need to include any other package? \begin{tikzpicture} ...
0
votes
1answer
46 views

How do I apply nodes near coords to a single bar / to a single plot?

After reading the pretty population pyramid question, I was inspired to "Tufte-ify" the graph to remove redunancy and clutter (and to become more familiar with pgfplots). I modified the code from ...
0
votes
1answer
313 views

pgfplots ybar glued to the y axis

My ybars are glued to my yaxis. How can I increase the horizontal space between the axis and the first bar, making them more condensed? I already tried setting x = 5cm for instance, but I just want ...
0
votes
1answer
659 views

tikz pgfplots forget plot

I'm having problems finding how to use forget plot in tikz. I need only 2 legendentries like this: but get a massive long list of every object in the graph. This post addresses the problem but seems ...
0
votes
1answer
143 views

Align right in table if no expression

I am using pgfplotstabletypset to read in a table -- I want all cells in the first column with the expression Factor in them to be aligned to the left and bolded, and I want all cells without that ...
0
votes
1answer
720 views

xlog scale with pgfplots for random x-values

in the code below, two things should be modified: xlabels and xgrid should appear for x=10^-0.1, x=10^0 and x=10^0.1 only the grid along the x-axis should reflect the logarithmic scale (ie, not ...
0
votes
1answer
63 views

Colorbar for pgfplots contour plot

I have to draw a contour plot of a large dataset, so I use lualatex as compiler. This example also works with normal latex, i.e. latex+dvips+ps2pdf. It works fine in latex but for the large amount of ...
0
votes
1answer
345 views

Dimension too large from matlab2tikz, and aligning graph axis

I have a MATLAB generated plot that looks as follows: Generated with this code: plot(fitGoodnessNRMSE,'b','LineWidth',1); axis([1 511 0.5 1]); ylabel('Normalized RMS error'); xlabel('q (um^-1)'); ...
0
votes
1answer
191 views

Import selected rows without header in pgfplots

Import of selected rows of a data set (without header line) The import should make use of the column numbers instead of row headers. The pgfplots' manual presents the possibility to use the command ...