{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
1answer
28 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
30 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
27 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
25 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
35 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
49 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
30 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
89 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
36 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
43 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
48 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
45 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
32 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
39 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
40 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
47 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. ...
1
vote
0answers
49 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
64 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
68 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
26 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
84 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
204 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
39 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
196 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
67 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
33 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
83 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
58 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
40 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
19 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
64 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
71 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
68 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
128 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
50 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
161 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
49 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
43 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 ...
2
votes
1answer
90 views

How can I wrap the text in certain columns using pgfplotstable?

Issue How can I specify the column width without explicitly knowing how many columns there will be in my table? In the pgfplotstable manual Revision 1.12 (2015/01/31) on page 35, there is a section ...
3
votes
1answer
107 views

When using pgfplots, I receive an error of “ Missing { inserted.” when using the fillbetween package. Why does this error show up?

I've been using pgfplots to generate images in my homework for a modelling course. I've been receiving the error below and I can't seem to locate it in my code. Missing character: There is no ; in ...
1
vote
1answer
64 views

PGFPlots (format number)

Me need to get the following converting when PGFPlots will render the table: 0.01 -> 0.1 * 10^{-1} 0.121 -> 0.121. 1.843 -> 1.843 10.1 -> 1.01 * 10 124 -> 1.24 * 10^{2} I know ...
3
votes
0answers
88 views

How can I use \multicolumn in a \pgfplotstable table?

In my experiments with pgfplotstable, I've run into some bumps: merging multiple columns adding formatting commands to text within cells Problem I cannot seem to properly add a \multicolumn{}{}{} ...
9
votes
2answers
276 views

How can I use variables (or formatting commands) in a header row of a \pgfplotstable table?

My first reaction to reading the pgfplotstable manual was: Why would anybody in their right mind use the tabular environment for generating tables? Advantages of pgfplotstable No need to specify ...
1
vote
1answer
62 views

How to create lines for all cells of the table (pgfplotstable)

How to create lines for all cells of the table in a package pgfplotstable? There is my code: \documentclass[a4paper,12pt]{article} \usepackage{ucs} \usepackage{amsmath} \usepackage{pgfplotstable} ...
4
votes
1answer
56 views

How to group 2 by 2 style this plot?

I have the following plot that say something about performance: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \begin{document} \begin{tikzpicture} \begin{axis}[legend ...
1
vote
2answers
83 views

Merge column headers in table typeset using pgfplotstables

I have a table where the columns are narrow, except for the column headers. I am typesetting the table using pgfplots, and I need a way to specify that certain header columns should be merged. MWE ...
3
votes
1answer
83 views

How to have an ybar plot without frame?

I want to remove the frame around a plot, which usually works well with axis lines = left. However, something strange happens when trying this with ybar. Without axis lines=left With axis ...
3
votes
1answer
72 views

conditional change both the cell value and background color with pgfplotstable

I want to generate a table based on an input data. For those cell with value (x) less than 5, it is supposed to be with gray background, and the value is changed to x+3. The code I use is ...