{pgfplotstable} is a package that can read, parse, modify or generate tables. Data is provided via either external files or inline code. It also serves as the data handler of the graphics package {pgfplots}.

learn more… | top users | synonyms

2
votes
1answer
23 views

How to modify the layout of a longtable using pgfplotstable

In order to prepare a long series of industrial reports containing complicated long tables, I am combining samples of code I have found on the site, and this looks promising. In my field, cells need ...
0
votes
1answer
7 views

multicolumn doesn't count columns property in pgfplotstable

Consider the following MWE where I would expect the multicolumn to span the number of columns in the pgfplotstable/longtable combination. \multicolumn{\pgfplotstablecols}{r}{{\small\tablename\ ...
1
vote
1answer
37 views

Reading xticklabels from a csv

I need to display the labels in AgentTypesS column in my barchart. This is an excerpt from my .csv file (Yes, it is an uneven file) AgentTypesL, OriginalL, MergedL, DifferenceL, ...
0
votes
2answers
18 views

pgfplotstable and longtable table counter problem/caption positioning [duplicate]

Consider the following MWE which uses pgfplotstable and longtable to output some csv file content. The table counter are incrementet twice for each table added. Why? ...
1
vote
1answer
25 views

Is possible automatic refresh filecontents* at each compilation of pgfplotstable?

Recently I observe, that at compiling of some tyble set width pgfplotstable generate .csv file, which is not changed at later changes in its source (in document preamble) compilation. Consequently I ...
3
votes
1answer
60 views

pfgplotstable and siunitx, unit column from .csv file

I have some data in a .csv file that I would like to typeset with a combination of pgfplotstable and siunitx. Consider the following (not so extremely minimal) MWE who throws the error Undefined ...
2
votes
1answer
46 views

How to have unconnected points on a plot?

I'm trying to create a graph which has all of the datapoints from an inline table plotted, without a line connecting them, but still having the points on the graph. The issue with the MWE is the line ...
2
votes
1answer
40 views

Customizing first column for each row in pgfplotstable

I have a confusion matrix where the first column (or in this case the second column) has the same labels as the first row (or in this case the second row). The problem I have is that these labels are ...
2
votes
0answers
59 views

Why the `.tex` file is running indefinitely in PdfLaTeX?

I am using the following code to plot a set of graphs from the experimental data given in book1.txt. This .txt file is also kept in the same folder along with .tex. My book1.txt file is A B ...
1
vote
2answers
80 views

How to plot graphs in tikz using large number of data points?

I have my experimental data in a tabular form in word document format. I want to plot the data points using tikz. How to export the data points from data.doc to tikz plot? These are the data points. I ...
2
votes
1answer
54 views

Place multiple external images in a PGFPlots axis from a PGFPlotsTable

I am trying to create an environment in which I can place several georeferenced images into a PGFPlots axis. I have working code that reads in the specified image, reads in the world file (a text ...
3
votes
1answer
81 views

How to approach the drawing of this sort of scatter plot?

I'm trying to plot a data set that contains the results of some benchmarks across a number of tools on a set of input files. The problem is that there are more than 3000 test cases and I need to ...
3
votes
1answer
48 views

Several files input in one pgfplotstable

How can I get from this dataA.dat a b c 1 2 3 4 5 6 7 8 9 and this dataB.dat A B C 1.1 2.1 3.1 4.1 5.1 6.1 7.1 8.1 9.1 (as shown in the MWE) to this: a b c 1 2 3 4 5 ...
3
votes
1answer
72 views

table transpose

Trying to transpose the table like in my MWE. The result is quit nice, but contains first extra row, I'd like to exclude it. Read pgf manual, used skip rows between index={}{}, but without effect. ...
1
vote
0answers
25 views

Filter rows and create separate (sub)tables using pgfplotstable

I have following CSV file: Type Desc A B A Site-A 1 2 A Site-A 2 3 A Site-B 1 2 A Site-C 2 3 B Site-A 1 2 B Site-A 2 3 B Site-B 1 ...
2
votes
0answers
26 views

How to wrap header in pgfplotstable environment

I am using pgfplotstable to import .csv file to LaTeX. I successfully wrapped column texts using p{width} command in each column type which also prevented me from centering the columns and which ...
0
votes
0answers
34 views

Regression on a portion of the graph with columns

Based on the MWE of this question, I want to apply the regression only to a portion of the graph as in this other question, but not just the last portion. I want to do regression on the beginning so ...
2
votes
1answer
37 views

Shuffling table rows using PGF

Does anyone know how to get table with rows randomly shuffled (using \pgfplotstabletypeset from .dat-type file)? My current code is \documentclass{article} \usepackage{filecontents,pgfplotstable} ...
1
vote
0answers
42 views

Pgfplotstable: Filter specific rows when reading from file

So far I have a file from which I read data to the macro \data (in the MWE I replaced the file with an in code table). From this table only 3 rows are selected and printed. What I would like to ...
2
votes
2answers
70 views

Making row bold and keeping other formatting in pgfplotstable

I have a table where the last row needs to be bold. Currently, I can make it bold by following this question. However, when I make it bold, I lose all my number formatting. Here are the 2 images: ...
8
votes
2answers
66 views

Applying and doing math on two functions read from a file using pgf

I'm trying to read two functions of x from a file, and then get the result of f(8) / g(8) using pgfmathparse. Here is a minimal (not) working example: \begin{filecontents}{data.dat} f(x) g(x) x ...
3
votes
1answer
54 views

Plot hex numbers in pgfplot

I want to draw a graph from external text file which contains hex numbers (representing integers) like 0x8210 in 4 columns. It seems pgfplot does not automatically recognize the hex numbers. I know ...
5
votes
1answer
103 views

Linear regression - trend line with pgfplots 2

Happy new year. I have fitted a trend line of a population-year data with pgfplots. But I get wrong values of slope m and intercept b. By LibreOffice Calc, I got the values: f(x) = 4,478.87 x – ...
4
votes
2answers
130 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 ...
4
votes
1answer
27 views

Errors with lualatex, siunitx and pgfplotstable replacing emdash

I'm referring to this answer from @Jake to replace the string --- of an input csv to \textemdash in a pgfplotstable table with the S column of siunitx. The provided solution works fine when pdflatex ...
5
votes
1answer
158 views

colour each x co-ordinate with a different colour in a bar plot in pgfplot

I want to cycle colours for each x co-ordinate in a bar plot. Is it possible? For instance, in this example I want each metric to appear in a different colour. This question Colors and legend in ...
2
votes
1answer
40 views

pgfplot - groupplot print x label only once in the last row

In the below group plot, the xvalues are common for all the subplots. I want the x labels to be displayed only on the last row of the group plots. \documentclass{article} \usepackage{tikz} ...
4
votes
1answer
49 views

Cannot import data from csv file with pgfplots

I need to import some data from a csv file, but I get Package pgfplots Error: Table 'Data1.csv' appears to have too many columns in. Other posts related to this are not helpful. My code is here: ...
1
vote
1answer
36 views

pgfplots line cap fragments

On one specific set of data I get really strange fragments plotted in a 3D axis. The undesired fragments are "star-like" strokes, as can be seen in: A mwe is: \documentclass{standalone} ...
2
votes
3answers
49 views

How to remove quotes from data for pgfplots

I have a lot of .csv files that I need to plot. However, the numeric data comes, sometimes, among quotes or just as numbers (without the quotes). For example a,b,c,d "1","4","5","1" "2","3","1","5" ...
1
vote
0answers
18 views

Insert an \hline once, after the nth row in pgfplotstable

In the pgfplotstable documents, there is an example where you can input \hlines in every couple rows: \pgfplotstabletypeset[ every nth row={3}{before row=\hline}, % insert hline every 3 rows ...
1
vote
0answers
29 views

Highlight extreme values and show dashes for empty values in pgfplotstable

I am using @jake's solution to highlight extreme values with pgfplotstable. doc.tex \documentclass[]{article} \input{table.tex} % table.tex includes Jake's code \begin{document} \begin{table}[ht] ...
2
votes
1answer
12 views

pgfplot table cannot compile 2

For some reason, I cannot compile my pgfplot table. Can you tell me what I am doing wrong? Thanks. Here is my code. \documentclass{book} \usepackage{pgfplotstable} \usepackage{longtable} ...
1
vote
1answer
46 views

Problem with centering header in pgfplots table

I followed some of the posts that deals with centering of the headers in the pgfplots table, line that found here, however, I still cannot seem to be able to center the headers over the number in the ...
3
votes
1answer
28 views

Header skewed in pgfplot table

Can you help me fix my skewed header in this pgfplot. For some reason, the 'k' and 'z' headers are merged. Thanks. Here is my code: \documentclass{book} \usepackage{pgfplotstable} ...
2
votes
1answer
58 views

Pgfplotstable: display numbers exact as written in file

My file is U(V) I(A) I/U 0.00 0.000 0 0.31 0.020 0.065 1.15 0.075 0.065 1.82 0.120 0.0659 2.73 0.178 0.0652 3.42 0.224 0.0655 5.08 0.333 0.0656 6.24 ...
3
votes
1answer
36 views

bug in pgfplots+subcaption?

I'm using pgfplots (with the excellent matlab2tikz), pgfplotstable and subcaptionbox together, and for some inexplicable reason (at least to me), the command \pgfplotsforeachungrouped seems to break ...
2
votes
1answer
58 views

pgfplotstable with alphabetic characters input from csv

I'm reproducing an example from this tutorial. If the input from the csv file is numeric, it works well. However, if one of the columns of the csv contains alphabetic characters, it returns an error ...
2
votes
1answer
44 views

Help with centering Table header in pgfplotstable

I would like some guidance to get my table's header to look like this: Here is my code: \documentclass{book} \usepackage{pgfplotstable} \usepackage{longtable} \usepackage{booktabs} ...
4
votes
1answer
38 views

“Squeeze” tabulated data in pgfplotstable to fit in textwidth

is it possible to "squeeze" the text between the following columns so that the table can fit in the textwidth of the page (i.e. for the right end of the table to fall in line with the header line)? ...
0
votes
1answer
36 views

Multicolumn in pgfplotstable header

This code is building from the post found here by a solution from Harish Kumar. I am trying to have some of the headers appear in a multicolumn. From my code, I wanted to get the 7th-10th column ...
1
vote
1answer
80 views

“Continued on next page” in longtable environment part 2

I am attempting to get the effect of the table to show "continued on next page" and "concluded" like that shown here. I am calling a longtable saved in the data.dat file (given below). Can you ...
6
votes
1answer
178 views

PGFPlotsTable formatting problems

I am having a real hard time trying to format a simple numeric table with PGFPlotsTable. I have tried tons of combinations of TeX.SO solutions, I just cannot get any working result. The table looks ...
0
votes
1answer
27 views

pgfplot table cannot compile

I am working of the post found here that talks about importing a .dat file into latex and converting it into a table. The table that I have is a longtable. I am having a problem getting my code to ...
0
votes
1answer
55 views

PgfPlots Histogram: wrong density on y-Axis

I want to make a pgfplots histogram to visualize the jitter of a 260 MHz clock signal. I want to use the probability density on the y-Axis. Yet, when I try this, the y-Axis does not display the ...
3
votes
1answer
45 views

Why does conditional formatting and dec sep align render values twice?

I want to use dec sep align and conditional formatting at the same time. Separately I managed to make them work, but together they double every value in the column. \documentclass[]{article} ...
3
votes
1answer
53 views

Problem defining a string column with PGFPlotsTable

First, I am fresh new with the PGFPlotTable package! I have the following CSV file that I would like to plot in a LaTeX table: ...
3
votes
1answer
107 views

PGF Math Error: Could not parse input as a floating point number

I am trying to print a table from .dat file. In the file there are some columns that are not numbers but words and I think this is the reason why I have this error. How can I fix it? ...
1
vote
1answer
73 views

Setting “col sep = semicolon”

I obtain this table: using this code: \pgfplotstabletypeset[ col sep = comma, string replace*={_}{\textsubscript}, every head row/.style={before row=\toprule,after row=\midrule}, every last ...
6
votes
1answer
238 views

Place node at local maxima or minima of graph

Though there is an upvoted answer - the question is NOT answered. It turned out, that without smooth the resulting figure gets produced and looks alright, but the error remains. How to get rid of ...