Can gnuplot use non-normalised scientific notation to label axis ticks? -


i have plot generated gnuplot 4.4 on centos 6.6, y axis has auto-generated ticks following labels:

1.9e-05 1.8e-05 1.7e-05 1.6e-05 1.5e-05 1.4e-05 1.3e-05 1.2e-05 1.1e-05   1e-05   9e-06 

is possible request, in gnuplot script, axis have consistent exponents? this:

19e-06 18e-06 17e-06 16e-06 15e-06 14e-06 13e-06 12e-06 11e-06 10e-06  9e-06 

i think make values easier read , understand @ glance.

i realise scientific notation conventionally normalised such coefficient sits in range [0,1]. i'd turn off.

gnuplot can't automatically. need select desired exponent, scale data appropriately , add exponent manually format:

exponent = -6 set format y '%.0f'.sprintf('e%d', exponent) scale = 10**(-exponent) plot 'data.dat' using 1:($2*scale) 

edit: specific example use gnuplots ability use scientifc powers (multiple of three):

set terminal pngcairo enhanced font 'dejavu sans' set encoding utf8 set format y '%.0s✕10^{%s}' set xrange [9:19] plot 1e-6*x 

note, utf8 encoding required here multiplication sign ✕ (u+2715). output gnuplot 4.4.4 is

enter image description here


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -