Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

1
vote
0answers
15 views

How do I display only certain rows in a table using pgfplotstable?

I have a table, read from a file, and I would like to display only rows which have a specific value in a given column. The specific value is a string (e.g. Agricultural). I am able to do it using the ...
0
votes
2answers
39 views

pgfplotstable: How to output a table with some empty cells in header row?

I want to output a simple table using pgfplotstable with first two cells in the header row are empty as given in the following figure: What is the simplest solution for this? Regards, Jamil
2
votes
1answer
29 views

Why 'X Group' and 'Y Group' does not appear on this pgfplot?

Why X_Group, Y_Group does not appear in this pgfplot example? I tried to change the below reference slightly, but my example does not show the grouping as in the example. Reference: https://tex....
0
votes
1answer
30 views

Help on creating a table

I need your help please on creating a table as shown in the following picture. I can create a basic table but I am having problem with the subcells in the middle of it. I will fill this table with ...
1
vote
1answer
32 views

The style of plot line changes if \addplot+ order changes

I have a weird issue with this simple plot. I need to draw four couples of plots, each made by an approximate curve (continuous line) and the real curve (dashed line). For some reasons I can't ...
3
votes
1answer
29 views

Pgfplot: remove tick elements on axis

I am trying to plot a graph using pgfplots. The plot is fine, my only concern is about the fact that I don't have, let's say, a linear x axis: I have the following elements: 1,2,4,5,7,8,9,10,12,13,14,...
1
vote
1answer
42 views

Include negative value in sum/total value in stacked bar chart

I have a stacked bar chart that looks like this. However, I'm trying to include the negative values (ninth column in the datatable) into the total value on the stacked bar chart so that in the end ...
1
vote
1answer
39 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 ...
0
votes
1answer
41 views

Get values (floating type) from pgfplottsables

I'm trying to get certain values from a table a created from a csv file. I'm want those values to plot them. The problem is when I'm extrating those values, it seems that they are no longer a floating ...
1
vote
1answer
23 views

label text into x-axis instead of numbers pgfplotstable

Does anyone know how can i enter text into the x-axis ? It seems like only numbers are allowed as soon as i wanted to enter alphabets it will be an error. This template was adapted from here. \...
7
votes
2answers
94 views

How to represent discontinuous data (Interrupted Plots) with pgfplots?

