File:  [LON-CAPA] / loncom / html / adm / help / tex / Authoring_Dynamic_Plot_Curve_Data.tex
Revision 1.7: download - view: text, annotated - select for diffs
Thu Aug 18 11:40:03 2016 UTC (7 years, 10 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_12_X, version_2_11_X, version_2_11_4_uiuc, version_2_11_4_msu, version_2_11_4, version_2_11_3_uiuc, version_2_11_3_msu, version_2_11_3, version_2_11_2_uiuc, version_2_11_2_msu, version_2_11_2_educog, version_2_11_2, HEAD
- use LaTeX-style double quotes.

\label{Authoring_Dynamic_Plot_Curve_Data}

The \textbf{data} tag is used to specify the values plotted in the 
\textbf{gnuplot} tag (see ``Authoring Dynamically Generated Plots'' section 
\ref{Authoring_Dynamic_Plot_Gnuplot}).
The \textbf{data} tag is only used in the \textbf{Curve} tag 
(see ``Specifying Curves to Plot'' section \ref{Authoring_Dynamic_Plot_Curve}).

The data must be either a perl array, \texttt{@X}, or a comma separated list,
such as ``0.5,0.9,1.5, 2.4'' (without quotes).  `NaN' is a valid value. 
Note the the ``Y'' values are entered in a separate array.

The function and number of \textbf{data} tags required varies based on the 
line style (see ``Data and Line Styles'' section \ref{Authoring_Dynamic_Plot_Linestyle}) chosen for the
curve.  Some linestyles require extra arrays for supplemental information. 
In all cases the first \textbf{data} tag will hold the ``X'' values
and the second will hold the ``Y'' values.

All of the data sets in the \textbf{data} tag must have the same number of
elements.

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>