tics of log color axis

Ben Abbott bpabbott at mac.com
Thu May 28 06:47:13 CDT 2009


On May 28, 2009, at 7:14 AM, Petr Mikulik wrote:

>> Petr, please look over these changes.
>
> I have refreshed Octave.
>
> The following correct example works OK:
>  imagesc(1./hilb(10)); h=colorbar; set(h,'yscale','log');
>
> Example with wrong settings fails:
>  imagesc(log10(1./hilb(10))); h=colorbar; set(h,'yscale','log');
>
> For compatibility, please change the code to draw an empty colorbar
> in this case by means of:
>  unset y2tics
>  plot 1/0

Ok. I see the problem. However, I'll have to study the code to figure  
out how to do that.

> Can you please also implement the missing opposite setting?
>  set(h,'yscale','lin');

Isn't the opposite setting "linear"?

>> What needed to be done to properly render the colorbar for all the  
>> demos
>> looks strange to me (a gnuplot bug?). Specifically, when y2 has tic
>> labels, I had to set both yrange and y2range. Ditto for x2.
>
> It's not a bug, it is required: if you "plot ... axes x1y1" and "set
> y2tics", then the y2 range is undefined and must be set explicitly.  
> See this
> example:
>
> reset
> set xrange [-20:20]
> set yrange [1:150]; set log y
>
> set ytics nomirror
> set y2tics nomirror
>
> set term x11 1
> plot 1+x*x axes x1y1
> set term x11 2
> plot 1+x*x axes x1y2

Ok. Thanks!

Ben


More information about the Bug-octave mailing list