{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

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
165 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
34 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
30 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
59 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
31 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
26 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
31 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
13 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
53 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
53 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
59 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
87 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
28 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
147 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
40 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
40 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
51 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
59 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
63 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 ...
2
votes
0answers
55 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
218 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
37 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
53 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
58 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
57 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
39 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
96 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
127 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
70 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
43 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
82 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
100 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 ...
1
vote
0answers
45 views

Reduce mesh size of data set for Surface pgfplot [duplicate]

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 ...
5
votes
2answers
61 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
99 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
33 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
40 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
65 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
31 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
76 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
134 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
53 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
109 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
128 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
62 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
58 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
45 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
70 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
110 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⁻⁷” ?