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: Sat, 30 Oct 2010 01:46:36 +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 #29, bug #31305 (project octave):

Forgot to follow up on the printing. With the tip at 11168 and David's
patch.contour4 patch applied, I'm able to print the contours as well.

Also, while "axis tight" results in a blank window with axis limits [1 20 1
20], using "xlim([1 20]); ylim([1 20])" gives the proper result.

I experimented with how axis() sets the limits for the "tight" option. If I
modify axis:__do_tight_option__ as ...

function __do_tight_option__ (ca)
set (ca,
     "xlim", __get_tight_lims__ (ca, "x"),
     "ylim", __get_tight_lims__ (ca, "y"))
# set (ca,
#      "xlim", __get_tight_lims__ (ca, "x"),
#      "ylim", __get_tight_lims__ (ca, "y"),
#      "zlim", __get_tight_lims__ (ca, "z"));
endfunction

Then "contour(peaks(20))" gives the correct result.

Changing to ...

function __do_tight_option__ (ca)
zlim_orig = get (ca, "zlim")
zlim_tight = __get_tight_lims__ (ca, "z")
set (ca,
     "xlim", __get_tight_lims__ (ca, "x"),
     "ylim", __get_tight_lims__ (ca, "y"),
     "zlim", __get_tight_lims__ (ca, "z"))
endfunction

Then when I call "contour(rand(20))", I see a blank axis box and the debug
lines give ...

    zlim_orig =   0   1
    zlim_tight =   0.0047762   0.9994125

If I follow up with "zlim([0 1])", then I see the correct result.


    _______________________________________________________

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]