|
From: Thomas S. <t.s...@fz...> - 2012-06-25 15:04:06
|
you forgot 'xtic':
plot 'mydata.dat' using (100.*$2/$6):xtic(int($0)%5==0?stringcolumn(1):"") t
column(2), ...
janjust wrote:
>
> Hi Thomas, thank you for your suggestion but when I try that it aborts
> with the following error:
>
> plot 'mydata_mibench_CRC32.dat' using
> (100.*$2/$6):(int($0)%5==0?stringcolumn(1):"") t column(2), for [i=3:5]
> 'mydata_mibench_CRC32.dat' using (100.*column(i)/column(6)) title
> column(i)
>
> ^
> "plot.gpi", line 34: Too many columns in using specification
>
> my original line looked like this:
> 32 i = 5
> 33 plot 'mydata_mibench_CRC32.dat' using
> (100.*$2/$6):(int($0)%5==0?stringcolumn(1):"") t column(2), \
> 34 for [i=3:5] 'mydata_mibench_CRC32.dat' using
> (100.*column(i)/column(6)) title column(i)
>
> Any ideas?
>
> On a slightly unrelated note: my posts still show as pending, 3 days
> later... but I'm registered and can't tell that I have any formatting
> errors. Thoughts?
>
> Thank you for your help!
> -Tommy
>
>
> Thomas Sefzick wrote:
>>
>> use the datafile linenumber ($0 or column(0)) modulo the
>> stepsize (here: 5) and test if it's zero:
>>
>> plot 'mydata.dat' using
>> (100.*$2/$6):xtic(int($0)%5==0?stringcolumn(1):"") t column(2), ...
>>
>>
>> janjust wrote:
>>>
>>> Hello everyone,
>>> I'm trying to generate a rowstacked histogram for various data
>>> points
>>> My data snippet looks like this:
>>>
>>> 1 #Gnuplot data
>>> 2 Range Global Heap Stack Unidentified Total
>>> 3 9999 4258 0 5740 0 10000
>>> 4 19999 3236 0 6764 0 10000
>>> 5 29999 3356 0 6644 0 10000
>>> 6 39999 3261 0 6739 0 10000
>>> 7 49999 3291 0 6709 0 10000
>>> 8 59999 3148 0 6852 0 10000
>>> 9 69999 3292 0 6708 0 10000
>>>
>>> and my script is attached, but the key line is below:
>>> 30 i = 5
>>> 31 plot 'mydata.dat' using (100.*$2/$6):xtic(1) t column(2), \
>>> 32 for [i=3:5] 'mydata_mibench_jpeg.dat' using
>>> (100.*column(i)/column(6)) title column(i)
>>>
>>> The problem I'm getting is that I don't want every xtic to be printed. I
>>> have thousands of lines and ideally I want to print only every X^{th}
>>> line.
>>>
>>> I found this
>>> https://groups.google.com/forum/?fromgroups#!topic/comp.graphics.apps.gnuplot/M_ldKLSFXwg
>>> page , but when i try to use something similar I get an error.
>>>
>>> So to recap: I would like to print column 1 as my xtic but I want to
>>> print only every X^{th} xtic.
>>>
>>> Does anybody know how to achieve this?
>>> Regards,
>>> Tommy
>>>
>>>
>>
>>
>
--
View this message in context: http://old.nabble.com/gnuplot-histogram-xtic%281%29-tp34050807p34067210.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|