pygrace scripts documentation
pygrace_cdf script
- class CDFGraph(data, fancy_dots, *args, **kwargs)
Bases:
DistributionGraph
- _interlace(listA, listB)
- class CDFParser(*args, **kwargs)
Bases:
XYParser
- parse_args(*args, **kwargs)
- parse_args(args[string] = sys.argv[1:],
values : Values = None)
-> (values : Values, args : [string])
Parse the command-line options found in ‘args’ (default: sys.argv[1:]). Any errors result in a call to ‘error()’, which by default prints the usage message to stderr and calls sys.exit() with an error message. On success returns a pair (values, args) where ‘values’ is a Values instance (with all your option values) and ‘args’ is the list of arguments left over after parsing options.
- parse_log_axes(options)
- class Project(width=792, height=612, background_color=0, background_fill='off', version='50114', verbose=False, colors=None, **kwargs)
Bases:
GraceObject
- __setattr__(key, value)
Implement setattr(self, name, value).
- __str__()
Return str(self).
- _header_string()
- add_color(red, green, blue, name=None)
Calls the add_color method of the root of the tree. The method must be overwritten by the root to avoid infinite recursion.
- add_drawing_object(cls, *args, **kwargs)
- add_graph(cls=<class 'pygrace.graph.Graph'>, *args, **kwargs)
- autoformat(printWidth=6.5)
- autoscale(padx=0, pady=0)
- autoscale_same(padx=0, pady=0, graphs=(), exclude_graphs=())
Autoscale all graphs in a this MultiPlotProject to have the same x,y world coordinates.
- autoscalex_same(pad=0, graphs=(), exclude_graphs=())
Autoscale all x-axes to have the same world coordinates
- autoscaley_same(pad=0, graphs=(), exclude_graphs=())
Autoscale all y-axes to have the same world coordinates
- clone_graph(graph, cls=<class 'pygrace.graph.Graph'>, *args, **kwargs)
Clone graph ‘graph’ by adding a new graph (the clone) and then copying the format of ‘graph’.
This is a convenience method which is handy for graphs that have drawing objects in them. When drawing objects are in a graph, the drawing object is placed over the axes, frame, etc. and it makes the graphs rather ugly looking.
- get_canvas_dimensions()
Get dimensions of the canvas
- get_eps_frame_coords()
For each graph, obtain the eps coordinates of the frame within the figure. This is useful for aligning things in external programs such as xfig.
- get_graph(index)
- printfile(filename='temp.eps', filetype=None)
Use gracebat to output a image file of the specified type. The allowed types are:
X11 PostScript EPS MIF SVG PNM JPEG PNG Metafile
- saveall(filname='temp.agr')
save the Project to a xmgrace project (.agr) file
- set_landscape()
- set_portrait()
- set_world_same(xmin, ymin, xmax, ymax)
Rescale all graphs in a MultiPlotProject to have the same x,y world coordinates.
- write_agr(filename='temp.agr')
save the Project to a xmgrace project (.agr) file
- write_file(filename='temp.eps', filetype=None)
Use gracebat to output a image file of the specified type. The allowed types are:
X11 PostScript EPS MIF SVG PNM JPEG PNG Metafile
- class XYParser(*args, **kwargs)
Bases:
OptionParser
- parse_args(*args, **kwargs)
- parse_args(args[string] = sys.argv[1:],
values : Values = None)
-> (values : Values, args : [string])
Parse the command-line options found in ‘args’ (default: sys.argv[1:]). Any errors result in a call to ‘error()’, which by default prints the usage message to stderr and calls sys.exit() with an error message. On success returns a pair (values, args) where ‘values’ is a Values instance (with all your option values) and ‘args’ is the list of arguments left over after parsing options.