{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

3
votes
0answers
37 views

Pgfplots: Transpose headrow as first column in: confusion matrix with colormaps / heatmaps

My question builds on code from this question: original question/answer What I am trying to achieve: I want to use pgfplots to build a table, where the header row is automatically added as first ...
3
votes
1answer
46 views

Get element from a table

I have the following table: \begin{filecontents}{table.dat} a 0.70 b 0.58 \end{filecontents} and I am trying to access at the elements with the command \pgfplotstablegetelem{0}{0}\of\table but ...
2
votes
1answer
31 views

Pgfmath misbehaving when reading negative values from table in Pgfplots

I am astonished that when I attempt to square a number read from a table with pgfplots, the result has the same sign. Consider this: \documentclass{standalone} \usepackage{pgfplots} ...
2
votes
1answer
56 views

Importing table from csv file

I have the following table in a avg_value.csv file: ,M23,F23_1,M36,F44,F63,M70 M23,1.00,0.81,0.88,0.83,0.41,0.82 F23_1,,1.00,0.52,0.56,0.25,0.94 M36,,,1.00,0.62,0.94,0.96 F44,,,,1.00,0.43,0.23 ...
2
votes
0answers
30 views

import a long tab delimited data file with first row as the header

Here's a very simple task that I don't seem to be able to get the format right. In short, I am trying to import and format a long tab-delimited txt file, with the first row as the header. I tried the ...
2
votes
1answer
29 views

pgfplotstable - apply formatting to a range of rows

I'm looking to change the formatting (specifically the background color) for a range of rows using pgfplotstable. It is easy enough to do this for one row, e.g. the 6th row, using: every row no ...
5
votes
2answers
114 views

function epigraph possibly using fillbetween

I want to shade and label the epigraph (region above a function) of different functions in latex, and have tried to use fillbetween, though im not quite sure how to do this as usually I specify two ...
5
votes
2answers
146 views

Plotting triangle on voronoi diagram, shading fractions of triangles with pgfplots/Tikz

Using this previously asked question I was able to plot Voronoi polygons from a set of generated data. I would like to annotate the plot further by doing the following: SOLVED BY MANIPULATING INPUT ...
1
vote
1answer
53 views

Date/Time in both axes with PGFPLOT

I am trying to plot some data that contains date/time values in both the x and y axis. I have been using the pgfplots and have managed to plot date/times on the x axis and on the y axis separately ...
2
votes
0answers
52 views

How to correct a PGFPLOT plot with minimal data that does not follow global options?

I have incomplete test data, as shown in the MWE. I would like to use all (few) available data points in the plot, ie (55.16, 0.08) for copper, but the plot does not take it into account. Also the ...
3
votes
1answer
42 views

beamer presentation with each figure on each slide using a foreach and pgfplots

Im doing a beamer presentation. With pgfplots I need to load a single column of a data file like this: 1 10 50 -50 2 11 51 -49 3 12 52 -48 4 13 53 -47 5 14 54 -46 6 15 55 -45 ...
2
votes
1answer
35 views

plot and fit from pgfplottable

I would like to plot a graph from data created inside pgfplottable. I have one file of data data.dat: x,y 1,2 2,3 3,4 4,5 5,8 6,9 7,34 And this code : \documentclass{beamer} \usepackage{etex} ...
1
vote
1answer
29 views

Pgfplots not working with Pgfplotstable

I am writing a document using LaTeX which must contain both graphs and tables. For the graphs I have been using pgfplots and this has worked brilliantly. Now I needed to insert a few tables and was ...
2
votes
1answer
27 views

Which command to get words from table?

I have the following table: \begin{filecontents*}{table.dat} cane 1.5 gatto 3 \end{filecontents*} from which I have to take cells separately for the plot. The numeric values can be easily gotten ...
1
vote
0answers
44 views

print empty cell in Latex

I have an array stored in csv file from Python program as : W = [ 1, 2, , 4, , 5] I want to print the array in Latex as : W 1 2 4 5 I have ...
3
votes
1answer
51 views

Can you use `pgfplotstable` to do a linear regression to an expression?

I have a lot of data in a table, but it is not linearly related. I can linearize the relationship by computing functions (x expr and y expr expressions). I would like to use pgfplots to show the ...
2
votes
1answer
37 views

Regression with .csv tables

I am having trouble getting regression to work. If you wouldn't mind just looking over the code and point me in the right direction I'd really appreciate it. I have loaded pgfplots and pgfplotstable ...
3
votes
1answer
98 views

Colored circles from data

I have a data file which gives x-position (xpos), radius, and color. I wish to draw a circle at ever (xpos,0) with appropriate radius and color. How do I achieve that? I have used two approaches. ...
0
votes
0answers
39 views

Auto label points read from file

My question is the following, I read data from txt file where the data are stored as: North,East 1,5 4,7 a file with code \pgfplotstableread[col sep=comma, header=true {data.csv}\table; \addplot ...
1
vote
1answer
52 views

How to change font of specific (numerical) cell using pgfplotstable?

I'm using pgfplotstable to create tables from .csv-files. I would like being able to change the font of specific numerical cells. In particular, I would like to change the font of these cells to look, ...
3
votes
1answer
57 views

pgfplotstable: postproc cell content resets style of cell

I'm using pgfplotstable to create tables from .csv-files. But when I use postproc cell content to change the appearence of a specific cell, all former formatting of this cell seems to be ignored. How ...
2
votes
1answer
59 views

PGFPlot no line between data points when reading from table

I have been searching stackexchange aswell as the pgfplots and pdfplotstable documentation. My problem is that when i read into the data from a *.txt file and I select the columns and rows i want to ...
2
votes
0answers
17 views

How can I force a specific order of magnitude in a column? [duplicate]

I have to process some tables with pgfplotstable which are stored in a .dat file I'd like to input without pre-processing it myself. The numbers in the columns are in scientific notation, and I'm ...
2
votes
1answer
36 views

How to hide one column in a pgfplotstable

How can I hide the column parameter a (header and data) of the following table. \documentclass{article} \usepackage[letterpaper, margin=0.5in]{geometry} \usepackage{pgfplotstable} \begin{document} ...
1
vote
0answers
48 views

Calculate pearson correlation, r in pgfplots

Is it possible to calculate the pearson correlation, r or r^2 value from a linear regression using pgfplots? I already have the curve and would like to display the r value in the legend. I couldn't ...
0
votes
1answer
50 views

Compute average value of a column with pgfplots

Based on the famous example to create a new column containing the min/max/avg... value of one column, I was wondering how to compute the average value and then to use it as a float variable in a ...
1
vote
1answer
51 views

How to plot a table of data without printing the table?

So I'm having a little trouble with graphing from a table of data. So in a folder on my desktop, I have a ton of different LaTeX data tables that I converted from Microsoft Excel using Excel2LaTeX. ...
3
votes
1answer
64 views

pgfplotstable and _{some text} or ^{such text} in an string type column

So this is the second question I need to ask to get this table working: I'm using this: \documentclass{article} \usepackage[margin=1cm,a3paper]{geometry} \usepackage{siunitx} ...
2
votes
1answer
75 views

pgfplotstable error on read

I have a Problem with a \pgfplotstableread command. I m always getting the output: Package PGF Math Error: Could not parse input 'VasconcelosEtAl2012' as a floating point number, sorry. The ...
2
votes
1answer
75 views

Display uncertainty in table using pgfplotstable, read value from file

I have a text file with 2 columns. The first column is the principal value and the second column is the uncertainty. How to read and display them together in a single column in a table using ...
2
votes
1answer
27 views

How to set the color and width of your plotline using the third column in your table?

I would like to use the third column in my table to color code my plotline e.g. blue-red (-1 to 1) and set the width according to the absolute value of the third column (0 thick, 1 ultra thick (or ...
2
votes
0answers
97 views

Legend entry for each point in scatter plot with matching color

I have a file with multiple columns, of which I create scatter plots where positions are given from column 1 vs column 2, while the mark color is based on column 3. I now wish to automatically create ...
7
votes
1answer
206 views

Generate Tikz tree from filecontents

Is there an easy way to create tree nodes from data in a file? I need the tree to have nodes in the format 1,2,3,4 rather than 1,2,4,8 etc. I can't create the nodes in a loop as there would be two ...
3
votes
1answer
45 views

Number format for a node

In the following minimum working example, how do I change number format that is used for the node? For instance, cut off the number after 5 digits. \documentclass{standalone} \usepackage{currfile} ...
6
votes
1answer
201 views

Create table with automatic row numbering

I am trying to create a table with subheading and automatic row numbers. The original table looks like this: The latex to generate the table is as follows: \documentclass{article} ...
1
vote
0answers
80 views

Bar plot with y-error and nodes near coords

I have to plot some data as a bar plot. These data is processed with pgfplotstable, so I can plot the mean and the error for my data. Now I want to print the nodes near coords for each of the bars; ...
1
vote
1answer
35 views

How to properly place a pgfplotstablestyleset in a floating environment

I am trying to make a really basic table with values I read from file using pgfplotstablestyleset. However, the placing of this table seems completely off. If I use \centering it is glued to the right ...
2
votes
0answers
88 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 ...
2
votes
1answer
71 views

Plot data row-wise with pgfplots

I have some data stored to file, that I would like to plot with pgfplots. The data is stored row-wise, that is the file looks something like this: a 1 2 3 4 5 b 6 7 8 9 0 c 2 4 6 8 0 ... ...
1
vote
1answer
31 views

How to get xmin and xmax work for small interval?

The following uses a small sample of a huge data set which is bounded by x = 0 and x = 2. However, there is a need for plotting the results at the intervall [1.371508664312009 1.371508780212562]. This ...
0
votes
1answer
41 views

Can't span width of date plot to linewidth

Aim: Set the width of a plot to \linewidth. Current Status: Setting the width option of the axis environment to \linewidth yields the Dimension too large. error. And indeed, in the resulting ...
1
vote
0answers
23 views

How to concatenate expr into the pgfplotstabletypeset?

I have a file with time in seconds and I want to make a expression inside the pgfplotstabletypeset to convert the seconds into 2h35m40s. I only get how to convert to hours, minutes and seconds but ...
3
votes
1answer
67 views

Using pgfplotstabletypeset to conditionally bold small p-values

Following advice seen in other entries about using pgfplotstable on tex.stackexchange.com (such as pgfplotstable: Conditional post-processing of cell content on a per-column basis), I have encountered ...
3
votes
1answer
88 views

Vertical lines in LaTeX (tabular vs pgfplotstabletypeset)

Why don't these 2 tables have identical vertical lines? \documentclass{article} \usepackage{array} \usepackage{booktabs} \usepackage{pgfplotstable} \usepackage{pgfplots} \begin{document} ...
2
votes
1answer
71 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 ...
2
votes
2answers
145 views

Unable to typeset LaTeX maths characters in pgfplotstable table header

I am typsetting a simple table with pgfplotstable and attempting to include units in the headers. I've noticed that certain math macros e.g. \circ or \gamma (2 random test cases) fail to typeset. When ...
3
votes
1answer
54 views

pgfplotstable with 'create on use'-statements inside resizebox is not sized correctly and looks non centered

I use pgfplotstable to create my tables from .csv-files in the following manner: Pgfplotstable first creates some columns by merging two columns of the input table and putting a $\pm$ in between the ...
3
votes
1answer
174 views

What options are there to globally format tables also allowing local overrides?

Tables are the final frontier of my documents. So far I have managed to standardized over 20 documents (hundreds of pages) using a single, shared preamble. Issue Abstracting format from content in ...
1
vote
0answers
52 views

How can I create a new table environment wrapper for pgfplotstable?

A similar question has been asked here: - newenvironment using pgfplotstable At first glance, I thought it was the same question, because the question is not clearly stated. That person is asking for ...
3
votes
2answers
44 views

The problem with formulas in a table (pgfplotstable)

I have the file, that created dynamical by my program. For example: a b $a_1$ 0.121 $a_2$ 0.001 $a_3$ 0.031 Me need to convert him to a table (I use pgfplotstable package). But when I try ...