write_xy_header(file=None,
paper_size=' A4 ' ,
title=None,
subtitle=None,
view=None,
sets=1,
set_names=None,
set_colours=None,
symbols=None,
symbol_sizes=None,
symbol_fill=None,
linestyle=None,
linetype=None,
linewidth=0.5,
data_type=None,
seq_type=None,
axis_labels=None,
axis_min=None,
axis_max=None,
legend_pos=None,
legend=False,
norm=False)
| source code
|
Write the grace header for xy-scatter plots.
Many of these keyword arguments should be supplied in a [X, Y] list
format, where the first element corresponds to the X data, and the second
the Y data. Defaults will be used for any non-supplied args (or lists
with elements set to None).
- Parameters:
file (file object) - The file object to write the data to.
paper_size (str) - The paper size, i.e. 'A4'. If set to None, this will default to
letter size.
title (None or str) - The title of the graph.
subtitle (None or str) - The sub-title of the graph.
view (None or list of float) - List of 4 coordinates defining the graph view port.
sets (int) - The number of data sets in the graph G0.
set_names (None or list of str) - The names associated with each graph data set G0.Sx. For example
this can be a list of spin identification strings.
set_colours (None or list of int) - The colours for each graph data set G0.Sx.
symbols (None or list of int) - The symbol style for each graph data set G0.Sx.
symbol_sizes (None or list of int) - The symbol size for each graph data set G0.Sx.
symbol_fill (None or list of int) - The symbol file style for each graph data set G0.Sx.
linestyle (None or list of int) - The line style for each graph data set G0.Sx.
linetype (None or list of int) - The line type for each graph data set G0.Sx.
linewidth (None or float) - The line width for all elements of each graph data set G0.Sx.
data_type (None or list of str) - The axis data category (in the [X, Y] list format).
seq_type (None or list of str) - The sequence data type (in the [X, Y] list format). This is for
molecular sequence specific data and can be one of 'res', 'spin',
or 'mixed'.
axis_labels (None or list of str) - The labels for the axes (in the [X, Y] list format).
axis_min (None or list of str) - The minimum values for specifying the graph ranges (in the [X, Y]
list format).
axis_max (None or list of str) - The maximum values for specifying the graph ranges (in the [X, Y]
list format).
legend_pos (None or list of float) - The position of the legend, e.g. [0.3, 0.8].
legend (bool) - If True, the legend will be visible.
norm (bool) - The normalisation flag which if set to True will cause all graphs
to be normalised to 1.
|