[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Organization of plots in the Manual
From: |
John W. Eaton |
Subject: |
Organization of plots in the Manual |
Date: |
Wed, 16 Dec 2009 01:40:37 -0500 |
On 15-Dec-2009, Michael D Godfrey wrote:
| I was editing a few typos in plot.txi and noticed that
| the text which is indicated to have generated a plot
| is given in plot.txi as, for example:
| @example
| @group
| x = -10:0.1:10;
| plot (x, sin (x));
| @end group
| @end example
| ==========================
| But, the actual code that creates the plot is in plotimages.m
| Thus, there is a duplication of code which should be kept in
| sync. This is error prone, and there are a few errors.
|
| Can anyone think of a convenient way to have one source of
| plot commands for both plotting and inclusion in the Manual
| text?
We could tag the code for each example and then include it in the
text, or build up the plotimages.m file from smaller parts that are
suitable for including directly in the manual. Is the extra scripting
and Make magic necessary to do this job it worth the effort?
jwe