Package sage :: Package plot :: Module plot :: Class GraphicsArray
[hide private]
[frames] | no frames]

Class GraphicsArray

source code

                      object --+    
                               |    
structure.sage_object.SageObject --+
                                   |
                                  GraphicsArray


GraphicsArray takes a ($m$ x $n$) list of lists of graphics
objects and plots them all on one canvas.



Instance Methods [hide private]
 
__init__(self, array)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_repr_(self) source code
 
__str__(self)
str(x)
source code
 
nrows(self) source code
 
ncols(self) source code
 
__getitem__(self, i) source code
 
__setitem__(self, i, g) source code
 
__set_figsize__(self, list) source code
 
__len__(self) source code
 
append(self, g) source code
 
_render(self, filename, dpi=['4ti2-20061025', 'R-2.6.0', 'atlas-3.7.37', 'atlas-3.8.1', 'a..., figsize=(6, 3.7082039325), axes=['4ti2-20061025', 'R-2.6.0', 'atlas-3.7.37', 'atlas-3.8.1', 'a..., **args)
\code{render} loops over all graphics objects in the array and adds them to the subplot.
source code
 
save(self, filename=['4ti2-20061025', 'R-2.6.0', 'atlas-3.7.37', 'atlas-3.8.1', 'a..., dpi=100, figsize=(6, 3.7082039325), axes=['4ti2-20061025', 'R-2.6.0', 'atlas-3.7.37', 'atlas-3.8.1', 'a..., **args)
save the \code{graphics_array} to (for now) a png called 'filename'.
source code
 
show(self, filename=['4ti2-20061025', 'R-2.6.0', 'atlas-3.7.37', 'atlas-3.8.1', 'a..., dpi=100, figsize=(6, 3.7082039325), axes=['4ti2-20061025', 'R-2.6.0', 'atlas-3.7.37', 'atlas-3.8.1', 'a..., **args)
Show this graphics array using the default viewer.
source code

Inherited from structure.sage_object.SageObject: __hash__, __new__, __repr__, _axiom_, _axiom_init_, _gap_, _gap_init_, _gp_, _gp_init_, _interface_, _interface_init_, _interface_is_cached_, _kash_, _kash_init_, _macaulay2_, _macaulay2_init_, _magma_, _magma_init_, _maple_, _maple_init_, _mathematica_, _mathematica_init_, _maxima_, _maxima_init_, _octave_, _octave_init_, _pari_, _pari_init_, _r_init_, _sage_, _singular_, _singular_init_, category, db, dump, dumps, plot, rename, reset_name, version

Inherited from object: __delattr__, __getattribute__, __reduce__, __reduce_ex__, __setattr__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, array)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
str(x)

Overrides: object.__str__
(inherited documentation)

save(self, filename=['4ti2-20061025', 'R-2.6.0', 'atlas-3.7.37', 'atlas-3.8.1', 'a..., dpi=100, figsize=(6, 3.7082039325), axes=['4ti2-20061025', 'R-2.6.0', 'atlas-3.7.37', 'atlas-3.8.1', 'a..., **args)

source code 

save the \code{graphics_array} to
    (for now) a png called 'filename'.

Overrides: structure.sage_object.SageObject.save

show(self, filename=['4ti2-20061025', 'R-2.6.0', 'atlas-3.7.37', 'atlas-3.8.1', 'a..., dpi=100, figsize=(6, 3.7082039325), axes=['4ti2-20061025', 'R-2.6.0', 'atlas-3.7.37', 'atlas-3.8.1', 'a..., **args)

source code 

Show this graphics array using the default viewer.

OPTIONAL INPUT:
    filename -- (default: None) string
    dpi -- dots per inch
    figsize -- [width, height] (same for square aspect)
    axes -- (default: True)
    fontsize -- positive integer
    frame -- (default: False) draw a frame around the image