Mercurial > octave
changeset 26576:49eae759a3e2 stable
documentation: Slightly change figure with Voronoi diagram.
* geometryimages.m: Omit legend that was covering a large part of the figure.
Use equal axis scaling to make the circle look non-elliptic.
* geometry.txi: Reference colors in caption of figure.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sat, 19 Jan 2019 14:44:29 +0100 |
parents | 3e7fa894731a |
children | ae1542fb58ba |
files | doc/interpreter/geometry.txi doc/interpreter/geometryimages.m |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/interpreter/geometry.txi Sat Jan 19 11:39:49 2019 +0100 +++ b/doc/interpreter/geometry.txi Sat Jan 19 14:44:29 2019 +0100 @@ -313,7 +313,8 @@ @float Figure,fig:voronoi @center @image{voronoi,4in} -@caption{Delaunay triangulation and Voronoi diagram of a random set of points} +@caption{Delaunay triangulation (blue lines) and Voronoi diagram (red lines) +of a random set of points} @end float @end ifnotinfo
--- a/doc/interpreter/geometryimages.m Sat Jan 19 11:39:49 2019 +0100 +++ b/doc/interpreter/geometryimages.m Sat Jan 19 14:44:29 2019 +0100 @@ -51,7 +51,8 @@ yc = r * cos (pi*pc) + c(2); plot (xc, yc, "g-", "LineWidth", 3); axis ([0, 1, 0, 1]); - legend ("Delaunay Triangulation", "Voronoi Diagram"); + set (gca, "dataaspectratio", [1, 1, 1], + "plotboxaspectratio", [1, 1, 1]); print (outfile, d_typ); elseif (strcmp (nm, "triplot")) rand ("state", 2)