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

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

Column lines not displaying when column type is specified (using pgfplotstable)

I am in need of assistance, please. I have spent several hours trying to solve this problem, but I can't see where it might be. I'm new to pgfplotstable, but not new to LaTeX, but I am definitely at ...
0
votes
0answers
8 views

Issue with tabularx and pgfplotstable when specifying column type

I am having trouble using a tabularx environment together with the pgfplotstable package. As soon as I specify a column type in tabularx, I recieve a series of errors. When no column type is specified ...
0
votes
0answers
32 views

Select non consecutive rows for addplot in tikz

I have a list of points in a table out of which I would like to plot several closed loop paths. For each \addplot I would like to give an index list for this particular path. The trouble is that ...
1
vote
1answer
132 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 ...
0
votes
0answers
13 views

Is it possible to format cells in a pgfplotstable based on values in another pgfplotstable?

Background This question is very similar to another question that I asked earlier concerning how to format text based on the values of a csv. The corresponding answer allowed me to read in a ...
0
votes
1answer
23 views

How to format text based on a logical statement that reads in a value from a csv?

Background Hello, and thanks in advance for any insights you all can offer! Sorry for the very long post, but I noticed most new users are chastised for not sharing enough context. The TLDR version ...
0
votes
1answer
64 views

Missing } inserted. in legend refernce. error during 2nd compilation

I am running into the following problem and hope that you can help me as my dead line is just around the corner and suddenly i have got this problem. I am using Texmaker with Miktex and i try to ...
2
votes
1answer
126 views

pgfplotstabel - create table with time column

I try to create a table with a column for date and time from a file data.txt. I can create a diagram but when I type \pgfplotstabletypeset for a table following error occurs: ! Package pgfplots ...
0
votes
1answer
45 views

How to specify xtick={<>} when using x-coordinate in DATE-format and not using [date coordinates in = x]?

