octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: legend on contour plot


From: David Bateman
Subject: Re: legend on contour plot
Date: Sat, 09 Feb 2008 22:38:38 +0100
User-agent: Thunderbird 2.0.0.6 (X11/20070914)

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

Attachment: debug.gp
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]