Graphics, Figures & TablesHow to plot a XY graph by rendering the data from text file

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Padoala_Priyanka
Posts: 1
Joined: Mon Dec 05, 2016 1:37 pm

How to plot a XY graph by rendering the data from text file

Post by Padoala_Priyanka »

Hi,
I want to read the data from text file and plot a XY graph. But, the Problem in my text file is I do not have data in any columns. It is some thing like which you can see in the screenshot attached. For every second there are different values for each Parameter. So, the entire file is about 6629 seconds. I want to plot the graph between any chosen 2 Parameters , for e.g. Vehicle Speed and CO2masswet. I tried googling but could not find anything. Can any one help me. Thanks in advance.
Attachments
Capture.PNG
Capture.PNG (36.61 KiB) Viewed 2972 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

thomasb
Posts: 134
Joined: Thu Aug 03, 2017 10:54 am

How to plot a XY graph by rendering the data from text file

Post by thomasb »

Hello,
The pgf package proposes a delimiter recognition, if I remember well... No ?
Post Reply