Questions tagged [pgfplotstable]

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

104 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
414 views

longtable with pgfplotstable - adding predefined rows and breaking manually

Based on this link pgfplotstable; longtable with caption and repeating header I wrote this MWE: \documentclass{article} \usepackage{longtable} \usepackage{booktabs} \usepackage{multirow} \usepackage{...
leonardo cesar's user avatar
4 votes
0 answers
1k views

Getting the (variable) number of columns per row with pgfplotstable?

I've already seen PGFplots and table with different number of elements in columns; but this is a slightly different question... Consider the following MWE: \documentclass{article} \usepackage{...
sdaau's user avatar
  • 16.9k
3 votes
0 answers
45 views

Numerical precision issues within PFGplotstable

I am creating a table which automatically generates outputs of various quantities of interest for compressible flow. The first column contains Mach numbers, which are used to calculate the quantities ...
aeroben's user avatar
  • 31
3 votes
0 answers
116 views

How to plot measured signals? i.e. large number of points

So far I used TikZ/PFGplots to plot small potions of (simulated) signals, drawing schemes, etc. but when it comes to actually measured signals (e.g. at 10 kHz), you easily end up with millions of ...
max's user avatar
  • 161
3 votes
0 answers
263 views

pgfplotstable - combine two columns with LaTeX formating

I'm trying to create new colMix column as two combined-columns from CSV file. Each of them may contain some (standard) LaTeX formating (included inside the CSV file). There is MWE (non-working): \...
Luboš Kejzlar's user avatar
3 votes
0 answers
392 views

Column Sums in pgfplotstable

I want to sum the numbers of the last 3 columns in mytable (see below). If all the dates in column A are different, the MWE works fine giving the proper sums (see MWE). But I wish to list Date-1 in ...
user39678's user avatar
  • 281
3 votes
0 answers
169 views

PGFPlots: BoxPlot of a statistic table with absolute frequency

Here is my problem. I have data in a statistic table with value / absolute frequency like this: \pgfplotstableread{ 1 1 2 2 3 6 4 10 5 6 6 ...
Fulvio's user avatar
  • 31
3 votes
0 answers
1k views

PGFPLOTSTABLE configuration, bold style for headers, specific row, and specific formatting from CSV

I am starting to use the package pgfplotstable as it seems to be a powerful tool and is able to do what I'd like to do. I am importing custom CSVs, and as these will change over time, I need to plot ...
Seb's user avatar
  • 131
3 votes
0 answers
1k views

Pgfplotstable multicolumn table with dec sep align and Tabularx

I would like to implement a multicolumn table with Pgfplotstable that aligns on one side the number of the columns by dec sep align and secondly aligns the whole table by Tabularx. A version without ...
Michael Stauffer's user avatar
3 votes
0 answers
751 views

Conversion of big "amount" of seconds into HH:MM:SS when plotting timeseries with pgfplots

My aim is to plot a timeseries (experimental data) using pgfplots in LaTeX (pdfLaTeX, TexLive on Mac). The data I'm using is seperated with semicolons (columnwise) and has the following structure: -- ...
albert's user avatar
  • 917
3 votes
0 answers
620 views

One tabular with column input from multiple data files with pgfplotstable

I have a question which sort of extends the page Multiple Files input to one pgfplotstable. In the answer to this question, data is read from dataB.dat and subsequently appended to the data as ...
Adriaan's user avatar
  • 3,565
3 votes
0 answers
1k views

Possible to create \pgfplotstablenew without header?

I'd like to create a (pgfplots)table from scratch, however, one without a header. So I'm trying to modify one of the examples in the pgfplotstable documentation: \documentclass{article} \usepackage{...
sdaau's user avatar
  • 16.9k
2 votes
0 answers
37 views

Change the "row index counter" at pgfplotstable

Is it possible to change the "row index counter" (locally) at pgfplotstable. Maybe as a style? As a test example: I skipped some rows in the second table. If the "row index counter&...
cis's user avatar
  • 7,185
2 votes
0 answers
86 views

Wrong pgfplots linear regression computing

I'm try to plot the following data: \pgfplotstableread[col sep=semicolon]{ record;value 2004;48 2009;34 2010;32 2016;22 2020;21 }\valuetotest by \pgfkeys{ /pgf/number format/.cd, set decimal ...
Colo's user avatar
  • 601
2 votes
0 answers
146 views

pgfplotstable: How to highlight row and column of a cell with special content

If I say string replace={x}{\cellcolor{pink}x} a cell with content 'x' gets highlighted. But how to highlight the row and the column of 'x' too? \documentclass[]{article} \usepackage{pgfplotstable} \...
cis's user avatar
  • 7,185
2 votes
0 answers
73 views

pgfplotstable: Problem with 'create on use', getprevrow (Table similar to "Horner's scheme")

I wrote the explaining text into the image, I hope it is easier to explain in this way: Picture without stuff: \documentclass[a4paper]{article} \usepackage{pgfplotstable} \pgfplotsset{compat=1.16} \...
cis's user avatar
  • 7,185
2 votes
0 answers
74 views

Is there an alternative package for loading the CSV, while still using pgfplotstables/pfgplots to display it?

There are several of issues with the CSV parser that is included in PGFPlots. This isn't surprising, writing a CSV parser is well-known to be unexpectedly difficult. A big one for me being that it ...
Frames Catherine White's user avatar
2 votes
0 answers
267 views

Round to Significant Figures Not Decimal Places with PgfPlots

I want to render numbers using PgfPlotsTable, rounded to a specific precision using Significant Figures rather than Decimal Places, see https://www.wikiwand.com/en/Significant_figures#/...
Glen Fletcher's user avatar
2 votes
0 answers
251 views

pgfplotstable with lines and colourmap

I am trying super hard to make a table with heatmaps, multirows, columns and some separating lines in latex. The code for this table is: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{...
Joanna's user avatar
  • 21
2 votes
0 answers
811 views

Show x tick label for every second tick using xticklabels from table

I am adding x tick labels to my plot, using xtick=data and xticklabels from table. How can I skip every second tick mark? My code is below. \documentclass[border=10pt]{standalone} \usepackage{tikz} ...
lala_12's user avatar
  • 356
2 votes
0 answers
142 views

Error with siunitx/translator and pgfcalendar

I was trying to produce a table with pgfplotstable and the date type style in one column. For this the package pgfcalendar is necessary. If I include also the siunitx package a strange error occurs. ...
Schewerle's user avatar
  • 367
2 votes
0 answers
220 views

Mark local maximum and calculate gradient in PGFplots

I'm using data from a tensometer to generate a stress-strain curve, but I want to find the yield point and the gradient between the start of testing and that point to calculate Young's modulus. Can ...
Robbie's user avatar
  • 2,813
2 votes
0 answers
488 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 ...
user2653422's user avatar
  • 2,303
2 votes
0 answers
536 views

pgfplotstable: typset csv with 2 or more header lines (eg. name, unit, comment)

I am exporting from Origin and get a Data.csv like this: Short_Name1; Short_Name2 Long_Name1; Long_Name2 Unit1; Unit2 Comment1; Comment2 1,1; 2,0 3,5; 4,3 When I try to ...
Matthias's user avatar
2 votes
0 answers
1k views

problems inserting commas in tables - pgfplotstable

I have a table I want to import into an appendix. The last column is a source key, and there are several sources in each cell I want to list as a, b, c; d, f, m; etc. However, the problem is the are ...
Melissa's user avatar
  • 95
2 votes
0 answers
1k views

PGFPlotstable with data from csv file : character µ and _ in column header

I have searched for a long time on the internet (here and other LaTeX resources on the web) but I could not find the answer to my (simple) question: how could I draw a table with Pgfplots, with data ...
Sebastien's user avatar
2 votes
0 answers
299 views

Barchart, Boxplot Data Table PGF Math Errors from mixed format inline data

My code for a horizontal bar chart with a summarizing boxplot is coming together, but I still have a nagging PGF Math problem if I try to plot the boxplot values, which are commented out at the bottom ...
user50506's user avatar
  • 628
1 vote
0 answers
30 views

pgfplotstable: How to use \pgfplotstablevertcat in a loop

I know there are other options too. But I was wondering: How can I create one-row tables in a loop and then add them to the previous total table? In the following attempt, only the current loop value ...
cis's user avatar
  • 7,185
1 vote
0 answers
44 views

Any way to swap rows and columns in pgfplotstable?

I've got a simple table that's made by pgfplotstable by pulling from a fairly large csv file. The table is vertical like the data provided but since it's only two columns, and several rows I'd rather ...
Shanny's user avatar
  • 21
1 vote
0 answers
73 views

How to add a footnote inside a pgfplotstable from a csv?

I am writing CSV files with Python 3 and inserting the CSV in a .tex file with pgfplotstable. I want to have footnotes for some of the cells (*, **, †, etc.) I can easily replace them in my Python ...
Louis-Amand's user avatar
1 vote
1 answer
79 views

pgfplotstabletypeset in a custom command for CSV parsing

I created a dynamic table in order to cast inline CSV data easily to a table and want to use it now as a custom command, in order to make the table command easy to use for my colleagues. This first ...
Sebastian Haas's user avatar
1 vote
1 answer
99 views

Place the data of the periodic table excerpt correctly in a TikZ matrix

I have a small excerpt from a periodic table. Now I want to place the symbols (2nd column) correctly in a TikZ matrix with 8 rows and 18 columns; where unoccupied cells should remain empty. For what I ...
cis's user avatar
  • 7,185
1 vote
0 answers
64 views

LaTeX commands in pgfplots legend entries from csv import

I am trying to import data from a csv file, where legend entries are automatically taken from the csv file's header. Those legend entries contain LaTeX math code. % used PGFPlots v1.16 \documentclass[...
Uroc327's user avatar
  • 165
1 vote
0 answers
215 views

Figures generated with pgfplots and includestandalone do not have the same size, even though the scaling is equal

In my project I have several graphs/figures displaying data. The requirements I got are to use the same font in the text of the main document and in all figures. Therefore, I decided to use pgfplots/...
arc_lupus's user avatar
  • 1,731
1 vote
1 answer
97 views

PGFplotstable: Skip rows containing nan

Forgive me, but I have not been able to find an answer. I have some text-files organized like the one below, which I typeset into a table using pgfplotstable \documentclass[border=1pt]{standalone} \...
Kristianfkt's user avatar
1 vote
0 answers
927 views

How to add line numbers to an existing PDF file?

I am trying to add line numbers to a PDF of a thousand pages. I only have the PDF and don't have the source text that was used to generate the PDF. As part of my research, I have reviewed the ...
tommydog35's user avatar
1 vote
0 answers
61 views

pgflplots/pgfplotstable input parse error with create col/linear regression

This is similar to pgfplots input parse error with expression, except my problem is not with expr but with create col/linear regression. Here's a MNWE: \documentclass{article} \usepackage{pgfplots} \...
Jason Gross's user avatar
  • 2,075
1 vote
0 answers
189 views

PGFPlots surface plot from table with one column for each y value

I have a data table like this: Time,Data1,Data2,Data3,Data4,Data5 0,0,0,0,0,0 0.01001001001001,-4.30013814154693e-05,-3.65528966153454e-05,-5.39214806453237e-05,-5.27331238958749e-05,-4....
Crazymoomin's user avatar
1 vote
0 answers
33 views

Using pgfplotstable to convert a .csv to a table but doesn't like the ∞ symbol

Here's my .tex code: \documentclass{article} \usepackage{amsmath} % allows use of numberless equation* package \usepackage{fullpage} % uses more of the page \usepackage{graphicx} % allows use of ...
Ben's user avatar
  • 11
1 vote
0 answers
30 views

pgfplotstable: Hide special values as style

To hide cells with '-1' I use a method every column/.code={ \ifnum\pgfplotstablecol>0 \pgfkeysalso{postproc cell content/.style={ @cell content={ \fpcompareTF{##1<0}{}{\pgfmathprintnumber[]{##1}...
cis's user avatar
  • 7,185
1 vote
0 answers
126 views

pgfplotstable: Adding a style in one row

I want to add a \cdot in each cell in the row 'Multiplier'. · Note that the main-code could have more columns! · Note that the values 'results' are calculated in the main code; but not in this MWE. ...
cis's user avatar
  • 7,185
1 vote
1 answer
34 views

\newwrite, pgfplotstable: Put generated rows together to one pgfplotstable (follow-up question)

I get a Code from @egreg that create rows in outwritten textfiles in a loop. I need to put all these rows together in 1 pgfplotstable, that means something like \ifnum\the\filecount=1 \...
cis's user avatar
  • 7,185
1 vote
1 answer
160 views

How to read-in files (with underscores) using `pgfplotstabletypeset` in a loop?

I have a question on the use of the pgfplotstabletypeset. I use it to read in tables with underscores and there I need to parse the strings in each cell (see code). This works fine, if directly used ...
Tancredi C.'s user avatar
1 vote
0 answers
91 views

Select non consecutive rows for addplot in tikz

I have a list of points in a table out of which I would like to plot several closed loop paths. For each \addplot I would like to give an index list for this particular path. The trouble is that ...
user172294's user avatar
1 vote
0 answers
52 views

How to create pgfplotstable from the intersection of two pgfplots?

I am trying to find the intersection 2 plots in pgfplots and extract the x-values onto a pgfplotstable? Here is a code where Symm and Load plots intersect and I could to get the x-value of ...
Raja's user avatar
  • 450
1 vote
0 answers
76 views

How to Calculate x-Position in a pgfplots with Information from a Table

Situation and Problem This question is a follow-up and based on marmots answers to this question and this. The general situation is described there. Now I want to simplify input. More specifically I ...
BadAtLaTeXProgramming's user avatar
1 vote
0 answers
182 views

Rainbow CSV\TSV Style with pgfplotstable

I am trying to generate something similar to this Rainbow Style. I would like to use the listings package for that (easy import through \lstinputlisting). Any Ideas? Or are there other solutions for ...
BananaBowser's user avatar
1 vote
0 answers
259 views

pgfplotstable: How to get 'column name' with 'pgfkeysgetvalue'

In a table \pgfplotstableread[header=true]{ A B 0 0 -1 1 3 2 }\test I want to set the entries of the head row A an B as column names. I think, this can be done with assign column name/....
cis's user avatar
  • 7,185
1 vote
0 answers
97 views

How do I make vertical text, and vertical lines in a table (with pgfplotstable)?

I would like to format this table so that "presence of trait i" is printed vertically alongside a vertical rule left of the + and - sign, mimicking the horizontal "presence of trait j" in the ...
Stendert's user avatar
1 vote
0 answers
170 views

pgfplotstable: parsing string data when "S" is present

the following table works: \documentclass[border=5mm]{standalone} \usepackage{siunitx} \usepackage{pgfplotstable} \usepackage{booktabs} \begin{document} \pgfplotstabletypeset[ columns/0/....
Zarko's user avatar
  • 283k