22 |
|
|
23 |
/* |
/* |
24 |
* Demo showing the use of xyplot overlay, plot key and |
* Demo showing the use of xyplot overlay, plot key and |
25 |
* PostScript output. |
* PostScript output. |
26 |
* |
* |
27 |
* This file is part of xforms package |
* This file is part of xforms package |
28 |
* T.C. Zhao and M. Overmars |
* T.C. Zhao and M. Overmars |
47 |
extern FD_fff *create_form_fff(void); |
extern FD_fff *create_form_fff(void); |
48 |
extern void init_xyplot(FD_fff *); |
extern void init_xyplot(FD_fff *); |
49 |
|
|
50 |
int |
int |
51 |
main(int argc, char *argv[]) |
main(int argc, char *argv[]) |
52 |
{ |
{ |
53 |
FD_fff *fd_fff; |
FD_fff *fd_fff; |
71 |
} |
} |
72 |
|
|
73 |
|
|
74 |
void |
void |
75 |
init_xyplot(FD_fff * fd_fff) |
init_xyplot(FD_fff * fd_fff) |
76 |
{ |
{ |
77 |
int i; |
int i; |
106 |
|
|
107 |
fdui->fff = fl_bgn_form(FL_NO_BOX, 370, 310); |
fdui->fff = fl_bgn_form(FL_NO_BOX, 370, 310); |
108 |
obj = fl_add_box(FL_UP_BOX, 0, 0, 370, 310, ""); |
obj = fl_add_box(FL_UP_BOX, 0, 0, 370, 310, ""); |
109 |
fdui->xyplot = obj = fl_add_xyplot(FL_IMPULSE_XYPLOT, 10, 20, 350, 260, |
fdui->xyplot = obj = fl_add_xyplot(FL_IMPULSE_XYPLOT, 10, 20, 350, 260, |
110 |
"An XYPlot with overlay"); |
"An XYPlot with overlay"); |
111 |
fl_set_object_lalign(obj, FL_ALIGN_BOTTOM | FL_ALIGN_INSIDE); |
fl_set_object_lalign(obj, FL_ALIGN_BOTTOM | FL_ALIGN_INSIDE); |
112 |
fl_set_object_lsize(obj, FL_NORMAL_SIZE); |
fl_set_object_lsize(obj, FL_NORMAL_SIZE); |