Skip to main content

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

109 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
186 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
  • 171
4 votes
0 answers
421 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
2k 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
  • 17.1k
3 votes
0 answers
52 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
296 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
424 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
  • 391
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
783 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
  • 1,017
3 votes
0 answers
626 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,725
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
  • 17.1k
2 votes
0 answers
296 views

Best way to create a table for data in R?

Main question: What is the best way to create a table in a LaTeX document for data from R? At first glance, two possibilities seem conceivable: Let R create the table and "paste" it into ...
user1's user avatar
  • 2,226
2 votes
0 answers
47 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
  • 8,912
2 votes
0 answers
107 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
165 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
  • 8,912
2 votes
0 answers
75 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
  • 8,912
2 votes
0 answers
77 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
283 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
305 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
1k 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
145 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
228 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,913
2 votes
0 answers
498 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,333
2 votes
0 answers
542 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
302 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
  • 638
1 vote
0 answers
25 views

Formatting Specific Rows/Columns/Entries in pgfplotstable

I have an external program to compute several tables that I will then place in TeX (separately) using pgfplotstable. The table will have possibly a dozen columns and hundreds of rows with various ...
mathematics2x2life's user avatar
1 vote
0 answers
15 views

saving computed values in a file or table from a foreach loop in a regression plot

I want to save the regression slopes of those data sets for a further table. I manage to add rows in a initial table in the foreach loop but adding the plots doesn't work anymore.... Thanks in advance ...
laurent's user avatar
  • 41
1 vote
0 answers
80 views

PGFPlots: Calculating and adding averages to scatter plot

In my source CSV file there is one column per data series, so I use \foreach to iterate over all of them and add them to the scatter plot. I also want to add a TikZ node that marks and states the ...
TexMax's user avatar
  • 113
1 vote
0 answers
35 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
  • 8,912
1 vote
0 answers
61 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
118 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
99 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
134 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
  • 8,912
1 vote
0 answers
74 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
288 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,781
1 vote
1 answer
139 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
3k 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
70 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,169
1 vote
0 answers
219 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
1 answer
74 views

How to skip some particular segments of line graphs in pgfplots (pgfplotstable)

Here is my MWE: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{patterns} \usepackage{standalone} \usepackage{pgfplots} \usepackage{pgfplotstable} \pgfplotsset{compat=1.11, width=8cm, ...
Seeker's user avatar
  • 129
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
32 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
  • 8,912
1 vote
0 answers
175 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
  • 8,912
1 vote
1 answer
39 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
  • 8,912
1 vote
1 answer
214 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
51 views

Issue with tabularx and pgfplotstable when specifying column type

I am having trouble using a tabularx environment together with the pgfplotstable package. As soon as I specify a column type in tabularx, I recieve a series of errors. When no column type is specified ...
ikke89's user avatar
  • 11
1 vote
0 answers
100 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
56 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