summaryrefslogtreecommitdiff
path: root/graphics/epix/doc/sgn.xp
blob: 5296973ba4a5d7d27119454ad8fd3b10ec7e1255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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();
}