Excludes scientific number

I use set format x '%.0e'to indicate the numbers of the x-axis in a scientific format. The problem is that it 0displays as 0E+00. How can I exclude 0in a scientific format?

Another number also has two digits in the exponent. Instead 2E+01I want to 2E+1.

+2
source share
1 answer

To use a different format for the axis y, use %t(mantissa to base 10) and %t(power up to base 10). See the documentation for "format specifiers" (or enter help format_specifiers).

To change a single entry, you can overwrite the automatic using set ytics addand using the same numerical value:

set yrange[0:100]
set xrange[0:100]
set format y '%.0tE%+T'
set ytics add ('0' 0)

plot x

( 4.6.4):

enter image description here

+4

All Articles