@header@
 
 
matplotlib.backends.backend_ps
index
matplotlib/backends/backend_ps.py

# A postscript backend

 
Modules
       
distutils
os
sys

 
Classes
       
matplotlib.backend_bases.AxisTextBase(matplotlib.artist.Artist)
AxisTextPS
AxisTextPS
matplotlib.backend_bases.FigureBase
FigurePS
FigurePS
matplotlib.backend_bases.FigureManagerBase
FigureManagerPS
FigureManagerPS
FontManager
matplotlib.backend_bases.GraphicsContextBase
GraphicsContextPS
matplotlib.backend_bases.RendererBase
RendererPS

 
AxisText = class AxisTextPS(matplotlib.backend_bases.AxisTextBase)
    Handle storing and drawing of text in window or data coordinates
 
 
Method resolution order:
AxisTextPS
matplotlib.backend_bases.AxisTextBase
matplotlib.artist.Artist

Methods defined here:
__init__(self, *args, **kwargs)
draw_rotated(self, drawable)
Draw the text rotated 90 degrees
get_window_extent(self)

Methods inherited from matplotlib.backend_bases.AxisTextBase:
__del__(self)
Bye bye
erase(self)
get_fontangle(self)
Get the font angle as string
get_fontname(self)
Return the font name as string
get_fontsize(self)
Return the font size as integer
get_fontweight(self)
Get the font weight as string
get_horizontalalignment(self)
Return the horizontal alignment as string
get_position(self)
Return x, y as tuple
get_text(self)
Get the text as string
get_verticalalignment(self)
Return the vertical alignment as string
set_backgroundcolor(self, color)
Set the background color of the text
set_color(self, color)
Set the foreground color of the text
set_fontangle(self, angle)
Set the font angle, one of 'normal', 'italic', 'oblique'
set_fontname(self, fontname)
Set the font name, eg, 'Sans', 'Courier', 'Helvetica'
set_fontsize(self, fontsize)
Set the font size, eg, 8, 10, 12, 14...
set_fontweight(self, weight)
Set the font weight, one of:
'normal', 'bold', 'heavy', 'light', 'ultrabold',  'ultralight'
set_horizontalalignment(self, align)
Set the horizontal alignment to one of
'center', 'right', or 'left'
set_position(self, xy)
set_rotation(self, s)
Currently only s='vertical', or s='horizontal' are supported
set_text(self, text)
Set the text
set_verticalalignment(self, align)
Set the vertical alignment to one of
'center', 'top', or 'bottom'
set_x(self, x)
set_y(self, y)
update_properties(self, d)
Update the font attributes with the dictionary in d
wash_brushes(self)
Flush all state vars and prepare for a clean redraw

Data and other attributes inherited from matplotlib.backend_bases.AxisTextBase:
fontangles = {'italic': None, 'normal': None, 'oblique': None}
fontweights = {'bold': None, 'heavy': None, 'light': None, 'normal': None, 'ultrabold': None, 'ultralight': None}

Methods inherited from matplotlib.artist.Artist:
draw(self, drawable=None, *args, **kwargs)
Derived classes drawing method
get_child_artists(self)
Return all artists contained in self
get_dpi(self)
Get the DPI of the display
set_child_attr(self, attr, val)
Set attribute attr for self, and all child artists
set_clip_on(self, b)
Set whether artist is clipped to bbox
set_lod(self, on)
Set Level of Detail on or off.  If on, the artists may examine
things like the pixel width of the axes and draw a subset of
their contents accordingly
set_renderer(self, renderer)
Set the renderer
set_transform(self, transform)
Set the artist transform for self and all children

Data and other attributes inherited from matplotlib.artist.Artist:
aname = 'Artist'

 
class AxisTextPS(matplotlib.backend_bases.AxisTextBase)
    Handle storing and drawing of text in window or data coordinates
 
 
Method resolution order:
AxisTextPS
matplotlib.backend_bases.AxisTextBase
matplotlib.artist.Artist

