Personal tools
You are here: Home CDAT Source Code API Reference Python: module xmgrace.xmgrace
Document Actions

Python: module xmgrace.xmgrace

by Kyle Halliday last modified 2005-05-10 15:19
 
 
xmgrace.xmgrace
index

 
Modules
       
xmgrace.ValidationFunctions
atexit
genutil.colors
os
signal
time
types

 
Classes
       
__builtin__.object
BOX_ELLIPSE
COLOR
DSET
FILL
FONT
GRAPH
LINE
REGION
STRING
init

 
class BOX_ELLIPSE(__builtin__.object)
     Methods defined here:
__init__(self, parent, x1, y1, x2, y2, color, lwidth, lstyl, fillcolor, fillpattern, graph=0)
list(self)

Properties defined here:
color
get = _getcolor(self)
set = _setcolor(self, value)
coord
get = _getcoord(self)
set = _setcoord(self, value)
linestyle
get = _getlinestyle(self)
set = _setlinestyle(self, value)
linewidth
get = _getlinewidth(self)
set = _setlinewidth(self, value)
loctype
get = _getloctype(self)
set = _setloctype(self, value)
status
get = _getstatus(self)
set = _setstatus(self, value)
x1
get = _getx1(self)
set = _setx1(self, value)
x2
get = _getx2(self)
set = _setx2(self, value)
y1
get = _gety1(self)
set = _sety1(self, value)
y2
get = _gety2(self)
set = _sety2(self, value)

Data and other attributes defined here:
__slots__ = ['status', 'loctype', 'color', 'linewidth', 'linestyle', 'x1', 'x2', 'y1', 'y2', 'coord', 'fill', 'parent', 'graph', '_status', '_loctype', '_color', '_linewidth', '_linestyle', '_x1', '_x2', ...]
fill = <member 'fill' of 'BOX_ELLIPSE' objects>
graph = <member 'graph' of 'BOX_ELLIPSE' objects>
parent = <member 'parent' of 'BOX_ELLIPSE' objects>

 
class COLOR(__builtin__.object)
     Methods defined here:
__init__(self, name='Black', rgb=None, id=16)
change(self, nm)
list(self)
list the attributes

Properties defined here:
id
get = _getid(self)
set = _setid(self, value)
name
get = _getname(self)
set = _setname(self, value)
rgb
get = _getrgb(self)
set = _setrgb(self, value)

Data and other attributes defined here:
__slots__ = ['name', 'rgb', 'id', '_name', '_rgb', '_id']

 
class DSET(__builtin__.object)
     Methods defined here:
__init__(self, parent, color, graph)
list(self)
# end of __init__

Properties defined here:
comment
get = _getcomment(self)
set = _setcomment(self, value)
dropline
get = _getdropline(self)
set = _setdropline(self, value)
graph
get = _getgraph(self)
set = _setgraph(self, value)
hidden
get = _gethidden(self)
set = _sethidden(self, value)
legend
get = _getlegend(self)
set = _setlegend(self, value)
type
get = _gettype(self)
set = _settype(self, value)

Data and other attributes defined here:
__slots__ = ['graph', 'hidden', 'type', 'dropline', 'comment', 'legend', 'symbol', 'line', 'baseline', 'fill', 'avalue', 'errorbar', 'id', 'parent', '_graph', '_hidden', '_type', '_dropline', '_comment', '_legend']
avalue = <member 'avalue' of 'DSET' objects>
baseline = <member 'baseline' of 'DSET' objects>
errorbar = <member 'errorbar' of 'DSET' objects>
fill = <member 'fill' of 'DSET' objects>
id = <member 'id' of 'DSET' objects>
line = <member 'line' of 'DSET' objects>
parent = <member 'parent' of 'DSET' objects>
symbol = <member 'symbol' of 'DSET' objects>

 
class FILL(__builtin__.object)
     Methods defined here:
__init__(self, parent, fillcolor, fillpattern)
list(self)

Properties defined here:
color
get = _getcolor(self)
set = _setcolor(self, value)
pattern
get = _getpattern(self)
set = _setpattern(self, value)

