iotbx.data_plots
index
/net/chevy/raid1/nat/src/cctbx_project/iotbx/data_plots.py

 
Modules
       
math
os
re
string

 
Classes
       
__builtin__.object
graph_data
histogram_data
plot_data
simple_matplotlib_plot
table_data

 
class graph_data(__builtin__.object)
     Methods defined here:
__init__(self, name, data, type='plot', data_labels=None, x_axis=None, y_axis=None)
get_plots(self, fill_in_missing_y=None)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class histogram_data(__builtin__.object)
     Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class plot_data(__builtin__.object)
     Methods defined here:
__init__(self, plot_title, x_label, y_label, x_data, y_data, y_legend, comments)
add_data(self, y_data, y_legend)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class simple_matplotlib_plot(__builtin__.object)
    Class for writing a Matplotlib plot to a static image file without a GUI.
This should be subclassed and combined with whatever mixin is used to
actually responsible for the plotting.
 
  Methods defined here:
__init__(self, figure_size=(8, 8), font_size=12, title_font_size=12, facecolor='white', transparent=False)
save_image(self, file_name)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class table_data(__builtin__.object)
    Container for tabular data.  Originally this was solely used as a container
for CCP4 'loggraph' plots, but it can also be used to display tables that
are not intended to be plotted.  A variety of output formats are supported,
including export to JSON for eventual HTML display.  If graphs are defined,
these objects can be passed to the loggraph frontend in wxtbx.plots.
 
  Methods defined here:
__init__(self, title, column_names=None, column_types=None, column_labels=None, column_formats=None, graph_names=None, graph_types=None, graph_labels=None, graph_columns=None, data=None, comments=None, x_is_inverse_d_min=False, first_two_columns_are_resolution=False, force_exact_x_labels=False, reference_marks=None)
__str__(self)
add_column(self, column, column_name=None, column_label=None)
add_graph(self, name, type, columns)
add_row(self, row)
as_rows(self)
export_json(self, convert=True)
export_json_table(self, convert=True)
export_rows(self, convert=True, precision=6)
format(self, precision=6, indent=0, equal_widths=True)
Formats the table for printout in a log file, with equal-width
columns and cell boundaries, e.g.:
  -------------------------------
  | Title                       |
  |-----------------------------|
  | col1    | col1    | col3    |
  |-----------------------------|
  | 0.1     | 5       | *       |
  -------------------------------
format_loggraph(self, precision=6, column_width=None)
Create CCP4 loggraph format text for embedding in logfiles.
format_simple(self, precision=6, indent=0)
get_column_by_label(self, column_label)
get_graph(self, graph_name=None, column_list=[])
get_reference_marks(self)
get_value_as_resolution(self, x)
get_x_as_resolution(self)
get_x_values(self)
import_loggraph(self, loggraph_lines)
Parse CCP4 loggraph format and populate internal data structures.
only_plot(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
n_cols
n_graphs
n_rows

 
Functions
       
flip_table(table)
#-----------------------------------------------------------------------
# Nat's utilities for plottable data
ftoa(val, format_string='%.6g')
# backwards-atof
import_ccp4i_logfile(file_name=None, log_lines=None)
plot_data_loggraph(plot_data, output)

 
Data
        division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192)