Tagged Questions
4
votes
1answer
34 views
pgfplotstable: Why does `postproc cell content` not work properly when used within a style?
I use pgfplotstable and want to post-format a specific column. Among other things I need to duplicate its content. My problem is that postproc cell content works fine as a direct parameter to ...
2
votes
1answer
60 views
pgfplotstableread fails to read the input file
I am trying to typeset two different tables in a moderately large document. The data for the tables are written as comma-separated values in two different .csv files. I am including the different ...
3
votes
1answer
66 views
Postprocess row with pgfplotstable
I am trying to surround all elements in a specific table row with square brackets, using postproc cell content in pgfplotstable.
As shown in the MWE, it works well for processing a column, but not ...
0
votes
0answers
38 views
Input dependent behaviour of col sep=tab in pgfplotstable [closed]
I want to activate the col sep=tab option to be able to use tables with white spaces in the cells. I have found that while loading a tab separated table inline in the usual form
...
3
votes
0answers
60 views
How to use only mathematical input in the first column with pgfplotstable
I can use a mix of text and mathematical input in the first column of a table generated with pgfplots with no problem, and also mathematical input in, e.g. the last column, as this mwe shows:
...
4
votes
1answer
102 views
Pgfplotstable and multirow
In the following example, I'm trying to typeset a table using pgfplotstable with an every even row rule. Is there a way to deactivate it for some given columns ? Or alternatively, is there a way to ...
8
votes
1answer
79 views
Is there an easy way to change the column order of a pgfplotstable?
I am aware of Rearrange data in pgfplotstable but I was hoping for a kind of one-pass solution that doesn't spread the table over so many commands but is rather self-contained within ...
4
votes
1answer
126 views
Aligning Tuples of Decimals with PgfplotsTable
In this question, Jake gave an awesome answer that shows how PgfplotsTable can be used to read tab-delimited data from a file, and typeset the parsed decimals in scientific notation such that all of ...
3
votes
1answer
83 views
Float pgfplotstable to right of text
I want to float a smaller table to the right of my text. Here is an example of the code:
% Example Table
\documentclass{minimal}
\begin{filecontents*}{scientists.csv}
name,surname,age
...
6
votes
2answers
99 views
Reference table value in text
I want to be able to reference a table value in my text (this is because I often update my tables, and then list the specific values in the text). Here is an example table I would use:
% Example ...
0
votes
1answer
73 views
Align right in table if no expression
I am using pgfplotstabletypset to read in a table -- I want all cells in the first column with the expression Factor in them to be aligned to the left and bolded, and I want all cells without that ...
2
votes
0answers
96 views
Pgfplotstable converting zeros to — in a knitr inline table
how do I change each 0.0 to -- without having to reference each as string type or making the whole table string type? The actual table is quite long and it would take too long to do it manually. For ...
12
votes
2answers
201 views
A macro to typeset a difficult table
The following table was created with the following LaTeX-code (mwe):
\documentclass{article}
\usepackage{tabu}
\usepackage{multirow}
\begin{document}
\newtabulinestyle{stip=on 1.5pt off 2pt}
...
3
votes
2answers
362 views
Undesired quotes around values in table (pgfplot)
I am saving tables using write.table in R using the following code:
x <- rnorm(100)
y <- rnorm(100)
z <- rnorm(100)
model <- z ~ x + y
results <- glm(model)
pe <- ...
3
votes
1answer
151 views
Pgfplotstable adding a growth column without column names and then offsetting it
I'm trying to create a new column in a pgfsplotstable which shows the compound growth over the preceding columns. The columns don't have names, and I want to shift the column a little to the right to ...
2
votes
1answer
198 views
Adding a knitr table from R into a \pgfplotstableread statement
I'm trying to get a table from R into a pgfplotstable to edit for printing.
the r code is
\documentclass{article}
\usepackage{pgfplotstable}
\begin{document}
\pgfplotstableread[format=inline,row ...
4
votes
1answer
155 views
How to align \vrule partial vertical lines in a pgfplotstable
I had a look at this post on Misaligned multicolumn but it doesn't really solve my problem. I have the code below which is supposed to produce a table with a blue line for the first row and red lines ...
3
votes
1answer
109 views
Macro to outline a cell in pgfplotstable
Still struggling with the \expandafter and \noexpand tex macros.
I'm trying to put a table together using pgfplotstable.
In this case the code is something like
\documentclass{article}
...
3
votes
1answer
166 views
pgfplotstable selecting numeric columns or multiple columns by index
Hi two questions in one:
I haven't been able to figure out the answer from the manual: I have a table of data with strings in the first column:
I'd like to apply some key-values (e.g. fonts by ...
2
votes
1answer
127 views
adding row numbers to a pgfplotstable
I've had a look at the attached answer Automatic table row numbers but I'm not sure how to apply it to pgfplotstable. I'd like to get automatic rownumbers on my table so I can apply formatting by row ...
3
votes
1answer
142 views
A macro for looping through a pgfplotstable set by cell
Hi following on from the following question on multi-line headers with pgfplotstable, the solution was to set each affected cell individually. I decided to throw together a command to do that but keep ...
4
votes
1answer
185 views
Multi line header for pgfplotstable
I have a dataset in csv file format that I'm loading into pgfplotstable. I can't change the format of the original csv, and being financial data it has a column of item names and two or three ...
2
votes
1answer
122 views
Dec sep align & \multicolumn incompatibility?
As I did not get any answer, I decided to split the two question so that they appear less daunting.
The initial question I am referring to is this one
Here is a table with regular alignment mixed ...
6
votes
2answers
329 views
PGFplotstable: Is it possible to set a number format for a *row* instead of a column?
Using pgfplotstable, it's straightforward to set a column number format using
columns/(columnname)/.style={(format)}
What I would like to do is change the number format of a particular row. In my ...
8
votes
1answer
557 views
pgfplots need help with complicated stacked bar chart using selected rows from data table
I'm trying to recreate this bar chart from the data table found in the MWE below.
It involves doing a couple things that I can't figure out:
stack positive and negative bars on the same axis, ...
9
votes
3answers
2k views
Convert numpy array into tabular
I am doing some data analysis in python, putting the results in form of a matrix stored into a numpy array. I would like to put this results into a report and the best way would be to put a table with ...
3
votes
1answer
306 views
PgfplotsTable: How to merge cell contents of two tables to one table?
I have two tables (sorry, inline tables are not working with pgfplotstable 2011/12/19 on my system, even with the option format=inline):
Data table (data.csv):
X,A,B
U,1.1,1.2
V,2.1,2.2
...
9
votes
2answers
586 views
pgfplotstable or datatool?
What are differences, which to use for including .csv, .tsv files ?
Datatool ? pgfplotstable ?
I've seen at question : How typeset a numeric table from a CSV file
how person asked about fixing ...
7
votes
1answer
899 views
Table typesetting with pgfplotstable
I have two questions concerning pgfplotstable and number formatting with pgf.
Consider the following piece of code:
\documentclass{article}
\usepackage{pgfplotstable}
\usepackage{amsmath}
...