# HG changeset patch # User Kai Habel # Date 1288114579 -7200 # Node ID a06759adaa7953d23710bf7705fafd153f1a19b1 # Parent 1795fe0ea0040aa5424ad28934db207c1d53aa35 Add demo for uimenu.m diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-10-26 Kai Habel + + * plot/uimenu.m: Add simple demo + 2010-10-25 David Bateman * statistics/distributions/discrete_pdf.m: Sort values before calling diff --git a/scripts/plot/uimenu.m b/scripts/plot/uimenu.m --- a/scripts/plot/uimenu.m +++ b/scripts/plot/uimenu.m @@ -104,3 +104,12 @@ endif endfunction + +%!demo +%! surfl(peaks); +%! colormap(copper); +%! shading("interp"); +%! f = uimenu("label", "&File", "accelerator", "f"); +%! e = uimenu("label", "&Edit", "accelerator", "e"); +%! uimenu(f, "label", "Close", "accelerator", "q", "callback", "close (gcf)"); +%! uimenu(e, "label", "Toggle &Grid", "accelerator", "g", "callback", "grid (gca)");