[Top][All Lists]

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

[Octave-bug-tracker] [bug #57651] Second print command results in differ

From: Rik
Subject: [Octave-bug-tracker] [bug #57651] Second print command results in different marker size
Date: Sun, 26 Jan 2020 23:33:16 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #7, bug #57651 (project octave):

@Pantxo: I tried to benchmark any slowdown from the proposed patch using

N = 20;

close all;

bm = zeros (N,1);
for i = 1:N
  h = figure ();
  bm(i) = toc;
  close (h);

Instead, I got reasonably frequent segmentation faults.  I don't think this
approach will work.

Next, I tried adding something equivalent to print.m

  if (strcmp (get (opts.figure, "PaperPositionMode"), "auto"))
    set (opts.figure, "PaperPositionMode", "manual");
    set (opts.figure, "PaperPositionMode", "auto");

However, this still produced a slightly different print out for the first
time.  I tried various combinations of adding drawnow(), pause(), etc. and it
is always a problem.  

I'm not sure how to proceed.  It works if I do something like

set (gcf, 'paperposition', [0, 0, 1, 2]);
set (gcf, 'paperpositionmode', 'auto');

but only when this occurs outside of print.m.


Reply to this item at:


  Message sent via Savannah

reply via email to

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