Data and other attributes defined here:
__slots__ = ['_color', '_pattern', 'parent', 'color', 'pattern']
parent = <member 'parent' of 'FILL' objects>

 
class FONT(__builtin__.object)
     Methods defined here:
__init__(self, name)

Properties defined here:
name
get = _getname(self)
set = _setname(self, value)

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__slots___ = ['name', '_name']
__weakref__ = <attribute '__weakref__' of 'FONT' objects>
list of weak references to the object (if defined)

 
class GRAPH(__builtin__.object)
     Methods defined here:
__init__(self, parent, ymin=0.0, ymax=1.0, xmin=0.0, xmax=1.0)
list(self)
#end of __init__

Properties defined here:
bar_hgap
get = _getbar_hgap(self)
set = _setbar_hgap(self, value)
hidden
get = _gethidden(self)
set = _sethidden(self, value)
nset
get = _getnset(self)
set = _setnset(self, value)
stack_world
get = _getstack_world(self)
set = _setstack_world(self, value)
stacked
get = _getstacked(self)
set = _setstacked(self, value)
status
get = _getstatus(self)
set = _setstatus(self, value)
stitle
get = _getstitle(self)
set = _setstitle(self, value)
title
get = _gettitle(self)
set = _settitle(self, value)
type
get = _gettype(self)
set = _settype(self, value)
vxmax
get = _getvxmax(self)
set = _setvxmax(self, value)
vxmin
get = _getvxmin(self)
set = _setvxmin(self, value)
vymax
get = _getvymax(self)
set = _setvymax(self, value)
vymin
get = _getvymin(self)
set = _setvymin(self, value)
xmax
get = _getxmax(self)
set = _setxmax(self, value)
xmin
get = _getxmin(self)
set = _setxmin(self, value)
ymax
get = _getymax(self)
set = _setymax(self, value)
ymin
get = _getymin(self)
set = _setymin(self, value)
znorm
get = _getznorm(self)
set = _setznorm(self, value)

Data and other attributes defined here:
Set = <member 'Set' of 'GRAPH' objects>
__slots__ = ['vxmin', 'vxmax', 'vymin', 'vymax', 'status', 'hidden', 'type', 'stacked', 'stack_world', 'bar_hgap', 'znorm', 'title', 'stitle', 'stit', 'tit', 'fixedpoint', 'xaxis', 'yaxis', 'altxaxis', 'altyaxis', ...]
altxaxis = <member 'altxaxis' of 'GRAPH' objects>
altyaxis = <member 'altyaxis' of 'GRAPH' objects>
fixedpoint = <member 'fixedpoint' of 'GRAPH' objects>
frame = <member 'frame' of 'GRAPH' objects>
legend = <member 'legend' of 'GRAPH' objects>
stit = <member 'stit' of 'GRAPH' objects>
tit = <member 'tit' of 'GRAPH' objects>
xaxis = <member 'xaxis' of 'GRAPH' objects>
yaxis = <member 'yaxis' of 'GRAPH' objects>

 
class LINE(__builtin__.object)
     Methods defined here:
__init__(self, parent, x1, y1, x2, y2, color, lwidth, lstyl, pos, atyp, algth, alyo, graph=0)
list(self)

Properties defined here:
color
get = _getcolor(self)
set = _setcolor(self, value)
coord
get = _getcoord(self)
set = _setcoord(self, value)
linestyle
get = _getlinestyle(self)
set = _setlinestyle(self, value)
linewidth
get = _getlinewidth(self)
set = _setlinewidth(self, value)
loctype
get = _getloctype(self)
set = _setloctype(self, value)
status
get = _getstatus(self)
set = _setstatus(self, value)
x1
get = _getx1(self)
set = _setx1(self, value)
x2
get = _getx2(self)
set = _setx2(self, value)
y1
get = _gety1(self)
set = _sety1(self, value)
y2
get = _gety2(self)
set = _sety2(self, value)

Data and other attributes defined here:
__slots__ = ['status', 'loctype', 'color', 'linewidth', 'linestyle', 'x1', 'x2', 'y1', 'y2', 'coord', 'parent', 'arrow', 'graph', '_status', '_loctype', '_color', '_linewidth', '_linestyle', '_x1', '_x2', ...]
arrow = <member 'arrow' of 'LINE' objects>
graph = <member 'graph' of 'LINE' objects>
parent = <member 'parent' of 'LINE' objects>

 
class REGION(__builtin__.object)
    REGION CLASS
 
  Methods defined here:
