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

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

[Octave-bug-tracker] [bug #59819] Saveas does not work correctly


From: Dmitry
Subject: [Octave-bug-tracker] [bug #59819] Saveas does not work correctly
Date: Tue, 5 Jan 2021 07:59:27 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36

Follow-up Comment #2, bug #59819 (project octave):

Here is an script example which does not work on windows 10 with octave 6.1
release.
A generated svg file is attached
Quite interestingly, it works without "legend" command

function  test_saveas()
   close all
   f = figure;
   x1 = (0:0.1:12)';
   x2 = (0:0.01:10)';
   ysin = 100*sin(x1);
   ycos = 10*cos(x2);   
   [p1,h1,h2] = plotyy(x1,ysin ,x2,ycos);
   set(h2,'color','red')  
   set(h1,'color','black') 
   set(p1(1),'fontsize', 18);
   set(p1(2),'fontsize', 18);
   xlabel('x')
   ylabel(p1(1),'100sin(x)')
   ylabel(p1(2),'10cos(x)')
   legend('100sin(x)','10cos(x)','Location','southeast') 
   title('Test saveas function')

   saveas(f,'a.jpg')
   saveas(f,'a.svg')
 
end


(file #50657)
    _______________________________________________________

Additional Item Attachment:

File name: a.svg                          Size:31 KB
    <https://file.savannah.gnu.org/file/a.svg?file_id=50657>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59819>

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




reply via email to

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