Re: Plot to a figure from a function
- From: "Rick Rosson" <rrossoNO@xxxxxxxxxxxxxxxx>
- Date: Sat, 29 Sep 2007 17:03:42 -0400
Hi David,
The plot function expects an axes handle, not a figure handle. Try the
following:
f = figure;
a = axes;
MyFunction(a, ...);
Inside the function:
plot(a, ... );
I hope that helps.
Thanks.
Rick
"David Doria" <daviddoria@xxxxxxxxx> wrote in message
news:fdmcgt$1cj$1@xxxxxxxxxxxxxxxxxxxxx
in my script i do
h = figure;
then i have a loop which calls a function 'MyFunction' with
MyFunction(h(1), more_params)
the function definition for MyFunction is
function MyFunction(h, more_params)
inside MyFunction, i do
plot(h, ones(10))
and nothing(!) happens until after the program finishes
running, at which point i get a blank axis displayed
does it not work like this?
Thanks,
David
.
- References:
- Plot to a figure from a function
- From: David Doria
- Plot to a figure from a function
- Prev by Date: how to save a polygon figure with alpha ~= 1 as vector image, rather than raster image?
- Next by Date: Re: problem with calculating period with FFT
- Previous by thread: Plot to a figure from a function
- Next by thread: how to save a polygon figure with alpha ~= 1 as vector image, rather than raster image?
- Index(es):
Relevant Pages
|