[Graphics] More convenient backend access

Shai Ayal shaiay at gmail.com
Fri Feb 1 01:07:45 CST 2008


On Jan 25, 2008 5:11 PM, Michael Goffioul <michael.goffioul at gmail.com> wrote:
> On Jan 25, 2008 4:05 PM, Shai Ayal <shaiay at gmail.com> wrote:
> > well, how about a figure.backend property which you can set/get and
> > also set a default for in the usual way (in the root figure). Will
> > that work with your current implementation by just adding this
> > property and the appropriate set method (get is trivial) or is there
> > something I missed which will cause a major recode?
>
> No, I don't think so. Just write a manual set_backend (or should
> it be set___backend__, to map a __backend__ property) and
> make it close the figure (without popping it), before changing the
> backend

Attached is a patch which adds the figure.__backend__ property and
relevant set method
Michael, can you please have a look and approve -- I'm not sure I
understood the interaction between graphics_backend and figure.

Shai

2008-02-01  Shai Ayal  <shaiay at users.sourceforge.net>

	* graphics.h.in (figure): add __backend__ property and set method
	(class graphics_backend): add find_backend method
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add_backend.diff
Type: text/x-patch
Size: 1826 bytes
Desc: not available
Url : https://www.cae.wisc.edu/pipermail/octave-maintainers/attachments/20080201/addc5bc0/attachment.bin 


More information about the Octave-maintainers mailing list