{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

1
vote
1answer
11 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
47 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
33 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
38 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
22 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 ...
4
votes
1answer
68 views

Generating pgfplots legend from gnuplot data

I’m having trouble getting pgfplots to typeset very small numbers, e.g. 6.82e-08. I don’t know if the problem lies in it being a very small number, or if it’s because of the interaction with reading ...
1
vote
1answer
88 views

Plotting a 2D slice of a 3D data set

I am plotting 3D data sets as surface plots, but sometimes I need to show a slice of the surface plot by restricting either the x-value or the y-value. I have provided a MWE, showing The surface ...
5
votes
1answer
58 views

Erroneous depiction by use of `\draw` and `\fill` commands in PGFplots `axis` environment

I am trying to use table data to construct a patch surface plot. In doing so, I use pgf/tikz, pgfplots, pgfplotstable and the command \edef. My code: \documentclass{standalone} \usepackage{amsmath} ...
2
votes
1answer
42 views

Call to coordinate for creating a patch gives an error

I'm trying to construct a patch in pgfplots by means of table data. In attempting to do so, I also use the \coordinate command. Minimum working example: \documentclass{standalone} ...
3
votes
2answers
69 views

! Dimension too large. for tikz

MY aim is to plot only a small part of a data set with tikz but I get the error message ! Dimension too large. <recently read> \pgf@xx when I try limit the plot area with xmin and xmax. Is there ...
3
votes
0answers
58 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 ...
0
votes
0answers
34 views

Reduce mesh size of data set for Surface pgfplot

I want to reduce the amount of sample points latex uses for creating a pgf surface plot. My data file currently has a mesh of (41x401) points. I am looking for a way to implement the (each nth ...
4
votes
2answers
55 views

pgfplotstable new column url

Im trying to use pgfplotstable package. And my task is to create new column in a table using this package. Here is my minimal working example: \documentclass{article} \usepackage[]{filecontents} ...
5
votes
1answer
88 views

Appending Graphic from Optional CSV Column to PGFPlotsTable Column Content

I have a CSV file containing a list of names, numbers and optionally pictures. This file is to be displayed in a multi-column table, with the name (and optionally appended picture as icon) in one ...
1
vote
0answers
28 views

pgfplots(table) protect ##1 when in a `\newcommand` with optional arguments

I am using the excellent answer from @percusse to the question How to rotate head row cell entries of pgfplotstable which works great if you always want rotated headers. I am calling ...
0
votes
1answer
30 views

pgfplotstabletypeset with the use of multirow and the vertical line problem

Please bear with my clumsy codes here. I am using multicolumn and multirow to custom-made a header but are having trouble. I will use an example csv file to illustrate what I am trying to do. My csv ...
3
votes
2answers
58 views

row index of first non-zero element in pgfplotstable

I am using the "functions" \findmin and findmax from here quite much to dynamical format and set plots from CSV data I read in. In the same vein, I want a function \findFirstNonZeroIndex, which ...
2
votes
1answer
29 views

How can I “force” pgfplotstable to be under a heading

Due to a recommendation on this board, I have decided to use pgfplotstable in my lab reports to import data from a CSV and print it out as a table in LaTeX. However, in a section such as my ...
1
vote
2answers
69 views

Text halfway a line using coordinates in an axis environment

I want to denote text halfway a line in an axis environment. Here's a minimum working example: \documentclass{article} \usepackage{currfile} \usepackage{filecontents} \usepackage{pgfplots} ...
7
votes
2answers
118 views

Printing an array of numbers into multiple columns

I have 100 numbers and I want to print the numbers in multiple columns in one page like: 1 11 21........91 2 12 22........92 3 13 23........93 4 14 24........94 5 15 25........95 6 16 26........96 7 ...
2
votes
0answers
40 views

Percentage character in header of pgfplotstable

I am trying to create a table with data from a .xslx file exported to .csv with pgfplotstable but I have trouble with the percentage sign. One of the columns in the header includes the percentage ...
6
votes
1answer
99 views

Ignore commas in fields in TSV file

I'm importing data from a tab-separated values file. Unfortunately, there's a comma in one of the fields: between the surname and firstname. How can I ignore the comma when the file is imported so I ...
1
vote
1answer
107 views

2D histogram from a single row of a table, with discrete axis

I am trying to make an animation from a table that contains a row for every frame (year) where the rows are a 9x7 matrix unzipped: Date, Row1Col1, Row1Col2, ..., Row9Col7 1864, 0.65, 0.01, ...
2
votes
1answer
48 views

\pgfplotstableread dynamically create loaded table macro from \pgfplotsinvokeforeach key

I am trying to load a whole lot of CSV's using \pgfplotstableread and dynamically assign them a macro name from a \pgfplotsinvokeforeach loop. I tried \csname but suspect this is totally the wrong ...
2
votes
0answers
33 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 ...
1
vote
0answers
36 views

Import data with pgfplotstable and generic horizontal lines

I have a dataset which is in the following form: # timeIt newtonIt globalIt time_0 time_1 # ---------------------------------------------------------------- 1 1 1 0.01247044 0.01111968 1 2 2 ...
2
votes
1answer
44 views

manually inserting row lines when inputting csv to latex

I am making a long table for a paper appendix that spans multiple pages. I would like there to be no lines marking each row, except to designate sections. The only way I have figured out how to do it ...
4
votes
2answers
107 views

Don't display the leading mantissa 1 in power of tens (with pgfplotstable)

In pgfplotstable, how can I display “1e-7” as “10⁻⁷” instead of “1⋅10⁻⁷” ?
13
votes
5answers
467 views

Coloring negative and positive numbers automatically

I believe numprint.sty is not working. at least the manual states that Printing negative numbers in red does not work. Only the minus sign is printed in red. When was this bug introduced? Some ...
2
votes
1answer
34 views

How to grant consistency of number formatting with pgfplotstable?

I am trying to format a series of tables, containing texts and numbers, using pgfplotstalble, for a technical document targeting a european audience, therefore I need the comma as decimal delimiter ...
3
votes
1answer
64 views

“skip coords” and “xticklabels from file” cause wrong labels

When filtering data from a file (with skip coords between index for example) and loading the x tick labels from the same file, the x tick labels are not skipped, leading to wrong labels. As an ...
0
votes
1answer
52 views

Extra spacing in cell using \pbox in \pgfplotstabletypeset

I am using a straight-forward \pgfplotstabletypeset. Because I wanted to insert a manual break in one of the cells to decrease the width of that cell, I added a \pbox as suggested in ...
3
votes
0answers
30 views

post-process cell content in one column based on another column

I am trying to do something quite similar to this post: pgfplotstable: Conditional post-processing of cell content on a per-column basis However, I'd like to post-process the column based on the ...
4
votes
1answer
90 views

Defining a variable in Tikz and using it in a table

I read the page Define a variable in TikZ about how to define a variable in tikz, but I am trying to then put these values in a table and getting errors. It seems latex is not remembering the white ...
2
votes
0answers
76 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 ...
3
votes
1answer
33 views

Using siunitx and pgfplotstable removes header when used as a style

I'm following the solution presented here. However, for some reason when I used the code as a style defined in pgfplotstableset the header disappears. How can I fix it? \documentclass{article} ...
1
vote
0answers
109 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 ...
1
vote
0answers
45 views

pgfplots table read handle non-numerical entries

In a previous question, I asked how to create a Root Locus plot and got a pretty good answer thanks to @percusse using \pgfplotstableread that gets me 90% of the way there. However, the one thing I ...
3
votes
1answer
30 views

pgfplotstable with multirow

How can I use pgfplotstable with multirow to create a table with a column in which every cell spans 3 rows. \documentclass{article} \usepackage{pgfplotstable} \usepackage{multirow} ...
2
votes
1answer
90 views

Linear Regression with symbolic x-coordinates

I have been having difficulty with this problem for a few days now so I'm hoping you can come to my aid. I am trying to create a line of linear regression for a very small chart using pgfplots. ...
2
votes
1answer
23 views

Perform column operations on pgfplotstable

Can you use pgfplotstable to perform operations on columns? For example, I have \documentclass{article} \usepackage{pgfplotstable} \pgfplotstableread{ x y 4 2.50000000e-01 16 6.25000000e-02 64 ...
3
votes
1answer
52 views

`pgfplotstable`, table overlapping graphic

I have a pgfplots graphic in a pgfplotstable, and a part of the graphic is overlapped by the table like you can see in this picture: The 800 at the top is cut by the tabular border. Here is a MWE: ...
1
vote
1answer
167 views

Use specific “col sep=&” with \pgfplotstableread{⟨file name⟩}{⟨\macro⟩}

I would like to make one table that consist of data (Columns) from multiple (7) input files. I know for a pgfplot this can be done by simply loading data from different sources into one graph. I have ...
3
votes
1answer
93 views

How to change \pgfplotstableset for different parts of a document?

In the documentation for the pgfplotstable package you can find the following in the introduction: Key-value pairs can be set in two ways: As default settings for the complete document (or ...
1
vote
0answers
89 views

Spaces are not formatted correctly in url paths when using sphinx package and reStructuredText

I have a problem similar to the one in: Obey spaces with URL package (path command). The obeyspaces option is not working within the pgfplots table column. However, my problem is slightly different ...
1
vote
0answers
65 views

Pgfplotstable: column math is wrong!

I am using the following code with pgfplotstable to generate a new column that represents the difference of two other columns. \pgfplotstableset{create on use/iqr/.style={ create ...
4
votes
1answer
127 views

trend line in pgf plot

I have been trying to fit a trend line using pgf plot for my data and unfortunately can't seem to hit the right spot with the code. I have looked in the manual for examples of linear regression and ...
6
votes
1answer
131 views

pgfplotstable: postprocessing cell with math formula

I have the following csv file: 0.000000000000000000e+00 -2.485778083899142232e-01 -6.775462378935208640e-01 1.687203134856525066e+00 2.019105909655298348e+00 1.000000000000000000e+00 ...
1
vote
0answers
89 views

PGFPLOTS defintion inside macro inside table or insert boxplots inside table

I am trying to take a plot of a series of boxplots and include/insert these into a table. The code came from a posting of using a data table to define a series of boxplots. The code for the table ...
0
votes
0answers
97 views

Table of ybar plots with specific colors

I am trying to use specific coloring in an table of ybar plots. Maybe someone can help me out here. I have read other threads concerning the coloration of ybars but none of them really worked. This ...