Hi Ethan,

if ytics is set to 20 you have to compute the integer-bounds of log_20 ( data ).

In my example, this is -3 , 4.

so the autorange for the logscale plot should compute bounds from 20**(-3) to 20**4

like you see it in the second plot

# create log plot to base 20 by hand unset logscale y set ytics 1 # ytics in power of 20 plot "-" u 1:( log($2)/log(20) ) 1 20000. 2 10000. 3 8000. 4 2000. 5 400. 6 20. 7 4. 8 1. 9 0.2 10. 0.0012 e pause -1 "RETURN" # get log_20 bounds of data # reach from -3 to 4 ymin = int (GPVAL_DATA_Y_MIN) -1 ymax = int (GPVAL_DATA_Y_MAX) +1 set ytics 20 set logscale y set yrange [ 20**ymin: 20**ymax] # This setting should be computed automatically plot "-" u 1:2 1 20000. 2 10000. 3 8000. 4 2000. 5 400. 6 20. 7 4. 8 1. 9 0.2 10. 0.0012 e