plot issues

Ben Abbott bpabbott at mac.com
Wed Jun 3 10:00:40 CDT 2009


On Jun 3, 2009, at 9:16 AM, Ben Abbott wrote:

>
> On Jun 3, 2009, at 8:20 AM, Petr Mikulik wrote:
>
>> ***
>>
>> There is a bug in printing plot with colorbar:
>>
>> imagesc(1./hilb(33)); colorbar
>> print a.ps -dps
>>
>> => 1. the colorbar gets hidden under the plot
>>  2. width of the colorbar (compared to tics distance) is different
>>     on screen and in the postscript file
>
> The colorbar needs some work. The same problem can be produced on the
> screen as well (using a different sequence of commands). For example
>
> 	imagesc(1./hilb(33)); colorbar; axis square


>> ***
>>
>> Bug: 'Colorbar' tag is hidden in Octave, while it should be exposed
>> according to Matlab:
>>
>> imagesc(10./hilb(99)); colorbar
>> h=findobj(gcf, 'tag', 'Colorbar')
>> ... this fails in Octave (note: findall works OK)
>
> This does need to be fixed.

I've just pushed a changeset that fixes the handle-visibility and adds  
some demos illustrating the problem with printing above (no need to  
print).

A few weeks ago I tried to fix the colorbar problem, but only manage  
to give myself a head-ache. If anyone is inclined to tackle it, please  
do.

Ben




More information about the Bug-octave mailing list