octave-maintainers
[Top][All Lists]
Advanced

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

Re: Help with savefig


From: Kai Torben Ohlhus
Subject: Re: Help with savefig
Date: Thu, 1 Nov 2018 11:31:45 +0100



On Thu, Nov 1, 2018 at 12:39 AM Rik <address@hidden> wrote:
> Doesn't change the value.
Hmm, okay.  Does openfig do anything?  How about this test code:

--- Code ---
h = figure
peaks
savefig (h, 'myfig.fig')
h2 = openfig ('myfig.fig')
get (h2, 'FileName')
--- End Code ---

--Rik


Run with R2018b:

--- Output ---
h = 

  Figure (1) with properties:

      Number: 1
        Name: ''
       Color: [0.9400 0.9400 0.9400]
    Position: [360 198 560 420]
       Units: 'pixels'

  Show all properties

 
z =  3*(1-x).^2.*exp(-(x.^2) - (y+1).^2) ... 
   - 10*(x/5 - x.^3 - y.^5).*exp(-x.^2-y.^2) ... 
   - 1/3*exp(-(x+1).^2 - y.^2) 
 

h2 = 

  Figure (2) with properties:

      Number: 2
        Name: ''
       Color: [0.9400 0.9400 0.9400]
    Position: [364 191 560 420]
       Units: 'pixels'

  Show all properties


ans =

    '/home/siko1056/Downloads/myfig.fig'
--- End Output --- 

Best,
Kai

reply via email to

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