[bug #67977] demos that plot anything should have a relevant title

Rik <[email protected]>
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
Please use the bug tracker to post updates to a bug report.  The mailing list is intended as a read-only notification stream.  Info posted to this mailing list address won't appear in the tracker database where it is most useful.

Follow-up Comment #6, bug #67977 (group octave):

The m-files to review are in the directory *TOP_SRCDIR/scripts/plot/* and in
the subdirectories of *appearance/*, *draw/*, *util/*.

Some good examples are in *rose.m*.  The function documentation shows several
ways to call the function:

 -- rose (THETA)
 -- rose (THETA, NBINS)
 -- rose (THETA, BINS)

And the *%!demo* blocks demonstrate using the different calling syntaxes.  The
*title()* command explains what the demo block is showing. 

%!demo
%! clf;
%! rose (2*randn (1e5, 1), 8);
%! title ("rose() angular histogram plot with 8 bins");

%!demo
%! clf;
%! rose ([2*randn(1e5, 1), pi + 2*randn(1e5, 1)]);
%! title ("rose() angular histogram plot with 2 data series");

%!demo
%! clf;
%! rose ([0, 2, 3, 5], [0, pi/2, pi, 3*pi/2]);
%! title ("rose() angular histogram plot with specified bins");

Using *grep* it is easy to find the m-files which have *%!demo* blocks.  After
that, it will require some inspection to see if they are missing a *title()*
command.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?67977>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaa/HJgAKCRCqLAuaBUf3
Tlp0AQCzJPC4+gg+CVAq2h+ohahT/EbJ+y+Stfy5V71R085x0gEAo+Yz1lVB9HV+
srPGfR7auxZCeEsm3Drljl09yaQmHgs=
=Tytu
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.