summaryrefslogtreecommitdiff
path: root/graphics/epix/doc/cb.xp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/epix/doc/cb.xp')
-rw-r--r--graphics/epix/doc/cb.xp22
1 files changed, 22 insertions, 0 deletions
diff --git a/graphics/epix/doc/cb.xp b/graphics/epix/doc/cb.xp
new file mode 100644
index 0000000000..e0434b483e
--- /dev/null
+++ b/graphics/epix/doc/cb.xp
@@ -0,0 +1,22 @@
+/* -*-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();
+ plot(cb, x_min, x_max, 4);
+
+ label(P(0,y_min), P(0,-4), "\\code{cb}", b);
+
+ end();
+}