Difference between revisions of "Plotting API"
Jump to navigation
Jump to search
(Package intro) |
(Added content for the user_functions section.) |
||
Line 6: | Line 6: | ||
* The pipe_control.plotting.write_xy() function. | * The pipe_control.plotting.write_xy() function. | ||
* The lib.plotting functions write_xy_header() and write_xy_data(). | * The lib.plotting functions write_xy_header() and write_xy_data(). | ||
− | |||
== Package: user_functions == | == Package: user_functions == | ||
+ | The user interface for plotting are generally the user functions. Currently this consists of the [http://www.nmr-relax.com/manual/grace_write.html grace.write] and [http://www.nmr-relax.com/manual/dx_map.html 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 | ||
== Package: pipe_control == | == Package: pipe_control == |
Revision as of 16:43, 7 February 2015
Packages
The flow of execution for plotting XY-type data in relax is:
- The user function definition in the user_functions.grace module (in the future the user_functions.plotting module).
- The pipe_control.plotting.write_xy() function.
- The lib.plotting functions write_xy_header() and write_xy_data().
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
Package: pipe_control
To use the backend code, you need to import:
from pipe_control.plotting import write_xy