tics of log color axis
Ben Abbott
bpabbott at mac.com
Thu May 28 02:29:50 CDT 2009
On May 28, 2009, at 3:22 AM, Jaroslav Hajek wrote:
> On Thu, May 28, 2009 at 9:16 AM, Ben Abbott <bpabbott at mac.com> wrote:
>>
>> On May 24, 2009, at 2:31 PM, Petr Mikulik wrote:
>>
>>> I have noticed two problems related to log color axis. These bugs
>>> are in
>>> Octave 3.1.55 (while in Octave 3.0.x it does not work "at all"):
>>>
>>> A. Wrong tic labels in figure 2:
>>> figure(1)
>>> imagesc(1./hilb(99)); h=colorbar;
>>> figure(2)
>>> imagesc(1./hilb(99)); h=colorbar; set(h,'yscale','log');
>>>
>>> B. Yet another wrong tic labels:
>>> imagesc(log10(1./hilb(99))); h=colorbar;
>>> TL = get(h, 'YTick');
>>> % set(h, 'YTickLabel', sprintf('10^%g|', TL));
>>> set(h, 'YTickLabel', sprintf('10^{%g}|', TL));
>>>
>>>
>>> Thanks for fixing this,
>>> Petr
>>
>> Regarding "B", I've attached a changeset. I did some limited
>> testing with
>> no problems.
>>
>> Ben
>>
>
> Is this the same as 9272?
>
> cheers
No.
This changeset will parse "1|2|3|4" into {"1","2","3","4"} when
rendering ticklabels.
Ben
More information about the Bug-octave
mailing list