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

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

[Octave-bug-tracker] [bug #31317] Plot attributes not saved when printin


From: Bryan Usevitch
Subject: [Octave-bug-tracker] [bug #31317] Plot attributes not saved when printing to .eps file
Date: Tue, 12 Oct 2010 19:53:30 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10

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

                 Summary: Plot attributes not saved when printing to .eps
file
                 Project: GNU Octave
            Submitted by: beuwinkle
            Submitted on: Tue 12 Oct 2010 07:53:29 PM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.2.3
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Octave allows the fontsize to be changed on plots.  However, when printing
these plots to an eps file, the changed attributes are not saved. 
Experimentation found that when printing to a postscript file, the changed
attributes were saved (see below for a reason why this didn't result in a good
work around).  Consider the following code:
fs = 18;
text(v(1,1)+2,v(2,1)+2.8,'y1','FontSize',fs)
text(v(1,2)+2.2,v(2,2)+3,'y2','FontSize',fs)
grid on
xlabel('x1','FontSize',fs);
ylabel('x2','Fontsize',fs);
set(gca,'Fontsize',fs)
print -dpsc test.ps
print -depsc2 test.eps

Viewing the test.eps file with gv showed that the fontsize was not saved as
18.  However, viewing test.ps shows that the fontsize was indeed changed to
18.  

Interestingly, the .ps output also gives a bounding box.  So I used the
following initially as a workaround:
print -dpsc test.eps
However, the problem is that the -dpsc does not give a tight bounding box
(there was a lot of white space around the figure).

The attached file gives a full working example.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 12 Oct 2010 07:53:29 PM GMT  Name: mkpca.m  Size: 544B   By:
beuwinkle

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

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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