legend on contour plot

David Bateman adb014 at gmail.com
Sat Feb 9 15:38:38 CST 2008


Marco Caliari wrote:
>> There is no way yet to label the contour lines.. The only legend
>> possible at the moment is with "colorbar()". See
>>
>> contour(peaks)
>> colorbar
> 
> I see... nothing. White empty room is created on the right, but no color 
> bar. Moreover, the axes limits are not correct: a level curve is cutted on 
> the top. GNU Octave 3.0.0 for Windows.
> 
> Marco

I'm moving this to the maintainers list as its now a bug, rather than a
request for help.

The axis limits are automatically calculated, and as there is no contour
in certain area to axes are contracted. This is not an issue.

However the fact that the colorbar doesn't appear is. This is very
strange and I just noticed it as well. This worked before the Octave
3.0.0 release and no longer works. Looking at what is sent to gnuplot I
see no reason for this not to work.. I created a gnuplot debug file with

contour(peaks)
colorbar
drawnow("x11","/dev/null",false,"debug.gp")

and attach it here. The gnuplot colorbox is inlcuded and if I run in gnuplot

load "debug.gp"
show colorbox

gnuplot thinks the colorbox is displayed. Petr do you have any ideas? I
suspect its a subtle bug with gnuplot that we previously workaround by a
combination of options, and had realized that we did.

There is a secondary issue in that the cbtics seemed to have disappeared
somewhere before 3.0 as well and so the axes of the colorbar aren't
displayed either (or would be for contours if teh colorbox was displayed)

Regards
David

-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug.gp
Type: application/octet-stream
Size: 19615 bytes
Desc: not available
Url : https://www.cae.wisc.edu/pipermail/octave-maintainers/attachments/20080209/274afd41/attachment-0001.obj 


More information about the Octave-maintainers mailing list