Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ethan A Merritt Newsgroups: comp.graphics.apps.gnuplot Subject: Re: concatenating xticlabels and y-axis-formatting Date: Thu, 25 Sep 2014 19:51:27 -0700 Organization: made entirely of Lego Lines: 46 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Fri, 26 Sep 2014 02:51:27 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="7bbfccb08e3cb0f92ebf95516f5f5a81"; logging-data="10782"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/AseQY4ZqF6LCQEsWW4u50" User-Agent: KNode/4.11.4 Cancel-Lock: sha1:+vEFKfkafdZLAdbGtb8JnyfiqEA= Xref: csiph.com comp.graphics.apps.gnuplot:2600 Bart Vandewoestyne wrote: > On Thursday, September 25, 2014 10:55:46 AM UTC+2, Bart Vandewoestyne > wrote: >> >> As you can see, currently the xticlabels are taken from the first >> column. I would like the xticlabels to be the concatenation of >> columns 2, 3 and 4. I tried >> >> plot "BigBenchTimes_short.csv" using >> 7:(xticlabels(stringcolumn(2).stringcolumn(3).stringcolumn(4))) ti "" >> >> but this gives me a segmentation fault: >> >> bart@speedwing:~/Dropbox/Public/gnuplot$ gnuplot BigBenchTimes.pl >> >> Segmentation fault (core dumped) > > I just noticed that the following *does* work: > > plot "BigBenchTimes_short.csv" using 7:xticlabels(sprintf("%s, stream > %s, query %s", stringcolumn(2), stringcolumn(3), stringcolumn(4))) ti > "" > > Exactly what I needed, so first problem solved :-) > > For showing the milliseconds in HH:MM:SS.SSS I haven't figured out a > solution yet. I tried several things with > > set ydata time > > or > > set format y "%H:%M:%S" > > but didn't find something that works yet. Any hints on this one are > still welcome. yticlabels(8) will echo back what's in the file. Is that what you want? > > Regards, > Bart