Bash scripting 18 – Using data files 4
So, carrying on from the previous article(s).
Using the guide at [2]. We can set a few labels up so the graph looks nicer.
Once in gnu plot you can issue commands, then run replot to redraw the graph.
gnuplot> plot 'log.csv'
gnuplot> plot 'log.csv' with lines
gnuplot> set title 'Example Plot'
gnuplot> set xlabel 'x axis'
gnuplot> set ylabel 'y axis'
gnuplot> replot
gnuplot> set key top right
gnuplot> replot
By running replot we can see the results are what we want before carrying on.
All this is just a small sample of what can be done, I will explore more on this once I have some useful, rather than randomly generated data to plot or do things with.
References
Chat
I am on the Devon and Cornwall Linux user group mailing list and also their matrix channel as zleap, it is better to ask there, that way others can answer too.
Tags
#Bash,#Bashscripting,#Files,#UsingDataFiles,#Data,#gnuplot,#graphs
Mastodon | Peertube | Join Mastodon |
AI statement : Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.