Depending on this question how to plot regression on DATE x-axes I post the MWE from Christian Feuersänger: \documentclass{minimal} \usepackage{pgfplots} \usepgfplotslibrary{dateplot} \begin{...
2
votes
1answer
44 views

Filled area behind bar plot from table data

I have the following MWE where I want to place the data from file myintervals.csv as filled area behind my bar plot. There is a problem with expandable macro here, but I don't get it working correctly:...
0
votes
1answer
108 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
2answers
333 views

pgfplot with date and automatically calculated mean

I have a pgfplot with dates for x and some values for y, for which I now want to add a mean line like it is done here. The function \DrawHMean presented there however seems to have a problem with ...
5
votes
1answer
691 views

pgfplotstable will not generate table

I have some data from a table that I would like to tableize with pgfplotstable. After many hours of going through the pgfplotstable 1.10 manual and basicly copying the example code with my data. Are ...
1
vote
1answer
153 views

Stacked bar chart, nodes near coords remove small values and show sum

I know it is possible to have only the sum shown on top of the bar chart and remove the other values in the stacked bar chart (as shown in picture attached), but I can't figure out what went wrong in ...
5
votes
1answer
1k views

Trend line with pgfplots and dateplots

Is there an easy way to avoid the following pretty straightforward error message at compile time: Could not parse input '2010-01-01' as a floating point number, sorry. The unreadable part was near '-...
1
vote
1answer
75 views

Show x-labels as time every two hours with pgfplots{dateplot}

I'm trying to plot a simple graph from .csv. I'm using the answer of https://tex.stackexchange.com/a/83929/164280 as basis. I get a could not parse input '00:00:00' as floating point error. I do want ...
1
vote
1answer
227 views

Date/Time in both axes with PGFPLOT

I am trying to plot some data that contains date/time values in both the x and y axis. I have been using the pgfplots and have managed to plot date/times on the x axis and on the y axis separately ...
1
vote
0answers
188 views

Adding a Trend Line to a dateplot [duplicate]

How could I add a trend line to this plot? Many thanks! \begin{tikzpicture} \begin{axis}[ date coordinates in=x, xtick=data, xticklabel style= {rotate=90,anchor=near xticklabel},...
0
votes
1answer
52 views

A PGFplots linear regression problem

I'm having problems with the linear regression function in PGFplots. The eq given by the package has the signs changed. \documentclass[12pt,letterpaper]{article} \usepackage[letterpaper, margin = 1 ...
2
votes
1answer
48 views

decimal point alignment and \pgfmathprintnumber

In the table below, column a is aligned by decimal point. Is it possible to align column b that way too? \documentclass{standalone} \usepackage{pgfplotstable} \usepackage{siunitx} \begin{document} \...
7
votes
1answer
1k views

How to read and plot S-parameters in multi-port touchstone files (s1p, s2p, s3p,…)

With pgfplots you can simply create nice plots that seamlessly integrate into your TikZ figure. As a high frequency engineer you will inevitably use a network analyzer to measure S-parameters. The de ...
0
votes
1answer
77 views

pgfplotstable: Have every other row be a multicolumn

I am trying to make a table using pgfplotstable, and am having difficulties because the csv's are jagged. Most rows have 4 columns, as do the headers, but some rows are only 1 column and I would like ...
3
votes
1answer
149 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 ...
7
votes
4answers
624 views

Drawing a really large binary matrix as colored grid

I have a 50x300 binary marix, which I want to display as a colored grid. I tried the approaches of drawing a large binary matrix as colored grid which I like, but the approach using pgfplots table is ...
2
votes
1answer
46 views

rotated header and dec sep align

I have the following code, adapted from here. \documentclass{standalone} \usepackage{pgfplotstable} \pgfplotsset{compat=1.16} \begin{document} \pgfplotstabletypeset[col sep=comma, every head row/....
1
vote
1answer
39 views

Bold font within pgfplotstable header row

I like to have a definition within the pgfplotstable header row turning the header text to bold font face. Somethng like: every head row/.style={before row={\toprule}, after row=\midrule, \textbf{#1}}...
0
votes
0answers
17 views

How to format number precision in a pgfplotstable when post processing?

I'm trying to color cells in a pgfplotstable based on the cell value: if value <= A, give the cell a background color. The coloring works fine (used this answer as a starting point) but other ...
1
vote
1answer
51 views

PGFPlots - Missing number, treated as zero error - when loading data from file

I am drawing a heatmap/scatter plot with the mark colour determined based on a score. I have mapped scores to Red, Green and Blue values, and trying to colour the marks based on the RGB values. The ...
0
votes
1answer
109 views

How to include standard error of the slope in pgfplots?

I am trying to include the standard error of the slope as "slope +- error...> 1.65 +- 0.017" and also a line fit instead of mark=x over the log-log plot. But I cannot calculate the error and ...
2
votes
1answer
52 views

Pgfplots Scientific Notation 2^x

I am plotting a logarithmic graph and since the values are relatively large, pgfplots is outputting the values in the y-axis in terms of 10x . However, I'd like to output it the format 2x. I read the ...
2
votes
1answer
37 views

Bar graph with bars containing boxed strings

I have a .csv table containing both categorical and numeric data. The first column contains the categories, which are expressed as strings. The second column contains the number of observations that ...
0
votes
0answers
36 views

How to create pgfplotstable from the intersection of two pgfplots?

I am trying to find the intersection 2 plots in pgfplots and extract the x-values onto a pgfplotstable? Here is a code where Symm and Load plots intersect and I could to get the x-value of ...
1
vote
1answer
30 views

pgfplots: print rounded values with statistical errors in parentheses

I recently discovered pgfplotstable and it is great to typeset auto-generated tables. Consider, for example, the following MWE: \documentclass[border=10pt]{standalone} \usepackage{pgfplots} \...
1
vote
0answers
36 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
33 views

How to specialize marker style depending on point meta class?

Situation and Problem This question is a follow-up and based on marmots answer of this question. The general situation is described there. I modified the markers as in this answer, but could not make ...
1
vote
1answer
56 views

Mix numbers and strings in same column

I have a table that has both numbers and strings in one column. How can I use pgfplotstable to display them both? Of course, one way would be to simple delete the strings: \documentclass{article} \...
1
vote
1answer
42 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 ...
3
votes
2answers
69 views

How do I keep the mantissa, and get rid of the exponent, in PGFPlots?

I am plotting the distance between the Earth and the Moon, and the lunation cycle for three years, 2018–2020 inclusive, and these distances are on the order of 10^5 km. Ideally, I'd like the exponent ...
0
votes
0answers
31 views

Tables in LaTeX with conditional formatting (coloured data bars) [duplicate]

In a report, I need to show some tables with numeric results. I've obtained these tables in MS Excel/powerBI, and would ideally like to re-create them in LaTeX for stylistic and flexibility reasons. ...
1
vote
1answer
49 views

Precision difference between \pgfmathsetmacro and \pgfplotsretval

I am currently working on some datasets with pgfplots and pgfplotstable. At some point, I need to store some cell values for mutiple uses so I use a \pgfmathsetmacro{\somevar}{\pgfplotsretval} call. ...
1
vote
0answers
244 views

Pgfplots working as standalone but not in main document

Update 1 The data file can be downloaded here> 11855-4_RT.dat Original: In my main document I have been including a pgfplotstable as: \SSTeTableTypeT %contains \pgfplotstableset - included in the ...
2
votes
1answer
56 views

Adding title to plots in groupplot from file

I am plotting a lower triangular matrix of plots with groupplot, and I would like to add a title to the plots on the diagonal. I generate these plots by reading data using \foreach, and therefore need ...
3
votes
3answers
88 views

Append unique characters read from filecontents to a string

I have a list of 2-character strings that is read from table, e.g. \begin{filecontents*}{attributetools.dat} Attribute SL SK MC SL AA PT SK UP MC \end{filecontents*} I want to create a string that ...
1
vote
1answer
44 views

How to partition a pgfplotstable to use in multiple tikzpictures? (and duplicate a row)

I'm trying to create multiple plots from one pgfplotstable (\data below). I can create the plots by manually editing the data (\dataA and \dataB below) but this is error-prone. Essentially, I need ...
3
votes
1answer
49 views

Empty line treatment when reading tables in pgfplots

I have the problem that in some scenarios plots from tables are not drawn if empty lines are in the read input file. Boundaries etc. are drawn and set correctly and no errors are shown in the log. ...
0
votes
1answer
30 views

Extracting values from pgfplotstable into array of variables based on condition

I have data regarding Attributes and Values, e.g. Attribute Abbreviation Value Atr1 Abb1 20 Atr2 Abb2 0 Atr3 Abb3 60 Atr4 Abb4 0 .... Based on the value of the attributes, I should display the list ...
2
votes
1answer
39 views

Error interacting with `visualization depends on` with `values` and `pgfplotstable`

Problem When changing the values of the markers on a scatter plot using the visualization depends on key and when the data comes from a \pgfplotstable the marker printing is broken. If I have the ...
2
votes
3answers
77 views

Plot data from external file with floating numbers

I found yesterday this beautiful simple code: \documentclass{article} \usepackage{pgfplotstable} \usepackage{pgfplots} \pagestyle{empty} \begin{document} %\pgfplotstabletypeset{data.dat} \vspace{...
3
votes
1answer
80 views

Pgfplotstable: Subtract two columns from two different tables

I am trying to improve my workflow in LaTeX using pgfplotstable to also include automatic error calculation. Right now, when I run a simulation, I save the output to a csv table, which I load into ...
4
votes
1answer
202 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 ...