My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
axes.h
1 #ifndef axes_h
2 #define axes_h
3 
4 /*
5  * The following enumerators represent axis-labeling options that are
6  * designed to be OR'd together and presented as the 'options' argument
7  * of linear_axis() and utc_axis().
8  */
9 typedef enum {
10  AXIS_WITH_LABELS=1, /* Draw numeric labels next to the tick marks */
11  AXIS_OUTWARD_TEXT=2, /* When plotting tick labels, plot them projecting out */
12  /* from the axis instead of parallel to it. */
13  AXIS_IS_CRAMPED=4 /* Normally it is guaranteed that there will be */
14  /* at least 3 major axis ticks. With this option */
15  /* the guarantee becomes "at least 2 ticks". */
16 } AxisOptions;
17 
18 /*
19  * Plot a linear axis between specified world-coordinates.
20  */
21 int linear_axis(int options, float x1, float y1, float x2, float y2,
22  double v1, double v2, float majl, float majr,
23  float minf, float disp);
24 
25 /*
26  * Plot an axis for a range of Modified Julian Dates, labelled with
27  * date and time.
28  */
29 int utc_axis(int options, float x1, float y1, float x2, float y2,
30  double mjd1, double mjd2, float majl, float majr,
31  float minf, float disp);
32 
33 #endif