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}.
1,179 questions
3
votes
1
answer
65
views
Why makecell and pgfplotstable cobination works when is used old version of `siunitx` ([=v2]) works but with new version ([=v3]) not?
For collecting of some measured data I use the following MWE:
\documentclass[12pt]{article}
\usepackage[margin=20mm]{geometry}
\usepackage{booktabs, makecell, longtable}
\usepackage{siunitx}[=v2] % ...
0
votes
0
answers
68
views
How do I prevent "see-through" when overlaying a surf plot with a point cloud?
I am trying to create a surf plot with an additional point cloud on top. The data for both is saved in two different tables, which are then read and plottet into the same axis environment. Currently I ...
3
votes
2
answers
65
views
pgfplotstable interprets datum as number
I'm trying to display a table from a .csv in LaTeX with the pgfplotstable package. For some reason it tries to interpret a datum as number. In my code I have:
\documentclass[a4paper,12pt]{article}
\...
0
votes
0
answers
80
views
pgfplotstabletypset from csv file containing mixed numbers and strings
Updated Code:
I've tried very hard to follow the example of Read table from file with mixed strings and numbers , but I struggle a lot with getting my desired output.
I basically have a mixture of ...
1
vote
1
answer
105
views
Error combining pgfplotstable and longtable in Latex
In Latex, I am using pgfplotstable and longtable to tabulate values from a csv file containing comma-separated values. As seen below, each row contains 8 values separated by commas in the csv file, ...
3
votes
1
answer
93
views
How to colour barplot according to groups in table
I am trying to make a barplot, but fill according to the Type of the sample. Here is my MWE:
Currently, this displays all the bars with red. I want the Animal samples in red and the Plant samples in ...
3
votes
2
answers
116
views
Expansion of \pgfplotsretval in node contents inside foreach loop
I want a symbol written above each coordinate, which is taken from a table with a "label" column.
At first I wanted to just use \node[above] at (axis cs:\x, \y){\Label} but this causes a not ...
1
vote
0
answers
113
views
How to plot a bar graph of the averages of columns in a CSV file?
I feel like I'm missing something obvious here. I have a CSV file with several columns, each of which has several rows. Each row is a numerical value from 1 to 5. I want to plot a horizontal bar graph ...
0
votes
1
answer
93
views
PGFPlots custom grouped bar
I'm trying to do a mish-mash between the two examples shown below where I'll have a single graph with x-axis of 5 plots each subdivided into four of the min/max/avg vertical lines as in the second.
...
2
votes
3
answers
170
views
pgfplotstable: font color of a row
I want to create a pgfplotstable with a list of x and y coordinates. Some rows should have a font color.
Here is my actual code:
\documentclass[10pt,aspectratio=169]{beamer}
\usepackage[utf8]{...
0
votes
1
answer
147
views
pgfplots speed up compilation (filtered rows)
I have a csv file with approx 2000 rows and filter 100 rows of the data. However, the compilation time is already approx five seconds. When we filter rows (see below) are there some pertinent settings ...
1
vote
0
answers
47
views
Please advise how to have the pgfplotstable longtable print the headers automatically on both the first and following pages
As can be seen in the following MWE example, the headers are only printed on the following pages, not the first page. I can manually add headers by removing the comments in the pgfplotstabletypeset ...
1
vote
1
answer
70
views
Plot constant x and y lines from data from a table
I want to extract values from a table and plot a constant x line and a constant y line given the values. I've managed to do that with the y value but for some reason I get an error for the x line.
\...
1
vote
1
answer
56
views
Group rows within a \pgfplotstable environment by changing the line widths of cell borders
I would like to group rows within my \pgfplotstable environment. In this context, a group is defined to have the same content in column "Type".
Let's say, I have a sorted list like this:
\...
0
votes
1
answer
59
views
Tikz heatmap, cannot put float for the rest of a line?
my issue is the following : I want to create a heatmap (for now it's only black, I'll take care of the colors after) but I cannot enter a float on the rest of a specific line even though I did before. ...
2
votes
1
answer
82
views
Depending on cell content, draw a TikZ \pic in a PgfplotsTable environment
I would like to draw a TikZ \pic within a 'PgfplotsTable' cell ("Icon") depending on the cell content of another cell ("Component").
To make it easy, the content of the "...
0
votes
0
answers
43
views
Check if input .csv is valid before using \pgfplotstableread
I use pgfplotstable to read in external .csv data and print them in a formatted (MWE is unformatted) way.
The issue is, that the input .csv is not completely under my control. This means, it could be, ...
0
votes
1
answer
99
views
Why is \pgfkeyssetvalue not working within a \foreach environment?
I want to understand why \pgfkeyssetvalue{/pgfplots/table/@cell content}{\cellcolor{lightgray}#1} is working outside of a \foreach loop, but not within.
In my MWE, I prepared both scenarios. You just ...
0
votes
1
answer
67
views
Displaying table content within a pgfplot [duplicate]
I've got a table with a binary column named xrayOn. Instead of plotting this, I want to write each xrayOn value (i.e. 0 or 1) at the position (index, 1) in a node.
However, in the code below only the ...
1
vote
1
answer
158
views
Contour gnuplot from data in external file
I'd like to create a contour plot of data stored in the file "test.dat". There should be one continously shaded contour plot and then I'd like to "highlight" some contour lines ...
1
vote
1
answer
70
views
Shade between x-values given in an external file - pgfplots
I'd like to achieve the following plot:
\documentclass[a4paper]{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\begin{document}
\begin{filecontents}{data.txt}
start,end
1,23
51,69
106,165
...
0
votes
1
answer
65
views
Create static variable inside of \pgfplotstableset definition
I try to understand, how to create a variable inside or outside of the \pgfplotstableset environement which is static and will not be resetted all the time.
Probably this is a generic question for ...
1
vote
1
answer
62
views
Restrict domain of plots with data coming from different files
I would like to plot some data where the x axis values come from one file and the y axis values come from another file. However, I also want to restrict the domain of the plotted data. For example, ...
1
vote
0
answers
68
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 ...
1
vote
0
answers
37
views
pgfplotstable: compute averages of columns
\documentclass{article}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\pgfplotstableset{
create on use/mean/.style args={#1#2#3}{
create col/expr={(\thisrowno{#1} + \thisrowno{#2} + \...