New Plotting Functions: findall.m and allchild.m
Bill Denney
wsloand at gmail.com
Tue Mar 4 22:16:02 CST 2008
John W. Eaton wrote:
> | Also, I was trying to write hgsave and hgload, but I could not find a
> | way to create a handle without using the plotting functions. Is there a
> | way to generate handle objects without going through the plotting functions?
>
> Not that I know of, so at least part of hgload may need to be in C++.
>
> If you could create graphics handles without generating a graph, how
> would you want to do that? What data do you have available when you
> want to create the graphics object?
>
Attached is what I wrote for hgsave. I was thinking that hgload would
essentially do what hgsave does in reverse, but assigning new handle
numbers to everything. It's a little more complex because there are
child handles in places other than the children field (i.e. the title,
xlabel, ylabel, and zlabel), but that was the general idea I had for it.
The alternative to the approach that I have there is to make
hgsave/hgload generate what is essentially an .m file that would execute
to generate the figure. That struck me as likely less efficient, so I
started with this method.
Have a good day,
Bill
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hgsave.m
Url: https://www.cae.wisc.edu/pipermail/octave-maintainers/attachments/20080304/7de1bdc4/attachment.ksh
More information about the Octave-maintainers
mailing list