__init__(self, parent)
Default values
list(self)
list the attributes

Properties defined here:
color
get = _getcolor(self)
set = _setcolor(self, value)
line
get = _getline(self)
set = _setline(self, value)
linestyle
get = _getlinestyle(self)
set = _setlinestyle(self, value)
linewidth
get = _getlinewidth(self)
set = _setlinewidth(self, value)
link
get = _getlink(self)
set = _setlink(self, value)
status
get = _getstatus(self)
set = _setstatus(self, value)
type
get = _gettype(self)
set = _settype(self, value)
xy
get = _getxy(self)
set = _setxy(self, value)

Data and other attributes defined here:
__slots__ = ['status', 'type', 'linestyle', 'linewidth', 'color', 'xy', 'line', 'link', 'parent', '_status', '_type', '_linestyle', '_linewidth', '_color', '_xy', '_line', '_link']
parent = <member 'parent' of 'REGION' objects>

 
class STRING(__builtin__.object)
     Methods defined here:
__init__(self, parent, x, y, text, color, char_size, font, rot, just, graph=0)
list(self)

Properties defined here:
char_size
get = _getchar_size(self)
set = _setchar_size(self, value)
color
get = _getcolor(self)
set = _setcolor(self, value)
font
get = _getfont(self)
set = _setfont(self, value)
just
get = _getjust(self)
set = _setjust(self, value)
loctype
get = _getloctype(self)
set = _setloctype(self, value)
rot
get = _getrot(self)
set = _setrot(self, value)
status
get = _getstatus(self)
set = _setstatus(self, value)
text
get = _gettext(self)
set = _settext(self, value)
x
get = _getx(self)
set = _setx(self, value)
xy
get = _getxy(self)
set = _setxy(self, value)
y
get = _gety(self)
set = _sety(self, value)

Data and other attributes defined here:
__slots__ = ['status', 'loctype', 'color', 'font', 'just', 'rot', 'x', 'y', 'xy', 'char_size', 'text', 'parent', 'graph', '_status', '_loctype', '_color', '_font', '_just', '_rot', '_x', ...]
graph = <member 'graph' of 'STRING' objects>
parent = <member 'parent' of 'STRING' objects>

 
class init(__builtin__.object)
     Methods defined here:
__call__(self, cmd)
__del__(self)
If you want to force xmgrace to stay up
change close_cmd to 'close'
__init__(self, xmgrace_args='', pipe_file=None, new_pipe=1, clean_on_exit=True, color=1, font=0, linewidth=1.0, pattern=1, char_size=1)
__str__(self)
add_box(self, x1, y1, x2, y2, color=-1, lwidth=-1, lstyl=-1, fillcolor=-1, fillpattern=-1)
add_color(self, name, rgb=None, id=None)
add_ellipse(self, x1, y1, x2, y2, color=-1, lwidth=-1, lstyl=-1, fillcolor=-1, fillpattern=-1)
add_font(self, name)
add_graph(self, ymin=0.0, ymax=1.0, xmin=0.0, xmax=1.0)
add_line(self, x1, y1, x2, y2, color=-1, lwidth=-1, lstyl=-1, position=0, atyp=0, algth=2, alyo=[1.0, 1.0])
add_r(self)
add_set(self, graph=0, color=None)
add_string(self, x, y, text, color=-1, char_size=-1, font=-1, rot=0, just=14)
clean_exit(self)
close(self)
col(self, c)
command(self, cmd)
Issue a command to grace followed by a newline.
 
Unless the constructor was called with bufsize=0, this
interface is buffered, and command execution may be delayed.
To flush the buffer, either call flush() or send the
command via self(cmd).
copy(self, S0, S1, G0=0, G1=0)
copy sets definitions and possibly set if presents, destination must exist
creategraph(self, ymin=0.0, ymax=1.0, xmin=0.0, xmax=1.0)
eps(self, fnm, color='color', level='level2', bbox='tight', docdata='8bit', dpi=300)
exit(self)
Cause xmgrace to exit.
 
