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

62 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
1k views

How to add marks to all graphs at certain y level

I'd like to add markers to my plots only at certain y levels. How to do this for certain x levels is obvious, I didn't manage to do it inversley though. What I have (equi-x): What I want is ...
4
votes
0answers
1k views

Getting the (variable) number of columns per row with pgfplotstable?

I've already seen PGFplots and table with different number of elements in columns; but this is a slightly different question... Consider the following MWE: \documentclass{article} \usepackage{...
3
votes
0answers
102 views

pgfplotstable - combine two columns with LaTeX formating

I'm trying to create new colMix column as two combined-columns from CSV file. Each of them may contain some (standard) LaTeX formating (included inside the CSV file). There is MWE (non-working): \...
3
votes
1answer
142 views

Transpose table if column was created by `create on use`

I am trying to transpose a table where one column was created using create on use however the second row of the transposed table doesn't show up, the vertical separation bars are missing and also the ...
3
votes
0answers
254 views

longtable with pgfplotstable - adding predefined rows and breaking manually

Based on this link pgfplotstable; longtable with caption and repeating header I wrote this MWE: \documentclass{article} \usepackage{longtable} \usepackage{booktabs} \usepackage{multirow} \usepackage{...
3
votes
0answers
983 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 ...
3
votes
0answers
840 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 ...
3
votes
0answers
570 views

One tabular with column input from multiple data files with pgfplotstable

I have a question which sort of extends the page Multiple Files input to one pgfplotstable. In the answer to this question, data is read from dataB.dat and subsequently appended to the data as ...
2
votes
0answers
50 views

Is there an alternative package for loading the CSV, while still using pgfplotstables/pfgplots to display it?

There are several of issues with the CSV parser that is included in PGFPlots. This isn't surprising, writing a CSV parser is well-known to be unexpectedly difficult. A big one for me being that it ...
2
votes
0answers
75 views

pgfplotstable with lines and colourmap

I am trying super hard to make a table with heatmaps, multirows, columns and some separating lines in latex. The code for this table is: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{...
2
votes
0answers
1k views

How to draw bar charts with scale breaks?

I am trying to plot a bar chart with pgfplots. However, I would like to show the outliers with scale breaks in excel, similarly like this (retrieved from here): The code that I end up with while ...
2
votes
0answers
112 views

Error with siunitx/translator and pgfcalendar

I was trying to produce a table with pgfplotstable and the date type style in one column. For this the package pgfcalendar is necessary. If I include also the siunitx package a strange error occurs. ...
2
votes
0answers
247 views

Column Sums in pgfplotstable

I want to sum the numbers of the last 3 columns in mytable (see below). If all the dates in column A are different, the MWE works fine giving the proper sums (see MWE). But I wish to list Date-1 in ...
2
votes
0answers
126 views

PGFPlots: BoxPlot of a statistic table with absolute frequency

Here is my problem. I have data in a statistic table with value / absolute frequency like this: \pgfplotstableread{ 1 1 2 2 3 6 4 10 5 6 6 ...
2
votes
0answers
399 views

Pgfplotstable: Filter specific rows when reading from file

So far I have a file from which I read data to the macro \data (in the MWE I replaced the file with an in code table). From this table only 3 rows are selected and printed. What I would like to ...
2
votes
0answers
490 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
0answers
951 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 ...
2
votes
0answers
620 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 ...
2
votes
0answers
583 views

Conversion of big “amount” of seconds into HH:MM:SS when plotting timeseries with pgfplots

My aim is to plot a timeseries (experimental data) using pgfplots in LaTeX (pdfLaTeX, TexLive on Mac). The data I'm using is seperated with semicolons (columnwise) and has the following structure: -- ...
2
votes
0answers
265 views

Barchart, Boxplot Data Table PGF Math Errors from mixed format inline data

My code for a horizontal bar chart with a summarizing boxplot is coming together, but I still have a nagging PGF Math problem if I try to plot the boxplot values, which are commented out at the bottom ...
2
votes
0answers
772 views

Possible to create \pgfplotstablenew without header?

I'd like to create a (pgfplots)table from scratch, however, one without a header. So I'm trying to modify one of the examples in the pgfplotstable documentation: \documentclass{article} \usepackage{...
1
vote
0answers
35 views

How to Calculate x-Position in a pgfplots with Information from a Table

Situation and Problem This question is a follow-up and based on marmots answers to this question and this. The general situation is described there. Now I want to simplify input. More specifically I ...
1
vote
1answer
37 views

Creating a unique list from two tables read from filecontents

I have two tables.. one contains attributes with values e.g. Name percentage Atr1 80 Atr2 20 Atr3 50 and the other one contains tools for that attribute Attribute Tool Atr1 SK Atr1 SL ...
1
vote
0answers
70 views

Rainbow CSV\TSV Style with pgfplotstable

I am trying to generate something similar to this Rainbow Style. I would like to use the listings package for that (easy import through \lstinputlisting). Any Ideas? Or are there other solutions for ...
1
vote
0answers
70 views

pgfplotstable: How to get 'column name' with 'pgfkeysgetvalue'

In a table \pgfplotstableread[header=true]{ A B 0 0 -1 1 3 2 }\test I want to set the entries of the head row A an B as column names. I think, this can be done with assign column name/....
1
vote
0answers
117 views

Round to Significant Figures Not Decimal Places with PgfPlots

I want to render numbers using PgfPlotsTable, rounded to a specific precision using Significant Figures rather than Decimal Places, see https://www.wikiwand.com/en/Significant_figures#/...
1
vote
1answer
126 views

pgfplotstable - how to get numbers in a column to be formatted with colons and align at colons

I currently have a pgfplotstable longtable where the first two of the columns has values given in degrees (e.g. 5.678) but I want to display them in terms of hours:mins:secs. The conversion isn't my ...
1
vote
0answers
68 views

How do I make vertical text, and vertical lines in a table (with pgfplotstable)?

I would like to format this table so that "presence of trait i" is printed vertically alongside a vertical rule left of the + and - sign, mimicking the horizontal "presence of trait j" in the ...
1
vote
0answers
89 views

pgfplotstable: parsing string data when “S” is present

the following table works: \documentclass[border=5mm]{standalone} \usepackage{siunitx} \usepackage{pgfplotstable} \usepackage{booktabs} \begin{document} \pgfplotstabletypeset[ columns/0/....
1
vote
0answers
392 views

Show x tick label for every second tick using xticklabels from table

I am adding x tick labels to my plot, using xtick=data and xticklabels from table. How can I skip every second tick mark? My code is below. \documentclass[border=10pt]{standalone} \usepackage{tikz} ...
1
vote
0answers
84 views

Pgfplotstable using longtabu

I need to typeset multiple tables from .csv data files in relatively complex document. I'm using pgfplotstable/longtable (resp. longtabu) combo and everithing works fine except some special (very rare ...
1
vote
0answers
299 views

Custom colorbar with ticklabels from file and rounded numbers

I'm trying to create an individual standalone colorbar and label the colors with values from a file I'd like to load with \pgfplotstableread. I already got quite far, but all I learned about number ...
1
vote
0answers
142 views

how to adapt legend in combination with \pgfuseplotmark

I'm trying to plot several results with \addplot table, for the color and style of the lines I created a "colorlist" with \pgfplotscreateplotcyclelist. I also scattered my results to use different ...
1
vote
0answers
209 views

pgfplotstabletypeset not opening csv file when using latexdiff

When I generate a document with the code below (data file copied at the bottom), my table is correctly imported. If I change a word in, for example the caption, and do a diff of the two files using ...
1
vote
0answers
183 views

Column type setting for pgfplot were ignored

I have a .txt file with a table. I included in into LaTeX with pgfplot. Then I wanted to ignore the header of the file and added new column names etc.. It was a bit difficult because the names are a ...
1
vote
0answers
52 views

! Missing \endcasename inserted <to be read again> in python generated file from jinja2 template

I wanted to automate generation of some PDF files. Those files are basically a few pages long tables with just a header on first page. I have raw data in .txt or .tab files - both are tab separated - ...
1
vote
0answers
140 views

Place 2 pgfplots long table side by side

How to you go about placing two tables side by side? For the sake of simplicity, I wanted to place the same two tables next to each other on the same page. Here is the code that I have so far for ...
1
vote
0answers
259 views

pgfplotstable: trouble reading data from file with leading zero

when i create a table within the process of LaTeX, i am able to access the items, for example in a loop. If i read a table from a file with "\pgfplotstableread" then it refuses to read in values with ...
1
vote
0answers
130 views

Mark local maximum and calculate gradient in PGFplots

I'm using data from a tensometer to generate a stress-strain curve, but I want to find the yield point and the gradient between the start of testing and that point to calculate Young's modulus. Can ...
1
vote
0answers
147 views

pgfplotstable, multicolumn sp

I am trying to make a table (code below) that should contain three headings and five equally spaced sub columns but the one on the far right does not want to agree. If I make the really long heading ...
1
vote
0answers
393 views

Drawing multiple box plots from a file

I've got data in the following format n lw lq m uq uw 50 200 209 237 327 569 100 376 379 386 390 391 150 ... ... Where lw = lower whisker, lq = lower quartile, etc. I want to plot each box against ...
1
vote
0answers
350 views

Highlight extreme values and show dashes for empty values in pgfplotstable

I am using @jake's solution to highlight extreme values with pgfplotstable. doc.tex \documentclass[]{article} \input{table.tex} % table.tex includes Jake's code \begin{document} \begin{table}[ht] \...
1
vote
0answers
97 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 ...
1
vote
0answers
112 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 0....
1
vote
0answers
184 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 ...
1
vote
0answers
347 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
217 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 ...
1
vote
0answers
74 views

How to use pgfplotstabletypeset in combination with sweave

I am trying to make a table in LateX in which the background colour of my cells depend on the size of a number. I found some answers on Parametrize shading in table through TikZ but I cannot get them ...
1
vote
0answers
265 views

Unequal bin widths in pgfplots density histogram

In the pgfplots manual, it talks about density histograms with equal bin widths/ranges. Is it possible to make a density histogram with specified unequal bin widths/ranges? For example, if I set xmin=...
1
vote
0answers
547 views

Make a large heatmap with gaps and tables between

I am trying to make a large heatmap which looks like this with gaps and row or column names written in some of the cells. Empty cells are also present in the heat map. Can i make this using pgfplots? ...