On Feb 24, 2013, at 7:43 AM, bob wrote:
> Hi,
>
> I am trying to do this:
>
> scatter(dataPts(:,1),dataPts(:,2));
> hold on;
> plot(0,0,'xDataSource','curveFitPts(:,1)','yDataSource','curveFitPts(:,2)');
> hold off;
> # later in a loop..
> refreshdata(gcf(),'caller');
> drawnow;
>
> But the problem is, calling refreshdata over the figure handle removes the earlier scatter plot also.
>
> I guess if there would be a way to simply do a refreshdata over a plot handle rather than the entire figure would keep the scatter plot permanently. Any body know how to do that ?
>
> --
> bob
I think you'll need to "hold on" in order to preserve the other plot objects.
scatter(dataPts(:,1),dataPts(:,2));
hold on;
plot(0,0,'xDataSource','curveFitPts(:,1)','yDataSource','curveFitPts(:,2)');
hold off;
# later in a loop..
hold on;
refreshdata(gcf(),'caller');
hold off;
drawnow;
Ben
_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave