Module gwy :: Class Graph
[show private | hide private]
[frames | no frames]

Class Graph


Method Summary
  __init__(gmodel)
Creates graph widget based on information in model.
  enable_user_input(enable)
Enables/disables all the graph/curve settings dialogs to be invoked by mouse clicks.
  export_pixmap(export_title, export_axis, export_labels)
  get_area()
Gets the area widget of a graph.
  get_axis(type)
Gets a graph axis.
  get_model()
Gets the model of a graph.
  get_status()
Get the status of a graph widget.
  set_axis_visible(type, is_visible)
Sets the visibility of graph axis of given orientation.
  set_model(gmodel)
Changes the model a graph displays.
  set_status(status)
Sets the status of a graph widget.
  UNIMPLEMENTED_export_postscript(export_title, export_axis, export_labels, str)
  window_new()
Creates a new window showing graph.

Method Details

__init__(gmodel)
(Constructor)

Creates graph widget based on information in model.
Returns:
new graph widget.

enable_user_input(enable)

Enables/disables all the graph/curve settings dialogs to be invoked by mouse clicks.
Parameters:
enable - whether to enable user input (bool)

get_area()

Gets the area widget of a graph.
Returns:
The graph area widget within the graph.

get_axis(type)

Gets a graph axis.
Parameters:
type - Axis orientation (GtkPositionType)
Returns:
The axis (of given orientation) within the graph widget.

get_model()

Gets the model of a graph.
Returns:
The graph model this graph widget displays.

get_status()

Get the status of a graph widget.

See Graph.set_status() for more.
Returns:
The current graph status.

set_axis_visible(type, is_visible)

Sets the visibility of graph axis of given orientation. Visibility can be set also directly using Axis API.
Parameters:
type - Axis orientation (GtkPositionType)
is_visible - set/unset axis visibility within graph widget (bool)

set_model(gmodel)

Changes the model a graph displays.

Everything in graph widgets will be reset to reflect the new data.
Parameters:
gmodel - New graph model (GraphModel)

set_status(status)

Sets the status of a graph widget.

The status determines how the graph reacts on mouse events. This includes point or area selection and zooming.
Parameters:
status - graph status (GraphStatusType)

window_new()

Creates a new window showing graph.
Returns:
A newly created graph window as GtkWidget.

Generated by Epydoc 2.1 on Tue Dec 30 04:01:42 2008 http://epydoc.sf.net