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

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

[Octave-bug-tracker] [bug #49492] gl2ps buffer size should be sized only


From: Rik
Subject: [Octave-bug-tracker] [bug #49492] gl2ps buffer size should be sized only once when producing Latex output
Date: Mon, 31 Oct 2016 19:33:56 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

URL:
  <http://savannah.gnu.org/bugs/?49492>

                 Summary: gl2ps buffer size should be sized only once when
producing Latex output
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Mon 31 Oct 2016 12:33:54 PM PDT
                Category: Performance
                Severity: 2 - Minor
                Priority: 5 - Normal
              Item Group: Performance
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

The sequence to produce output for Latex involves calling gl2ps_renderer::draw
twice.  See this comment in gl2ps-print.cc:


// For LaTeX output the print process uses 2 drawnow() commands.
// The first one is for the pdf/ps/eps graph to be included.  The
// print_cmd is saved as old_print_cmd.  Then the second drawnow()
// outputs the tex-file and the graphic filename to be included is
// extracted from old_print_cmd.


If the plot to print is very complicated, the gl2ps buffer may overflow in
which case Octave has to retry with a larger buffer size.  This is fine, but
after the first drawnow(), the correct buffer size is known and it shouldn't
be necessary to go through the time consuming step of sizing the buffer
again.

Code which produces problem:


nx=400;x=linspace(0,2*pi,nx);
ny=400;y=linspace(0,2*pi,ny);
array=sin(x).*transpose(sin(y));
pcolor(x,y,array);
print("temp","-depslatexstandalone");
#print("temp","-deps");  # This produces only one overflow sequence







    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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