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