Ask xmgrace to exit (i.e., for the program to shut down).  If
it isn't listening, try to kill the process with a SIGTERM.
flush(self)
Flush any pending commands to grace.
is_open(self)
Return 1 iff the pipe is not known to have been closed.
jpeg(self, fnm, color='color', optimize='off', quality=75, smoothing=0, baseline='off', progressive='on', dct='islow', dpi=72)
landscape(self)
list(self)
list_font(self)
make_parameter(self)
metafile(self, fnm, dpi=72)
mif(self, fnm, dpi=72)
move(self, S0, S1, G0=0, G1=0)
move sets definitions and possibly set if presents, destination must exist
orientation(self)
output(self, fnm, out='PostScript')
pdf(self, fnm, pdf='1.3', compression=4, dpi=72)
plot(self, dat, xs=None, G=None, S=None)
png(self, fnm, interlaced='off', transparent='on', compression=4, dpi=72)
pnm(self, fnm, format='ppm', rawbit='on', dpi=72)
portrait(self)
postscript(self, fnm, color='color', level='level2', docdata='8bit', xoffset=0, yoffset=0, mediafeed='auto', hwresolution='off', dpi=300)
ps(self, *args, **kw)
read_parameter(self, parameterfile)
redraw(self)
svg(self, fnm, dpi=72)
swap(self, S0, S1, G0=0, G1=0)
Swap 2 sets definitions and possibly sets if presents
update(self)
whichsets(self, *args)

Properties defined here:
background_color
get = _getbackground_color(self)
set = _setbackground_color(self, value)
char_size
get = _getchar_size(self)
set = _setchar_size(self, value)
color
get = _getcolor(self)
set = _setcolor(self, value)
font
get = _getfont(self)
set = _setfont(self, value)
linestyle
get = _getlinestyle(self)
set = _setlinestyle(self, value)
linewidth
get = _getlinewidth(self)
set = _setlinewidth(self, value)
link_page
get = _getlink_page(self)
set = _setlink_page(self, value)
pattern
get = _getpattern(self)
set = _setpattern(self, value)
pyversion
get = _getversion(self)
sformat
get = _getsformat(self)
set = _setsformat(self, value)
stitle
get = _getstitle(self)
set = _setstitle(self, value)
symbol_size
get = _getsymbol_size(self)
set = _setsymbol_size(self, value)
title
get = _gettitle(self)
set = _settitle(self, value)
version
get = _getversion(self)

Data and other attributes defined here:
Box = <member 'Box' of 'init' objects>
Color = <member 'Color' of 'init' objects>
Ellipse = <member 'Ellipse' of 'init' objects>
Font = <member 'Font' of 'init' objects>
Graph = <member 'Graph' of 'init' objects>
Line = <member 'Line' of 'init' objects>
R = <member 'R' of 'init' objects>
Set = <member 'Set' of 'init' objects>
String = <member 'String' of 'init' objects>
__slots__ = ['title', 'stitle', 'link_page', 'linewidth', 'linestyle', 'color', 'pattern', 'font', 'char_size', 'symbol_size', 'sformat', 'background_color', 'nset', 'ngraph', 'nline', 'nbox', 'nr', 'nellipse', 'pid', 'ininit', ...]
date = <member 'date' of 'init' objects>
ininit = <member 'ininit' of 'init' objects>
nbox = <member 'nbox' of 'init' objects>
ncolor = <member 'ncolor' of 'init' objects>
nellipse = <member 'nellipse' of 'init' objects>
new_pipe = <member 'new_pipe' of 'init' objects>
nfont = <member 'nfont' of 'init' objects>
ngraph = <member 'ngraph' of 'init' objects>
nline = <member 'nline' of 'init' objects>
nr = <member 'nr' of 'init' objects>
nset = <member 'nset' of 'init' objects>
nstring = <member 'nstring' of 'init' objects>
page = <member 'page' of 'init' objects>
parent = <member 'parent' of 'init' objects>
pid = <member 'pid' of 'init' objects>
pipe = <member 'pipe' of 'init' objects>
pipe_file = <member 'pipe_file' of 'init' objects>
timestamp = <member 'timestamp' of 'init' objects>

Powered by Plone