1 |
/* |
/* |
2 |
* Demo showing the use of xyplot overlay, plot key and |
* Demo showing the use of xyplot overlay, plot key and |
3 |
* PostScript output. |
* PostScript output. |
4 |
* |
* |
5 |
* This file is part of xforms package |
* This file is part of xforms package |
6 |
* T.C. Zhao and M. Overmars |
* T.C. Zhao and M. Overmars |
22 |
extern FD_fff *create_form_fff(void); |
extern FD_fff *create_form_fff(void); |
23 |
extern void init_xyplot(FD_fff *); |
extern void init_xyplot(FD_fff *); |
24 |
|
|
25 |
int |
int |
26 |
main(int argc, char *argv[]) |
main(int argc, char *argv[]) |
27 |
{ |
{ |
28 |
FD_fff *fd_fff; |
FD_fff *fd_fff; |
57 |
|
|
58 |
|
|
59 |
|
|
60 |
void |
void |
61 |
init_xyplot(FD_fff * fd_fff) |
init_xyplot(FD_fff * fd_fff) |
62 |
{ |
{ |
63 |
int i; |
int i; |
93 |
|
|
94 |
fdui->fff = fl_bgn_form(FL_NO_BOX, 370, 310); |
fdui->fff = fl_bgn_form(FL_NO_BOX, 370, 310); |
95 |
obj = fl_add_box(FL_UP_BOX, 0, 0, 370, 310, ""); |
obj = fl_add_box(FL_UP_BOX, 0, 0, 370, 310, ""); |
96 |
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, |
97 |
"An XYPlot with overlay"); |
"An XYPlot with overlay"); |
98 |
fl_set_object_lalign(obj, FL_ALIGN_BOTTOM | FL_ALIGN_INSIDE); |
fl_set_object_lalign(obj, FL_ALIGN_BOTTOM | FL_ALIGN_INSIDE); |
99 |
fl_set_object_lsize(obj, FL_NORMAL_SIZE); |
fl_set_object_lsize(obj, FL_NORMAL_SIZE); |