Difference between revisions of "Plotting API"

From relax wiki
Jump to navigation Jump to search
(→‎Packages: Links to the API documentation.)
(→‎Package: user_functions: Explanation of user functions.)
Line 14: Line 14:
 
* plotting.write_iso3D
 
* plotting.write_iso3D
 
* plotting.write_2D_fitted_curves
 
* plotting.write_2D_fitted_curves
 +
 +
The [http://www.nmr-relax.com/api/3.3/user_functions-module.html user_functions package] are simply definitions used to construct the prompt or graphical UI and to set up automated argument checking.
  
 
== Package:  pipe_control ==
 
== Package:  pipe_control ==

Revision as of 16:55, 7 February 2015

Packages

The flow of execution for plotting XY-type data in relax is:

Package: user_functions

The user interface for plotting are generally the user functions. Currently this consists of the grace.write and dx.map user functions. However in the future a software independent interface will be gradually implemented via a new plotting user function class. An idea would be to have one user function per graph type, for example:

  • plotting.write_2D
  • plotting.write_iso3D
  • plotting.write_2D_fitted_curves

The user_functions package are simply definitions used to construct the prompt or graphical UI and to set up automated argument checking.

Package: pipe_control

To use the backend code, you need to import:

from pipe_control.plotting import write_xy


Package: lib