Reputation: 955
Using gnuplot
v4.6.6:
To increase the available space for the actual graph I want to reduce the space required by the y-axis label to the bare minimum.
I'm now using: set format y "%4.1s%c"
.
Which results in labels like 500.0k
. It would be nice if I could reduce this by one more character resulting in labels that look like this : 500k0
However, I can't figure out how to get this. Can it be done, and if so: how?
Thanks for your help.
EDIT: Here's an example graph of what I have now:
For this graph I use set format y "%3.0s%c"
which is okay most of the time. But in some cases an extra decimal would be helpful.
Upvotes: 1
Views: 623
Reputation: 43495
You can modify the decimal character:
set decimalsign 'k'
Update:
Or you could plot log10(bits/s)
;
set yrange[0:9]
set ytics 1
plot 'data.d' using 1:(log10($2))
That would represent everything between 0 bits/s and 10^9 bits/s with a single digit on the y axis...
Upvotes: 2