{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

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\ ...
3
votes
1answer
57 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 ...
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
16 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
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 ...
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 ...
4
votes
1answer
75 views

newenvironment using pgfplotstable

I want to have a newenvironment body as an inline input argument for pgfplotstable. Is it possible to do this without using braces in the body itself? \documentclass{article} ...
2
votes
1answer
36 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 ...
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 ...
1
vote
2answers
76 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
53 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
60 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 ...
2
votes
2answers
93 views

Search path for pgfplotstable

I'm creating some tables reading values from .dat files. All these files are placed in a subfolder. Is there a way to tell \pgfplotstabletypeset the search path to that subfolder? Something similar to ...
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
41 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 ...
3
votes
1answer
151 views

Percentage character in header of pgfplotstable

I am trying to create a table with data from a .xslx file exported to .csv with pgfplotstable but I have trouble with the percentage sign. One of the columns in the header includes the percentage ...
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 ...
2
votes
2answers
66 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
101 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
1answer
26 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
154 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
39 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: ...
4
votes
1answer
413 views

PGFPlot two \pgfplotstableregressiona

Hi i have two plot with two linear regression but the legend show the same equation for the straight line... I haven't made a MWE because I thought it isn't needed---Is it? \pgfplotstableread{ X Y 97 ...
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" ...
7
votes
1answer
147 views

Add rows for sum/mean/std at end of pgfplotstable

How do you add a one or multiple rows at the bottom of a table in pgfplotstable that is a summation/average/variance or other function of the above data in that particular column? How can this be ...
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
28 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
11 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
45 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
27 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
35 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 ...
6
votes
1answer
131 views

Stacked bar plot, percentage of entire bar and the total value

I have made quite a lot of progress of where I want to be, but there is still some fixes to be made. What I have right now as an image: However, as we can see, the percentage are all relative to ...
6
votes
1answer
177 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 ...
2
votes
1answer
43 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} ...
6
votes
1answer
237 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 ...
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
77 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 ...
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 ...