]> gitweb.factorcode.org Git - factor.git/commitdiff
ui.gadgets.plot: use easy-help
authorEduardo Cavazos <dharmatech@finkelstein.stackeffects.info>
Mon, 22 Dec 2008 21:57:12 +0000 (15:57 -0600)
committerEduardo Cavazos <dharmatech@finkelstein.stackeffects.info>
Mon, 22 Dec 2008 21:57:12 +0000 (15:57 -0600)
extra/ui/gadgets/plot/plot.factor

index 6fee7dc454657b2d52015e8d36088fd433ed2d3f..f502b7eb38bf82385d20758ff3da0b459ffdaa4d 100644 (file)
@@ -1,25 +1,38 @@
 
 USING: kernel quotations arrays sequences math math.ranges fry
        opengl opengl.gl ui.render ui.gadgets.cartesian processing.shapes
-       accessors ;
+       accessors
+       help.syntax
+       easy-help ;
 
 IN: ui.gadgets.plot
 
 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
-! Examples:
-!
-!   <plot> [ sin ] add-function gadget.
-!
-!   <plot>
-!     [ sin ] red  function boa add-function
-!     [ cos ] blue function boa add-function
-!   gadget.
-!
-! 
-! Use the arrow keys to move around.
-!
-! Use 'a' and 'z' keys to zoom in and out.
+ARTICLE: "ui.gadgets.plot" "Plot Gadget"
+
+Summary:
+
+    A simple gadget for ploting two dimentional functions.
+
+    Use the arrow keys to move around.
+
+    Use 'a' and 'z' keys to zoom in and out. ..
+
+Example:
+
+    <plot> [ sin ] add-function gadget.    ..
+
+Example:
+
+    <plot>
+      [ sin ] red  function boa add-function
+      [ cos ] blue function boa add-function
+    gadget.    ..
+
+;
+
+ABOUT: "ui.gadgets.plot"
 
 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!