Methods defined here:
__init__(self, *args, **kwargs)
draw_rotated(self, drawable)
Draw the text rotated 90 degrees
get_window_extent(self)

Methods inherited from matplotlib.backend_bases.AxisTextBase:
__del__(self)
Bye bye
erase(self)
get_fontangle(self)
Get the font angle as string
get_fontname(self)
Return the font name as string
get_fontsize(self)
Return the font size as integer
get_fontweight(self)
Get the font weight as string
get_horizontalalignment(self)
Return the horizontal alignment as string
get_position(self)
Return x, y as tuple
get_text(self)
Get the text as string
get_verticalalignment(self)
Return the vertical alignment as string
set_backgroundcolor(self, color)
Set the background color of the text
set_color(self, color)
Set the foreground color of the text
set_fontangle(self, angle)
Set the font angle, one of 'normal', 'italic', 'oblique'
set_fontname(self, fontname)
Set the font name, eg, 'Sans', 'Courier', 'Helvetica'
set_fontsize(self, fontsize)
Set the font size, eg, 8, 10, 12, 14...
set_fontweight(self, weight)
Set the font weight, one of:
'normal', 'bold', 'heavy', 'light', 'ultrabold',  'ultralight'
set_horizontalalignment(self, align)
Set the horizontal alignment to one of
'center', 'right', or 'left'
set_position(self, xy)
set_rotation(self, s)
Currently only s='vertical', or s='horizontal' are supported
set_text(self, text)
Set the text
set_verticalalignment(self, align)
Set the vertical alignment to one of
'center', 'top', or 'bottom'
set_x(self, x)
set_y(self, y)
update_properties(self, d)
Update the font attributes with the dictionary in d
wash_brushes(self)
Flush all state vars and prepare for a clean redraw

Data and other attributes inherited from matplotlib.backend_bases.AxisTextBase:
fontangles = {'italic': None, 'normal': None, 'oblique': None}
fontweights = {'bold': None, 'heavy': None, 'light': None, 'normal': None, 'ultrabold': None, 'ultralight': None}

Methods inherited from matplotlib.artist.Artist:
draw(self, drawable=None, *args, **kwargs)
Derived classes drawing method
get_child_artists(self)
Return all artists contained in self
get_dpi(self)
Get the DPI of the display
set_child_attr(self, attr, val)
Set attribute attr for self, and all child artists
set_clip_on(self, b)
Set whether artist is clipped to bbox
set_lod(self, on)
Set Level of Detail on or off.  If on, the artists may examine
things like the pixel width of the axes and draw a subset of
their contents accordingly
set_renderer(self, renderer)
Set the renderer
set_transform(self, transform)
Set the artist transform for self and all children

Data and other attributes inherited from matplotlib.artist.Artist:
aname = 'Artist'

 
Figure = class FigurePS(matplotlib.backend_bases.FigureBase)
     Methods defined here:
__init__(self, *args, **kwargs)
add_axis(self, a)
draw(self, drawable=None, *args, **kwargs)
print_figure(self, filename, dpi)
dpi is ignored for PS output, it is set depends on the output device
realize(self, *args)

Methods inherited from matplotlib.backend_bases.FigureBase:
clear(self)
get_axes(self)
text(self, x, y, s, *args, **kwargs)
Add text to figure at location x,y (relative 0-1 coords) See
the help for Axis text for the meaning of the other arguments

 
FigureManager = class FigureManagerPS(matplotlib.backend_bases.FigureManagerBase)
     Methods inherited from matplotlib.backend_bases.FigureManagerBase:
__init__(self, figure, num)
add_axes(self, rect, axisbg)
Add an axes to the current figure
add_subplot(self, *args, **kwargs)
Add a subplot to the current figure
destroy(self)
get_current_axis(self)
Return the current axes
set_current_axes(self, a)
Set the current axes to be a

 
class FigureManagerPS(matplotlib.backend_bases.FigureManagerBase)
     Methods inherited from matplotlib.backend_bases.FigureManagerBase:
