# HG changeset patch # User Rik # Date 1378939460 25200 # Node ID f58ad514372ccf7df0a6adf8e5f2e5279ef199ae # Parent f47cfca56eb980c892bad2c79532198876ce8bf1 __contour__.m: Turn off auto clim adjustment while patches are being added. And then turn back on when complete. Performance increase. * scripts/plot/private/__contour__.m: Set climmode to manual while adding patch objects and then restore mode at end of for loop. diff -r f47cfca56eb9 -r f58ad514372c scripts/plot/private/__contour__.m --- a/scripts/plot/private/__contour__.m Wed Sep 11 08:35:09 2013 -0700 +++ b/scripts/plot/private/__contour__.m Wed Sep 11 15:44:20 2013 -0700 @@ -235,6 +235,10 @@ filled = get (hg, "fill"); ca = gca (); + ## Turn off automatic updating of clim while adding patches + climmode = get (ca, "climmode"); + set (ca, "climmode", "manual"); + if (strcmpi (lc, "auto")) lc = "flat"; endif @@ -393,6 +397,8 @@ endwhile endif + set (ca, "climmode", climmode); + endfunction function update_zlevel (h, d)