source
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | {{DavinciWiki_Function | + | {{DavinciWiki_Function| |
− | [[ | + | Execute a script file. Loads user-defined function code from a text file into current session of davinci. |
+ | | | ||
+ | Arguments: A string containing the path of the text file | ||
+ | |||
+ | Return Value: None. Functions are loaded. | ||
+ | | | ||
+ | [[Syntax]]: source(filename = STRING) | ||
+ | |||
+ | The source function executes the specified file exactly as if its contents has been typed as input, with the exception that the commands are not stored in the log file, although the source() command is. | ||
+ | |||
+ | Executing scripts that call source is allowed. The only limit on the number of files that can be open is imposed by the operating system. | ||
+ | | | ||
+ | dv> plot_functions() | ||
+ | Function not found: plot_functions | ||
+ | |||
+ | dv> source("/themis/lib/dav_lib/plot_tools.dvrc") | ||
+ | Loaded function plot_functions | ||
+ | Loaded function replot | ||
+ | Loaded function showlabel | ||
+ | Loaded function multiplot | ||
+ | Loaded function nomultiplot | ||
+ | Loaded function rmlabel | ||
+ | Loaded function plim | ||
+ | Loaded function nullim | ||
+ | Loaded function lines | ||
+ | Loaded function points | ||
+ | Loaded function linespoints | ||
+ | Loaded function dots | ||
+ | Loaded function label | ||
+ | Loaded function prplot | ||
+ | Loaded function gvplot | ||
+ | Loaded function pdfplot | ||
+ | Loaded function psplot | ||
+ | Loaded function labelxy | ||
+ | Loaded function nokey | ||
+ | Loaded function key | ||
+ | |||
+ | dv> plot_functions() | ||
+ | |||
+ | dots() - set plot to dots | ||
+ | gvplot() - view postscript plot | ||
+ | key() - display plot key | ||
+ | label() - add label to plot | ||
+ | labelxy() - add axes labels and title to plot | ||
+ | lines() - set plot to lines | ||
+ | linespoints() - set plot to lines and points | ||
+ | multiplot() - plot multiple plots on the same window | ||
+ | nokey() - remove plot key | ||
+ | noparametric() - allows decreasing x axis | ||
+ | nomultiplot() - remove multiplot option | ||
+ | nullim() - set null plot limits | ||
+ | plim() - set plot limits | ||
+ | plot_loop() - loop through array | ||
+ | points() - set plot to points | ||
+ | prplot() - print plot | ||
+ | psplot() - write postscript plot | ||
+ | replot() - refresh plot | ||
+ | rmlabel() - remove labels | ||
+ | showlabel() - list all labels | ||
+ | themis_plot() - plot themis database parameters | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | }} | ||
[[category:Functions]] | [[category:Functions]] | ||
+ | [[category:Davinci Core]] | ||
[[category:Input/Output]] | [[category:Input/Output]] |
Latest revision as of 14:07, 27 March 2006
Contents: Description, Arguments, Usage, Examples Supported Under Version: >1.69 Current Davinci Version: 2.27 64-bit Safe: No
Description Execute a script file. Loads user-defined function code from a text file into current session of davinci.
Arguments and Return Values Arguments: A string containing the path of the text file Return Value: None. Functions are loaded.
Usage Syntax: source(filename = STRING) The source function executes the specified file exactly as if its contents has been typed as input, with the exception that the commands are not stored in the log file, although the source() command is. Executing scripts that call source is allowed. The only limit on the number of files that can be open is imposed by the operating system.
Examples dv> plot_functions() Function not found: plot_functions dv> source("/themis/lib/dav_lib/plot_tools.dvrc") Loaded function plot_functions Loaded function replot Loaded function showlabel Loaded function multiplot Loaded function nomultiplot Loaded function rmlabel Loaded function plim Loaded function nullim Loaded function lines Loaded function points Loaded function linespoints Loaded function dots Loaded function label Loaded function prplot Loaded function gvplot Loaded function pdfplot Loaded function psplot Loaded function labelxy Loaded function nokey Loaded function key dv> plot_functions() dots() - set plot to dots gvplot() - view postscript plot key() - display plot key label() - add label to plot labelxy() - add axes labels and title to plot lines() - set plot to lines linespoints() - set plot to lines and points multiplot() - plot multiple plots on the same window nokey() - remove plot key noparametric() - allows decreasing x axis nomultiplot() - remove multiplot option nullim() - set null plot limits plim() - set plot limits plot_loop() - loop through array points() - set plot to points prplot() - print plot psplot() - write postscript plot replot() - refresh plot rmlabel() - remove labels showlabel() - list all labels themis_plot() - plot themis database parameters |
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Recent Core Changes Modified On: 03-27-2006 |