Linked Questions

3
votes
2answers
865 views

Using a data file as input in tikz

I have a sorted data in a file (named data.dat). These data should be plotted vertically. I prepared a code in latex using tikz that works. The problem is each data is typed one by one in the main ...
3
votes
1answer
3k views

get max/min value in a table column with pgfplot

I'd like to get the max/min value from a specific column table via function \findmax and \findmin in order to use it in ymin and ymax. I really dont get how \pgfplotstablesort function works. What ...
9
votes
1answer
634 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} \...
8
votes
1answer
337 views

appearance of regression line

Can anyone explain the uneven appearance of the regression line in this plot? \documentclass[border=0.5cm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.16} \usepackage{pgfplotstable} \...
8
votes
1answer
194 views

Is it possible to generate custom exams taken the student's names from a csv archive?

I'd like to generate a single PDF file containing multiple exams (template available below). Each exam must have the field 'name' (see template) filled with the name of a student taken from a ...
5
votes
2answers
202 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 ...
2
votes
1answer
500 views

Setting axis limits (xmin, xmax, ymin, ymax) from external .dat file

I am importing the data for my plot from a .dat file produced in matlab. I would also like to set axis limits from a .dat file. Is there a way to set xmin, xmax, ymin and ymax from a table in a .dat ...
5
votes
1answer
246 views

Load data into custom tikZ timeline plot from a .csv file

I have created a custom timeline plot in tikz, and am aware of other options for timelines but I need mine to be more customizable. A mwe is shown below. I would like to modify this tex file to read ...
5
votes
1answer
234 views

pgfplots Regression with Range of Rows using CSV with More than 2 Columns

This question builds upon this question. I have a CSV file. The CSV file has more than two columns. I would like to plot a regression (in the M(n-)WE below, Regression 2) using: Any specified column ...
2
votes
1answer
595 views

Apply Math operations on loaded data inside PGF/Tikz plot for each column

I am new to LaTeX plotting system and I have got lost in a problem, I have a csv file which has 11 columns, and I want to plot columns 2 to 11 vs column 1. So I do it as given in the following code (...
1
vote
1answer
309 views

How to plot histogram from a tab separated csv file containing tabular list of ordered tuples?

I would like to plot a histogram in which x-axis will contains ordered tuple data and y-axis will contains its frequencies. A CSV file containing data as follows : x_values y_frequency (2,102,100)...
2
votes
1answer
292 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
2answers
104 views

Drawing two curves from a csv file

Hello fellows and folks! I am working with python and I need to draw the following picture in latex by using the values from the variables. They are a ton, so it is not like the usual stuff where I ...
1
vote
1answer
126 views

How can I add a fixed point to a line of best fit? [duplicate]

I am using y = {create col/linear regression={y=data}} with addplot to generate a line of best fit from data I'm pulling in from a file. How can I force the line to include the origin as a point it ...
1
vote
1answer
89 views

How to fix an Answer Key code in a particular case of random answer exam? (See more)

The essentials of the code below have been suggested at link. As you can see, the command set to \ answerkey is working cumulatively. How to fix it? \documentclass{article} \usepackage{xparse,...

15 30 50 per page