I want to plot a large set of data points generated from a numerical experiment. The plot looks like a step function, that is, for an interval in x-axis, it takes a constant value. The code is (for ...
9
votes
1answer
244 views

Creating a tube plot from external data with pgfplots and tikz

I have the following MWE \documentclass[border=10pt]{standalone} \usepackage{pgfplots} \pgfplotsset{width=7cm,compat=1.8} \usepackage{pgfplotstable} \begin{document} \begin{tikzpicture} \...
3
votes
1answer
92 views

Plotting a 3D data-set from a .csv file

I have a .csv with 2-dimensional data. Now I am trying to plot it in different index ranging from -n:1:n (this index is y-axis). \documentclass[border=10pt]{standalone} \usepackage{pgfplots} \...
1
vote
1answer
22 views

How to add Error Bars to PGFPlots graph data that isn't in table form

I am making a graph in PGFPlots, and I have many lines along my axes. My MWE contains two. Each have different error value, and my data are in coordinate form, not in table form. Would I have to ...
0
votes
1answer
33 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 ...
5
votes
2answers
76 views

What is the difference between storing table data by filecontents and pgfplotstableread?

In this MWE, the table data loaded from poles.dat is successfully parsed as shown in the left plot. However, storing the same data inside a macro using \pgfplotstableread doesn't result in the same ...
1
vote
0answers
49 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 ...
2
votes
0answers
23 views

Pgfplotstable - Display specific column in scientific Notation with fixed exponent

I have a table, where one column has data like: 5.67e-07 6.79e-08 5.89e-09 And i want to print this column as 567*10^{-9} 67.9*10^{-9} 5.89*10^{-9} Is there a way to configure this directly ...
2
votes
1answer
19 views

Multi-line column names

I currently have: \documentclass{article} \usepackage{filecontents} \usepackage{filecontents} \usepackage{pgfplots} \usepackage{pgfplotstable} \begin{filecontents*}{rawdata.txt} ...
7
votes
1answer
70 views

pgfplotstable - remove space before first and after last column - @{}

I am using pgfplotstable and I want to remove the space before the first column and after the last column. In a regular tabular environment I would just use @{} twice in the argument. \documentclass{...
0
votes
1answer
33 views

dimension to large in pgffor

I have this error: Dimension to large. } the code is: \documentclass{report} \usepackage{pgffor} \parindent=0cm \begin{document} \foreach \n in {1,...,20000}{ Hola a todos. el numero es \n \\...
2
votes
1answer
36 views

Help with pgfplots

Is it ok to ask several questions? There's like a 40 minute wait time before asking another one, I think. And yes, I did try to read the documentation, but I couldn't really find the information ...
2
votes
2answers
82 views

A custom table using TikZ instead of tabular

How could I create a table like below using TikZ? I tried using matrix, but could not get rid of few table lines like below. It might be easier in tabular LaTeX, but I want in TikZ because I could ...
2
votes
1answer
39 views

How to only calculate set fields with pgfplotstable?

I have the following MWE: \documentclass{standalone} \usepackage{tikz, pgfplotstable} \pgfplotsset{compat=newest,compat/show suggested version=false} \begin{document} \pgfplotstableread{ ...
1
vote
0answers
23 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/....
5
votes
1answer
37 views

Disable scientific number format on pgfplotstable

I am trying to do the following: Read data from a file [CSV] Add a calculated row to it [C] Transpose the data Plot the data Display the data in a table Everything works so far, but the calculated ...
2
votes
1answer
67 views

Equation with summation - regression plotting - pgfplots

I am trying to 3D plot the below equation in tikz. I have basic premise setup like this, with sample set as datatable. \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.15} \...
2
votes
1answer
40 views

pgfonlayer pgfplotstableforeachcolumnelement issue

This is the continuation of this issue and this, where I try to draw normal distributions along the regression line for different x values in 3D. The problem now is, for all distributions, I try to ...
1
vote
0answers
39 views

pgfplotstable: How to use 'pgfplotstablename'

How can I use \pgfplotstablename in this case \pgfplotstablegetelem{0}{[index]1}\of\TestTable instead of \TestTable? MWE: \documentclass[border=5pt]{standalone} \usepackage{pgfplotstable} \...
2
votes
2answers
38 views

pgfplotstable: How to get header-elements?

How can I replace e.g. the 'zeros' by the cell content of the current header? \documentclass[border=5pt]{standalone} \usepackage{pgfplotstable} \pgfplotstableread{ A B 1 2 0 2 1 0 0 2 0 ...
0
votes
1answer
16 views

Keep original head row when transposing twice with pgfplotstables

I'm trying to add rows to an existing pgfplotstables. So I'm using the method using twice pgfplotstabletranspose. But it adds a new head row. I would like to delete it in order to keep the original ...
0
votes
1answer
59 views

pgfplotstable: How to add variable names (x_1, x_2,…) on each column?

I would like to create a System of linear equations indeed with pgfplotstable. How can I add names of variables (x_1, x_2,... or something else: x,y,z), if some strings have been replaced? string ...
0
votes
1answer
74 views

pgfplotstable: change some cell contents

What do I have to do, if I want to have a 'gap' or a word e.g. 'zero' in a cell, if it's value is equal to 0? preproc/expr={##1==0 ? "111" : "##1"} works but something like preproc/expr={##1==0 ? "{}"...
2
votes
1answer
37 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
2answers
52 views

remove row from pgfplotstable macro

I've got to a point where I have some data stored in a pgfplotstable macro. I want to remove a row from that macro (a line where some data is missing) and then further process the remaining data (...
1
vote
0answers
36 views

tikz/pgf: table below graph [closed]

Currently looks like: Code: \documentclass[a4paper]{article} \usepackage{siunitx,tikz,pgfplots,pgfplotstable} \begin{document} \begin{minipage}{.4\textwidth} % some text before... Calciumcarbonat: ...
2
votes
2answers
59 views

Column width and row height with pgfplotstable

I'm looking for a way to change row height or width with pgfplotstables. Even in the pgfplotstables manual I cant find anything about this matter. I found a topic about this here but the only answer ...
0
votes
1answer
24 views

Using symbols in columns with pgfplotstabletypeset

I'm using pgfplotstabletypeset to get datas and store them in a table. Everything is working great. But when I'm trying to use the symbol delta ($\Delta$) in the columns of my table, it doesn't work ...
1
vote
2answers
54 views

pgfplotstables / amsmath: How to put in group-brackets into a pgfplotstable?

I read this thread and ask myself: How can I set bracktes of the \lgroup, \rgroup kind into a pgfplotstable? BTW: In this MWE below, I wrote the group-commands directly in the table; furthermore, I ...
1
vote
1answer
79 views

create header row and index column pgfplotstable

I am importing a matrix of this kind: 0 1 0 0 0 -1 0 0 1 0 1 0 0 0 0 0 -1 0 1 0 0 I would like to add a header row and an index column so that it looks the following way: e1 e2 ...
2
votes
1answer
42 views

Reading string from CSV in pgfplotstable

I have a CSV file which contains different sets of plot-data (x1,y1,z1), ..., (xn,yn,zn) and some additional data, one of which I would use as legend. My current code is as follows: \documentclass{...
5
votes
3answers
426 views

Heatmaps, matrix plots, imagesc and data structure

If one has a matrix, say: 16 2 3 13 5 11 10 8 9 7 6 12 4 14 15 1 This is possibly stored in a .dat file as shown above, and possible to have thousands of ...
3
votes
1answer
28 views

pgfplotstable's create col/expr does not invoke fpu on constants

I must admit that I am frequently stumbling over the limited numerical precision issues with pgfplots(table). I am aware that \pgfset{fpu} activates the IEEE double precision unit. Moreover, the ...
1
vote
1answer
94 views

How do I solve this issue I am having when graphing this CDF? [duplicate]

The graph is not working as intended and I am getting the following error code: ! Package pgfkeys Error: I do not know the key '/tikz/discontinuous' and I am going to ignore it. Perhaps you misspelled ...
0
votes
1answer
25 views

Curve fitted parameter appears as 0 in legend (pgfplots, gnuplot, pgfplotstable)

I fitted a curve on a dataset, but parameter c remains always 0 in the legend of the plot's fitting equation. Can you please help me why? I also checked the generated parameter.dat file and it ...
4
votes
3answers
66 views

Add text to a cell without moving anything else

I currently have a table using pgfplotstable that looks as follows. I would like to add text to one of these cells such that it does not move the position of the table in the page and does not change ...
2
votes
0answers
46 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
1answer
87 views

How to calculate a contingency table?

I am trying to calculate a contingency table of two discrete variables name and location. Missing levels should be 0, while each cell should be the count of each name-location combination. My initial ...
1
vote
1answer
56 views

Pgfplotstableset, longtable and subcaption

I am using pgfplotstableset and longtable to read data from a file and format it into a table composed of several subtables. I have managed to create the table and to include a caption over it. ...
0
votes
1answer
38 views

Graph from csv table (col sep=comma) with pgfplotsinvokeforeach

I have many huge csv files and need a easy way to plot all of them without defining headers etc. every time. Therefore I found this: https://tex.stackexchange.com/a/24023/95657 That is exactly what ...