Re: 12M? or 12 000 000? (not 12000000)

Emanuel Berg <[email protected]> Tue, 28 Jun 2022 02:42:32 +0200
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <[email protected]>
> The only thing that isn't automated [...] are the user
> names, those are known tho (from the log file names) so they
> just need to be passed to gnuplot - maybe the columns in the
> data files can be assigned names (a multi-column header)?

So the data for day x is now at line x in the .dat file, e.g.
day 147 at line 147 says

  11814601 737184 610310 13198 4223 1885

Can I maybe tag these data, like this

  solene:11814601 incal:737184 lich:610310 josk:13198 rjc:4223 katzeilla:1885

or in some other way so that gnuplot will associate the graph
with that name?

So I don't have to do this hard-coding of the names?

data="/home/incal/public_html/hits/hits.dat"
plot \
 data u ($0+1):1 w l lc "cyan"    lw 2 t "solene",   \
 data u ($0+1):2 w l lc "magenta" lw 2 t "incal",    \
 data u ($0+1):3 w l lc "yellow"  lw 2 t "lich",     \
 data u ($0+1):4 w l lc "green"   lw 2 t "josk",     \
 data u ($0+1):5 w l lc "white"   lw 2 t "rjc",      \
 data u ($0+1):6 w l lc "red"     lw 2 t "katzeilla"

?

The hard-coding isn't just bad because it is hard-coding in
general, which is bad (almost always), here it is also the
last step that isn't automated ... 

https://dataswamp.org/~incal/hits/hits.gpi
https://dataswamp.org/~incal/hits/hits.png

-- 
underground experts united
https://dataswamp.org/~incal



_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info