File:  [LON-CAPA] / loncom / html / adm / help / tex / Authoring_Dynamic_Plot_Gnuplot.tex
Revision 1.3: download - view: text, annotated - select for diffs
Thu Jun 3 20:30:41 2004 UTC (20 years, 1 month ago) by matthew
Branches: MAIN
CVS tags: version_1_2_X, version_1_2_1, version_1_2_0, version_1_1_99_5, version_1_1_99_4, version_1_1_99_3, version_1_1_99_2, version_1_1_99_1, version_1_1_99_0, HEAD
Updates for new fields.

\label{Authoring_Dynamic_Plot_Gnuplot}

The \textbf{gnuplot} tag allows an author to design a plot which is created
when it is viewed.  This is intended for use in homework problems
where each student needs to see a distinct plot.  It can be used in
conjunction with a \textbf{script} tag to generate random plots.

The following parameters may be set:

\begin{itemize}
\item \texttt{brief description of the plot} 
This text is used as the \texttt{alt} parameter of the \texttt{img} tag 
used to embed the plot.

\item \texttt{background color of image (xffffff)}
See the section on color selection \ref{Authoring_Dynamic_Plot_Color_Selection}
for help on specifying colors.

\item \texttt{foreground color of image (x000000)} 

See the section on color selection \ref{Authoring_Dynamic_Plot_Color_Selection}
for help on specifying colors.

\item \texttt{height of image (pixels)}

\item \texttt{width of image (pixels)}

\item \texttt{Size of font to use} ``small'', ``medium'', or ``large''.  
The font used for any text on the plot is set with this tag.

\item \texttt{Transparent image} ``Yes'' or ``No''.  
If the image is transparent the background color will be ignored.

\item \texttt{Display grid} ``Yes'' or ``No''.  

\item \texttt{Number of samples for non-data plots}  If a \textbf{function} 
\ref{Authoring_Dynamic_Plot_Curve_Function} tag is used to specify the
\textbf{curve} \ref{Authoring_Dynamic_Plot_Curve}, this indicates the number
of sample points to use.

\item \texttt{Draw border around plot} ``Yes'' or ``No''

\item \texttt{alignment for image in html} ``Left'', ``Center'', or ``Right''.
This is the value used for the \texttt{align} parameter in the \texttt{img} 
tag which embeds the plot in the problem.

\item \texttt{Width of plot when printed (mm)} The width in mm of the plot when
it is printed.  The default is approximately one half of a U.S. letter size 
page, 93 mm.

\item \texttt{Font size to use in TeX output (pts)} The size in points of text
on the graph when it is printed out.

\item \texttt{Plot type:} ``Cartesian'' or ``Polar''.  
\end{itemize}

The \textbf{gnuplot} tag allows the use of the the following tags:

\begin{itemize}
\item \textbf{curve} \ref{Authoring_Dynamic_Plot_Curve}
\item \textbf{key}   \ref{Authoring_Dynamic_Plot_Key}
\item \textbf{label} \ref{Authoring_Dynamic_Plot_Label}
\item \textbf{axes}  \ref{Authoring_Dynamic_Plot_Axes}
\item \textbf{tics}  \ref{Authoring_Dynamic_Plot_Tics}
\item \textbf{title}, \textbf{xlabel}, and \textbf{ylabel} 
      \ref{Authoring_Dynamic_Plot_Title_X_Y_Label}
\end{itemize}


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