octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #31305] slow contour plot


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #31305] slow contour plot
Date: Fri, 29 Oct 2010 01:50:14 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.41 Safari/534.7

Follow-up Comment #21, bug #31305 (project octave):

If I remember correctly, this was working when the contour_fix2.patch was
applied, but now with contour_fix.patch.

Diffing the two I get ...

$ diff contour_fix.patch contour_fix2.patch 
4c4,13
< @@ -232,138 +232,111 @@
---
> @@ -211,6 +211,8 @@
>  
>    add_patch_children (hg);
>  
> +  axis tight
> +
>    if (!isempty (opts))
>      set (hg, opts{:});
>    endif
> @@ -232,138 +234,115 @@
82,88d90
< -            lvl_bel_idx = tmp(1);
< -            ## Set color of patches found.
< -            cont_lev(ma_idx) = cont_lev(lvl_bel_idx);
< -          else
< -            ## Set lowest level contour to NaN.
< -            cont_lev(ma_idx) = NaN;
< -          endif
122,124c124,131
< +          lvl_bel_idx = tmp(1);
< +          ## Set color of patches found.
< +          cont_lev(ma_idx) = cont_lev(lvl_bel_idx);
---
> +          if (! isempty (tmp))
>              lvl_bel_idx = tmp(1);
>              ## Set color of patches found.
>              cont_lev(ma_idx) = cont_lev(lvl_bel_idx);
>            else
> -            ## Set lowest level contour to NaN.
>              cont_lev(ma_idx) = NaN;
>            endif

I'm a bit embarrassed to admit it, but I don't understand why this worked. I
came about this change by experimenting.

In any event, perhaps it gives some hints? 

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31305>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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