summaryrefslogtreecommitdiff
path: root/graphics/epix/doc/sgn.xp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/epix/doc/sgn.xp')
-rw-r--r--graphics/epix/doc/sgn.xp28
1 files changed, 28 insertions, 0 deletions
diff --git a/graphics/epix/doc/sgn.xp b/graphics/epix/doc/sgn.xp
new file mode 100644
index 0000000000..5296973ba4
--- /dev/null
+++ b/graphics/epix/doc/sgn.xp
@@ -0,0 +1,28 @@
+/* -*-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();
+
+ h_axis(4);
+ v_axis(1);
+
+ bold();
+ line(P(x_min,-1), P(0,-1));
+ line(P(x_max, 1), P(0, 1));
+
+ plain();
+ dot(P(0,0));
+ circ(P(0,-1));
+ circ(P(0,1));
+
+ label(P(0,y_min), P(0,-4), "\\code{sgn}", b);
+
+ end();
+}