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

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

[Octave-bug-tracker] [bug #53926] Plot patch on top of plot patch gets c


From: anonymous
Subject: [Octave-bug-tracker] [bug #53926] Plot patch on top of plot patch gets corrupted when multiple text is written
Date: Wed, 16 May 2018 21:07:34 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Firefox/45.0

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

                 Summary: Plot patch on top of plot patch gets corrupted when
multiple text is written
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu 17 May 2018 01:07:32 AM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: None
         Originator Name: Daniel Eldred
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: Mac OS

    _______________________________________________________

Details:

%
% Program to illustrate patch on top of patch bug.  Most recent
% patch is not displayed properly if text is written to the
% figure more than 56 times.
%

%
% D. Eldred, 5/16/2018
%

hold off
clf;

%
% Draw a box using the patch facility
%
x = [.2 .8 .8 .2];
y = [.2 .2 .8 .8];
patch(x, y, [.4 .8 1]);

%
% Allow additional drawing to plot
%
hold on

%
% Draw another patch on top of the first
%
x = [.3 .7 .7 .3];
y = [.3 .3 .7 .7];
patch(x, y, [0 1 1]);

%
% Now draw text anywhere within the patch area, for at least
% 57 times to reproduce the bug
%
for i = 1:57
  text(.5, .5, 'x');
end;

%
% Clean up
%
axis([0 1 0 1]);
hold off

%
% Note that the Octave plot displays properly.  It is when
% saved to a file that the plot is messed up
%
print -djpg out2.jpg
print -dpdf out2.pdf
print -dpng out2.png

%
% Look at the output files 'out2.jpg', 'out2.pdf', and
% 'out2.png'.  The patch box is displayed incorrectly.
% However, the patch box on the original Octave plot is
% displayed correctly.
%



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 17 May 2018 01:07:32 AM UTC  Name: correct.tiff  Size: 10KiB   By:
None

<http://savannah.gnu.org/bugs/download.php?file_id=44165>
-------------------------------------------------------
Date: Thu 17 May 2018 01:07:32 AM UTC  Name: incorrect.tiff  Size: 24KiB   By:
None

<http://savannah.gnu.org/bugs/download.php?file_id=44166>

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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