summaryrefslogtreecommitdiff
path: root/graphics/epix/samples/polar.xp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/epix/samples/polar.xp')
-rw-r--r--graphics/epix/samples/polar.xp29
1 files changed, 0 insertions, 29 deletions
diff --git a/graphics/epix/samples/polar.xp b/graphics/epix/samples/polar.xp
deleted file mode 100644
index d2c1934552..0000000000
--- a/graphics/epix/samples/polar.xp
+++ /dev/null
@@ -1,29 +0,0 @@
-/* -*-ePiX-*- */
-#include "epix.h"
-using namespace ePiX;
-
-double f(double t)
-{
- return 2*Cos(3*t);
-}
-
-int main()
-{
- picture(P(-2,-2), P(2,2), "2x2in");
-
- begin();
- degrees();
-
- black(0.3);
- polar_grid(2, 4, 24); // radius, rings, sectors
-
- black();
- bottom_axis(4, P(0,-4)).subdivide(2).draw();
- left_axis(4, P(-4,0)).subdivide(2).draw();
-
- bold();
- polarplot(f, 0, 180, 120); // plot over [0, 180] using 120 intervals
-
- end();
-}
-