Package sage :: Package plot :: Package plot3d :: Module base :: Class Graphics3d
[hide private]
[frames] | no frames]

Class Graphics3d



                      object --+    
                               |    
structure.sage_object.SageObject --+
                                   |
                                  Graphics3d
Known Subclasses:
PrimitiveObject, Graphics3dGroup, Viewpoint

Instance Methods [hide private]
 
__add__(...)
File: sage/plot/plot3d/base.pyx (starting at line 69)
 
__new__(T, S, ...)
 
__radd__(x, y)
y+x
 
__repr__(...)
File: sage/plot/plot3d/base.pyx (starting at line 59)
 
__str__(...)
File: sage/plot/plot3d/base.pyx (starting at line 66)
 
_box_for_aspect_ratio(...)
File: sage/plot/plot3d/base.pyx (starting at line 323)
 
_determine_frame_aspect_ratio(...)
File: sage/plot/plot3d/base.pyx (starting at line 102)
 
_prepare_for_jmol(...)
File: sage/plot/plot3d/base.pyx (starting at line 304)
 
_prepare_for_tachyon(...)
File: sage/plot/plot3d/base.pyx (starting at line 316)
 
_rescale_for_frame_aspect_ratio_and_zoom(...)
File: sage/plot/plot3d/base.pyx (starting at line 294)
 
_safe_bounding_box(...)
File: sage/plot/plot3d/base.pyx (starting at line 106)
 
_set_extra_kwds(...)
File: sage/plot/plot3d/base.pyx (starting at line 81)
 
_transform_to_bounding_box(...)
File: sage/plot/plot3d/base.pyx (starting at line 376)
 
aspect_ratio(...)
File: sage/plot/plot3d/base.pyx (starting at line 84)
 
bounding_box(...)
File: sage/plot/plot3d/base.pyx (starting at line 117)
 
default_render_params(...)
File: sage/plot/plot3d/base.pyx (starting at line 150)
 
export_jmol(...)
File: sage/plot/plot3d/base.pyx (starting at line 220)
 
flatten(...)
File: sage/plot/plot3d/base.pyx (starting at line 288)
 
frame_aspect_ratio(...)
File: sage/plot/plot3d/base.pyx (starting at line 94)
 
jmol_repr(...)
File: sage/plot/plot3d/base.pyx (starting at line 279)
 
mtl_str(...)
File: sage/plot/plot3d/base.pyx (starting at line 285)
 
obj(...)
File: sage/plot/plot3d/base.pyx (starting at line 211)
 
obj_str(...)
File: sage/plot/plot3d/base.pyx (starting at line 214) DO NOT override this method, override obj_repr instead.
 
rotate(...)
File: sage/plot/plot3d/base.pyx (starting at line 133)
 
rotateX(...)
File: sage/plot/plot3d/base.pyx (starting at line 137)
 
rotateY(...)
File: sage/plot/plot3d/base.pyx (starting at line 140)
 
rotateZ(...)
File: sage/plot/plot3d/base.pyx (starting at line 143)
 
scale(...)
File: sage/plot/plot3d/base.pyx (starting at line 128)
 
show(...)
File: sage/plot/plot3d/base.pyx (starting at line 411) INPUT: viewer -- string (default: 'jmol'), how to view the plot 'jmol': interactive 3d (java) 'tachyon': a static png image (ray traced) 'java3d': interactive opengl based 3d filename -- string (default: a temp file); file to save the image to verbosity -- display information about rendering the figure figsize -- (default: 5); x or pair [x,y] for numbers, e.g., [5,5]; controls the size of the output figure.
 
tachyon(...)
File: sage/plot/plot3d/base.pyx (starting at line 166)
 
tachyon_str(...)
File: sage/plot/plot3d/base.pyx (starting at line 205) DO NOT override this method, override tachyon_repr instead.
 
texture_set(...)
File: sage/plot/plot3d/base.pyx (starting at line 282)
 
transform(...)
File: sage/plot/plot3d/base.pyx (starting at line 120)
 
translate(...)
File: sage/plot/plot3d/base.pyx (starting at line 123)
 
viewpoint(...)
File: sage/plot/plot3d/base.pyx (starting at line 147)
 
x3d(...)
File: sage/plot/plot3d/base.pyx (starting at line 153)

Inherited from structure.sage_object.SageObject: __hash__, _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, save, version

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

Properties [hide private]
  _extra_kwds
  texture

Inherited from object: __class__

Method Details [hide private]

__new__(T, S, ...)

 


Returns:
a new object with type S, a subtype of T

Overrides: structure.sage_object.SageObject.__new__

__repr__(...)
(Representation operator)

 
File: sage/plot/plot3d/base.pyx (starting at line 59)

Overrides: structure.sage_object.SageObject.__repr__

__str__(...)
(Informal representation operator)

 
File: sage/plot/plot3d/base.pyx (starting at line 66)

Overrides: object.__str__

show(...)

 
File: sage/plot/plot3d/base.pyx (starting at line 411)

INPUT:
    viewer    -- string (default: 'jmol'), how to view the plot
                 'jmol': interactive 3d (java)
                 'tachyon': a static png image (ray traced)
                 'java3d': interactive opengl based 3d
    filename  -- string (default: a temp file); file to save the image to
    verbosity -- display information about rendering the figure
    figsize   -- (default: 5); x or pair [x,y] for numbers, e.g., [5,5]; controls
                 the size of the output figure.  E.g., with Tachyon the number of
                 pixels in each direction is 100 times figsize[0].
                 This is ignored for the jmol embedded renderer.
    aspect_ratio -- (default: "automatic") -- aspect ratio of the coordinate system
                 itself.  Give [1,1,1] to make spheres look round.
    frame_aspect_ratio -- (default: "automatic") aspect ratio of frame that
                 contains the 3d scene.
    zoom      -- (default: 1) how zoomed in
    frame     -- (default: True) if True, draw a bounding frame with labels
    axes      -- (deault: False) if True, draw coordinate axes
    
    **kwds    -- other options, which make sense for particular rendering engines

CHANGING DEFAULTS:
Defaults can be uniformly changed by importing a dictionary and changing it.
For example, here we change the default so images display without a frame
instead of with one:
    sage: from sage.plot.plot3d.base import SHOW_DEFAULTS
    sage: SHOW_DEFAULTS['frame'] = False

This sphere will not have a frame around it:
    sage: sphere((0,0,0))

We change the default back:
    sage: SHOW_DEFAULTS['frame'] = True

Now this sphere is enclosed in a frame:
    sage: sphere((0,0,0))


EXAMPLES:
We illustrate use of the aspect_ratio option:
   sage: x, y = var('x,y')
   sage: p = plot3d(2*sin(x*y), (x, -pi, pi), (y, -pi, pi))
   sage: p.show(aspect_ratio=[1,1,1])

This looks flattened, but filled with the plot:
   sage: p.show(frame_aspect_ratio=[1,1,1/16])

This looks flattened, but the plot is square and smaller:
   sage: p.show(aspect_ratio=[1,1,1], frame_aspect_ratio=[1,1,1/8])