octave-maintainers
[Top][All Lists]
Advanced

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

Re: octave 3.1.51: NaNs and pcolor for opengl backend (patch attached)


From: Michael Goffioul
Subject: Re: octave 3.1.51: NaNs and pcolor for opengl backend (patch attached)
Date: Tue, 26 Aug 2008 10:33:49 +0200

On Mon, Aug 25, 2008 at 8:11 PM, Alexander Barth
<address@hidden> wrote:
> Hi,
>
> I tested the fltk-opengl backend of octave 3.1.51. It seems that
> pcolor does not handle correctly NaNs in the cdata matrix. The
> corresponding rectangles are colored while they shouldn't. This can be
> easily reproduced by:
>
> input_event_hook ("__fltk_redraw__");
>  __init_fltk__ ();
> set (gcf (), "__backend__", "fltk");
> a = ones(4,4);
> a(2,2) = NaN;
> pcolor(a)
>
> Attached is a small patch that ignores NaNs and Infs.

Thanks for the patch. I had a quick look, but I think it's a little
bit more complicated than that, for instance in the case of
"shading interp": when fc_mode==2, then you should check
all 4 vertices.

> Another issue is that fonts are not drawn. Is that not yet implemented
> or did I configure octave not properly.

As Shai told you, this is not implemented yet. When I get some
time, I'll try to hack a quick and dirty solution that allows to show
simple text strings (without TeX formatting).

Michael.


reply via email to

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