|
From: Tait <gnu...@t4...> - 2008-01-04 23:27:28
|
Petr Mikulik <mikulik_physics.muni.cz> said (on 2008/01/04): > No, the error message is not correct, it should autoscale the cb-value to a > lower positive value, as it does in the same case for "with image" for > logged y or z axes. There must have been some change in cvs which broke this > for "matrix with image". > > Gnuplot has been always excellent in handling negative ranges in log scales. > For example, > > gnuplot> set xrange [-10:10]; set log y; plot 1/x I don't understand your example. The y axis range is auto-calculated (correctly, it seems) as 0.1 to 1. There is no negative log range there, and the negative y-values associated with the x=[-10:0] range are ignored. If you try something like: gnuplot> set xrange [-10:10]; set yrange [-1:1]; set log y; plot 1/x; You will, as expected, get the error "y range must be greater than 0 for log scale." This seems to be the case in 4.2 as well. Tait |