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

Filter by
Sorted by
Tagged with
3 votes
1 answer
65 views

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] % ...
Zarko's user avatar
  • 317k
0 votes
0 answers
68 views

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 ...
Peter1509's user avatar
3 votes
2 answers
65 views

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} \...
Sören's user avatar
  • 41
0 votes
0 answers
80 views

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 ...
mariestr's user avatar
1 vote
1 answer
105 views

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, ...
mariestr's user avatar
3 votes
1 answer
93 views

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 ...
JustARando's user avatar
3 votes
2 answers
116 views

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 ...
sergiokapone's user avatar
  • 5,972
1 vote
0 answers
113 views

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 ...
modallyFragile's user avatar
0 votes
1 answer
93 views

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. ...
Timmy's user avatar
  • 107
2 votes
3 answers
170 views

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]{...
philipp's user avatar
  • 41
0 votes
1 answer
147 views

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 ...
Mathieu's user avatar
  • 165
1 vote
0 answers
47 views

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 ...
user150182's user avatar
1 vote
1 answer
70 views

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. \...
cedi123's user avatar
  • 85
1 vote
1 answer
56 views

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: \...
Pascal's user avatar
  • 812
0 votes
1 answer
59 views

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. ...
Sam's user avatar
  • 43
2 votes
1 answer
82 views

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 "...
Pascal's user avatar
  • 812
0 votes
0 answers
43 views

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, ...
Pascal's user avatar
  • 812
0 votes
1 answer
99 views

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 ...
Pascal's user avatar
  • 812
0 votes
1 answer
67 views

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 ...
luwi's user avatar
  • 13
1 vote
1 answer
158 views

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 ...
Phil_B's user avatar
  • 11
1 vote
1 answer
70 views

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 ...
cedi123's user avatar
  • 85
0 votes
1 answer
65 views

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 ...
Pascal's user avatar
  • 812
1 vote
1 answer
62 views

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, ...
Meclassic's user avatar
  • 1,837
1 vote
0 answers
68 views

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
37 views

\documentclass{article} \usepackage{pgfplots} \usepackage{pgfplotstable} \pgfplotstableset{ create on use/mean/.style args={#1#2#3}{ create col/expr={(\thisrowno{#1} + \thisrowno{#2} + \...
SolidMechanicsFan's user avatar

1
2 3 4 5
24