From c181056ed26f6f9e1e1bbed746fd0093393f0362 Mon Sep 17 00:00:00 2001 From: Eduardo Cavazos Date: Mon, 22 Dec 2008 15:57:12 -0600 Subject: [PATCH] ui.gadgets.plot: use easy-help --- extra/ui/gadgets/plot/plot.factor | 41 ++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/extra/ui/gadgets/plot/plot.factor b/extra/ui/gadgets/plot/plot.factor index 6fee7dc454..f502b7eb38 100644 --- a/extra/ui/gadgets/plot/plot.factor +++ b/extra/ui/gadgets/plot/plot.factor @@ -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: -! -! [ sin ] add-function gadget. -! -! -! [ 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: + + [ sin ] add-function gadget. .. + +Example: + + + [ sin ] red function boa add-function + [ cos ] blue function boa add-function + gadget. .. + +; + +ABOUT: "ui.gadgets.plot" ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!