Skip to content

openfig

plot · scripts/plot/util/openfig.m

fig = openfig (filename)
fig = openfig (filename, "new")
fig = openfig (filename, "reuse")
fig = openfig (filename, "visible")
fig = openfig (filename, "invisible")
  Open the figure(s) stored in a .fig file (the extension may be left
  out) and return the handle(s).  "new" (default) always creates a new
  figure; "reuse" returns a figure opened earlier from the same file
  when there is one.  "invisible" opens the figure hidden, "visible"
  (default) leaves the saved visibility.  The figure becomes current.