__init__(self, figure, num)
add_axes(self, rect, axisbg)
Add an axes to the current figure
add_subplot(self, *args, **kwargs)
Add a subplot to the current figure
destroy(self)
get_current_axis(self)
Return the current axes
set_current_axes(self, a)
Set the current axes to be a

 
class FigurePS(matplotlib.backend_bases.FigureBase)
     Methods defined here:
__init__(self, *args, **kwargs)
add_axis(self, a)
draw(self, drawable=None, *args, **kwargs)
print_figure(self, filename, dpi)
dpi is ignored for PS output, it is set depends on the output device
realize(self, *args)

Methods inherited from matplotlib.backend_bases.FigureBase:
clear(self)
get_axes(self)
text(self, x, y, s, *args, **kwargs)
Add text to figure at location x,y (relative 0-1 coords) See
the help for Axis text for the meaning of the other arguments

 
class FontManager
     Methods defined here:
__init__(self)
findfont(self, fontstr, fontweight='normal', fontangle='normal')
get_default_font(self)

 
class GraphicsContextPS(matplotlib.backend_bases.GraphicsContextBase)
     Methods inherited from matplotlib.backend_bases.GraphicsContextBase:
__init__(self)
copy_properties(self, gc)
Copy properties from gc to self
get_capstyle(self)
Return the capstyle as a string in ('butt', 'round', 'projecting')
get_clip_rectangle(self)
Return the clip rectangle as (left, bottom, width, height)
get_dashes(self)
Return the dash information as an offset dashlist tuple The
dash list is a even size list that gives the ink on, ink off
in pixels.  See p107 of to postscript BLUEBOOK for more info
 
Default value is None
get_joinstyle(self)
Return the line join style as one of ('miter', 'round', 'bevel')
get_linewidth(self)
Return the line width in points as a scalar
get_rgb(self)
returns a tuple of three floats from 0-1.  color can be a
matlab format string, a html hex color string, or a rgb tuple
set_capstyle(self, cs)
Set the capstyle as a string in ('butt', 'round', 'projecting')
set_clip_rectangle(self, rectangle)
Set the clip rectangle with sequence (left, bottom, width, height)
set_dashes(self, dash_offset, dash_list)
Set the dash style for the gc.  dash offset is the offset
(usually 0).  Dash list specifies the on-off sequence as
points
set_foreground(self, fg)
Set the foreground color.  fg can be a matlab format string, a
html hex color string, an rgb unit tuple, or a float between 0
and 1.  In the latter case, grayscale is used.
set_graylevel(self, frac)
Set the foreground color to be a gray level with frac frac
set_joinstyle(self, js)
Set the join style to be one of ('miter', 'round', 'bevel')
set_linewidth(self, w)
Set the linewidth in points

 
class RendererPS(matplotlib.backend_bases.RendererBase)
     Methods defined here:
__init__(self, pswriter)
draw_arc(self, gc, faceColor, x, y, width, height, angle1, angle2)
draw_line(self, gc, x1, y1, x2, y2)
Draw a single line from x1,y1 to x2,y2
draw_lines(self, gc, x, y)
draw_point(self, gc, x, y)
draw_polygon(self, gc, faceColor, points)
draw_postscript(self, ps)
draw_rectangle(self, gc, faceColor, x, y, width, height)
finish(self)
get_ps(self)
new_gc(self)

 
Functions
       
StringIO(...)
StringIO([s]) -- Return a StringIO-like stream for reading or writing
draw_if_interactive()
error_msg = error_msg_ps(msg, *args)
error_msg_ps(msg, *args)
new_figure_manager(num, figsize, dpi)
show()
Show all the figures and enter the gtk mainloop
 
This should be the last line of your script

 
Data
        False = False
True = True
defaultPaperSize = (8.5, 11)
division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)
@footer@