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
2
votes
1answer
47 views

uniform colormap

I plot the contour of an exemplary xyz matrix. \documentclass[border=5pt]{standalone} \usepackage{pgfplots} \usepackage{filecontents} \pgfplotsset{compat=newest} \usepgfplotslibrary{colormaps} \...
1
vote
1answer
33 views

PGFplotstable: Postprocessing Chemical Formulae

I have a csv file with four columns Species; Phase; Chemical formula; Delta f H which I'm trying to load into a table using pgfplotstable. When I use this code \documentclass[margin=2pt,12pt]{...
0
votes
0answers
14 views

multiple graphs with txt files in pgf plot

hello could you help me? How can I make a graph like the one in the image, but using .txt files not data tables.
1
vote
1answer
29 views

Vertical Rule in PGF Plottable

I just learned to plot tables with pgfplottables and it feels very nice and smooth. Here is my Code example: \documentclass[14pt]{book} \usepackage{pgfplots} \usepackage{pgfplotstable} \usepackage{...
1
vote
0answers
17 views

LaTeX commands in pgfplots legend entries from csv import

I am trying to import data from a csv file, where legend entries are automatically taken from the csv file's header. Those legend entries contain LaTeX math code. % used PGFPlots v1.16 \documentclass[...
-2
votes
0answers
33 views

how can make a graphics with pgf-plot [duplicate]

help me please: how can I plot and get a pgf-plot loading a .txt data file, How can I load the file.txt without getting an error?
0
votes
1answer
34 views

pgf error maths

help me please: I don't understand why pgf show me this error, for all my dates: Package PGF Math Error: Could not parse input '14.099117,3.068e+6,' as a floating point number, sorry. The unreadable ...
1
vote
0answers
31 views

Figures generated with pgfplots and includestandalone do not have the same size, even though the scaling is equal

In my project I have several graphs/figures displaying data. The requirements I got are to use the same font in the text of the main document and in all figures. Therefore, I decided to use pgfplots/...
0
votes
0answers
18 views

Set labelsize of tikz/pgfplots-figure to fixed font size independently of scaling factor

In my project I have several graphs/figures displaying data. The requirements I got are to use the same font in the text of the main document and in all figures. Therefore, I decided to use pgfplots/...
1
vote
0answers
33 views

Wrong pgfplots linear regression computing

I'm try to plot the following data: \pgfplotstableread[col sep=semicolon]{ record;value 2004;48 2009;34 2010;32 2016;22 2020;21 }\valuetotest by \pgfkeys{ /pgf/number format/.cd, set decimal ...
0
votes
0answers
12 views

pgfsplotstable: how to format _some_ column headers

I would like to rotate the headers of some columns in my pgfboxtable. The closest I've gotten is \pgfplotstabletypeset [assign column name/.style={ /pgfplots/table/column name={\rotatebox{...
0
votes
0answers
36 views

How to read a latex table with pgfplotstableread with \begin{table} \etc

I would like to read data from a .tex file using \pgfplotstableread. The .tex file contains table with \begin etc. tags and I am asking for a clean way to strip this. I can skip the first lines but ...
0
votes
0answers
17 views

pgfplotstable: apply a macro to an entire column

I recently discovered pgfplotstable. It seems to have very powerful tools for data manipulation. One of the most remarkable options I've seen is the option of creating columns based on the data of ...
0
votes
1answer
27 views

PGFplotstable: Skip rows containing nan

Forgive me, but I have not been able to find an answer. I have some text-files organized like the one below, which I typeset into a table using pgfplotstable \documentclass[border=1pt]{standalone} \...
0
votes
0answers
26 views

Bar chart with different 1 and 2 bars per group

I am trying to create a bar chart that has both groups of 2 bars and a single bar. When I run my code below, the x-axis ticker for the the single bars does not show. Is bar group size={0}{1} not ...
1
vote
0answers
86 views

How to add line numbers to a PDF?

I am trying to add line numbers to a PDF of a thousand pages. I only have the PDF and don't have the source text that was used to generate the PDF. As part of my research, I have reviewed the ...
0
votes
1answer
33 views

'Continued on next page' for longtable out of csvreader

I have successful managed (with help from this forum) to display my options in a table with each line numbered and price displayed. \csvreader[longtable= >{\stepcounter{RowNum}\theRowNum}r >{\...
0
votes
1answer
27 views

Endless compilation loop with pgfplotstable

I`m tring to compile se following document: \documentclass{standalone} \usepackage{pgfplotstable} \usepackage{booktabs} \begin{document} \pgfplotstabletypeset [ every head ...
1
vote
1answer
50 views

annotation on pgfplot table

In this example table, how can I draw a line from (1,2) to (4,2)? \documentclass{standalone} \usepackage{filecontents} \begin{filecontents}{data.dat} C1 C2 6 80 15 520 ...
2
votes
1answer
33 views

Why does my plot made by 'pgfplots' come out empty?

Here is my code - \usepackage{pgfplots} \usepackage{filecontents} \usepackage{graphicx} \usepackage{siunitx} \usepackage{tikz} \begin{figure}[h!] \begin{center} \begin{tikzpicture} \begin{...
1
vote
0answers
34 views

pgflplots/pgfplotstable input parse error with create col/linear regression

This is similar to pgfplots input parse error with expression, except my problem is not with expr but with create col/linear regression. Here's a MNWE: \documentclass{article} \usepackage{pgfplots} \...
0
votes
0answers
34 views

Re-label second x-axis on pgfplots

I have the following simple pgfplots with multiple ordinate axes (see below for figure and MWE). I would like to plot a second x-axis at the top that is 10 times the values shown on the bottom and ...
3
votes
1answer
43 views

tikz and pdf: label rotation leads to overlap

As can be seen in the below example, I'm trying to create a confusion matrix via tikzpicture (haven't found any nice solutions via table that allows for easy color grading). However, due to the ...
0
votes
1answer
26 views

How to display x-coordinates near data points in pgf plot?

I know how to display y-coordinates near each datapoint using the following code \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[title={$E_0 $}, ymax=...
1
vote
2answers
44 views

Label PGFPlot table points with coordinates

I would like to label each plotted point with its x and y coordinate. I am able to label with a single one using the MWE below. I must avoid manually labeling each point since my actual table size is ...
1
vote
2answers
40 views

Loop over pgfplotstable rows

I wan't to draw tikz picture based on data loaded from pgf table. Can I somehow use it like standard \foreach? \foreach \i/\j in {\mytable} \draw... What I found is \pgfplotstableforeachcolumn but ...
0
votes
0answers
42 views

Tikz/pgfplots include .csv file in pgfplotstableread

I'm trying to make a 3D-histogram based on the example shown here. However, there are two things I can't figure out on my own, as I'm still learning to use the Tikz/pgf packages. When I try to ...
3
votes
2answers
108 views

Pgfplots: Discrete instead of connected values

I have a table with experimental data. The table has two columns separated by a semicolon. The first column is the value for the x-axis and the second one is the y-axis value. If I use the general \...
0
votes
1answer
53 views

Adding a density plot to a pgfplotstable

I was able to replicate the example in http://www.pgfplots.org/tikz/examples/graph-in-table/. Now, I'd like to ask two concrete questions: How can I add a vertical space between rows that applies to ...
0
votes
0answers
33 views

How do I get all options to \addplot to propagate to an inner \addplot executed via a .code segment?

I am trying to create a quadratic regression plot function. I have the following code: \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \usepackage{gnuplottex} \usepackage{pgfkeys} \...
0
votes
0answers
22 views

How can I get \pgfplotstabletypeset options to work inside of code for another pgf key?

Consider the code: \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \usepackage{gnuplottex} \usepackage{pgfkeys} \usepackage{pgfplotstable} \pgfplotsset{compat=1.15} \makeatletter \def\...
0
votes
1answer
27 views

Creating a custom pgfplotstable from data in another pgfplotstable

I have a pgfplotstable that contains coordinates of points for example \pgfplotstableread{ t x 0.0 0.0 1.0 2.0 3.0 5.0 6.0 10.0 11.0 12.0 }\points I want to create another ...
0
votes
1answer
20 views

pgfplotstable: Columns from defined List

I have a table \pgfplotstableread[col sep=comma]{ 1,2,3,4,5,6,7 }\mytable with columns 0,1,...,6. Why can't I say \def\List{0,3,5} and then \pgfplotstabletypeset[ columns={\List} % Works not ]{...
0
votes
0answers
15 views

pgfplotstable: Sort and rearrange of table-columns

If I have a table with say 2 columns (wich always starts in the 0. row, but need not to have the same number of entries) and I have found out, that they have a cell with a common value for example 8. ...
1
vote
1answer
37 views

pgfplotstable: csv table on multiple sites

I need to import a .csv table into LaTeX, which has 280 rows and will be spread out over multiple pages. I tried pgfplotstable and my code looks like this: \begin{table}[!h] \caption{RegressionResults ...
1
vote
1answer
55 views

pgfmath: Integers without zeros, non-integers with zerofill (and fixed)

I want: · integers without zeros, e.g. -2 ---> -2 (not -2.0000) · non-integers with zerofill, e.g. 1.23 ---> 1.2300 e.g. 1.2345 --> 1.2345 Hints: · A pgfmath-solution would be nice (in ...
0
votes
2answers
49 views

pgfplotstable: Newton's Method in pgfplotstable

I use create on use and create col/assign/.code=... to display a Newton's method. The x_{n+1} column is created later as values of the x_n column, so I get an error if I want to have the x_{n+1}-value ...
1
vote
1answer
90 views

Pgfplots polar contour plot from file table with shading

I want to generate a polar plot with a colorbar quite similar to this one: from this question: Rotating polar contour plot messes with alignment of plot and axis I want to use this file with the ...
1
vote
2answers
22 views

Using pgfplotstable and longtable with a .csv

I'm trying to import a .csv while using longtable and pdfplotstabletypeset. I can't get the longtable command to work. \documentclass[12pt,a4paper,oneside]{report} \usepackage{booktabs} \usepackage{...
1
vote
1answer
27 views

Can values be too small/big for pgfplots?

So i've got the following code, in which I want to extraplorate a linear regression line. My attempt was to add \pgfplotstableregressiona*x+\pgfplotstableregressionb as a new plot, but it simply won't ...
0
votes
1answer
43 views

How to put series of small graphics on the graph?

I am making plots with y-axis breaks by placing one \nextgroupplot above the second one. These plots have not only curves but also some additional graphics, which are assigned to bottom coordinate ...
0
votes
0answers
29 views

Percentage sign in .csv with \pgfplotstabletypeset

I'm trying to enter a percentage sign (%) into a table. The table is in a .csv format. Using \% does not work. The problem might be in the document class, but I can't change the document class. The ...
0
votes
1answer
47 views

pgfplot x axis ticks aligned with a matrix beneath |

How can I make something like this as shown in the image using pgfplots in latex. I want the x-axis tick marks aligned with the other texts as shown in the image.
0
votes
0answers
8 views

pgfplotstable: create style by a loop

I used \pgfplotsinvokeforeach{0,2,4}{ \pgfplotstableset{every col no #1/.style={ column type/.add={>{\columncolor{gray}}}{} }, } to get a style for some columns. Since I need this for more complex ...
2
votes
2answers
87 views

pgfplotstable: Highlight rows of a numeric sequence

I would like to highlight the rows n*(n+3)/2 = 0, 2, 5, 9, 14, 20, 27, 35,... How could I automate that best way using the term n*(n+3)/2? \documentclass{standalone} \usepackage{pgfplotstable} \...
1
vote
0answers
45 views

Package pgfplots Error: Could not read table file [closed]

To create a 3d scatterplot, I copied and pasted the code from p.132 of the manual http://ftp.math.purdue.edu/mirrors/ctan.org/graphics/pgf/contrib/pgfplots/doc/pgfplots.pdf, \documentclass{standalone} ...
1
vote
1answer
38 views

Additional vertical space on a table

I use vertical centered table cells and use $\vcenter{\hbox{#1}}$. The result is ok, but: How can I get some additional space here: Please note that this is completely arbitrary table and can change ...
0
votes
1answer
22 views

pgfplotstable: How to use a values from a column in another column

I have X Y 1 a 2 b 5 c I need X Y 1 a=1 2 b=2 5 c=5 How can I get the values of the X-column and use them in the Y-column? \documentclass[]{article} \usepackage{pgfplotstable} \pgfplotsset{compat=...
0
votes
0answers
22 views

pgfplotstable: How to sort at several equal values

I sorted a table by X-values ascending. There are several equal X-values and I need them to be sorted by there corresponding Z-values descending. And maybe ascending Y-values, if X-values are equal ...
0
votes
0answers
36 views

pgfplotstable: How to sort a sorted table

Why is it not possible to use \pgfplotstablesort at a sortet table again? \pgfplotstablesort[sort key=Y, sort cmp=int <]\sorttable{\datatable} \pgfplotstablesort[sort key=X, sort cmp=int <]\...

1
2 3 4 5
21