diff options
Diffstat (limited to 'graphics/epix/doc/sinx.xp')
-rw-r--r-- | graphics/epix/doc/sinx.xp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/graphics/epix/doc/sinx.xp b/graphics/epix/doc/sinx.xp new file mode 100644 index 0000000000..62c08bbc48 --- /dev/null +++ b/graphics/epix/doc/sinx.xp @@ -0,0 +1,23 @@ +/* -*-ePiX-*- */ +#include "epix.h" +using namespace ePiX; + +int main() +{ + bounding_box(P(-2,-1),P(2,1)); + unitlength("1in"); + picture(1.5,0.75); + + begin(); + revolutions(); + + h_axis(4); + v_axis(1); + + bold(); + plot(sinx, x_min, x_max, 60); + + label(P(0,y_min), P(0,-4), "\\code{sinx}", b); + + end(); +} |