/[xforms]/xforms/demos/xyover
ViewVC logotype

Diff of /xforms/demos/xyover

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by leeming, Sun Apr 6 15:52:38 2003 UTC revision 1.2 by leeming, Tue Sep 9 00:28:25 2003 UTC
# Line 1  Line 1 
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
# Line 22  typedef struct Line 22  typedef struct
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;
# Line 57  void newsymbol(FL_OBJECT *ob, int id, Line 57  void newsymbol(FL_OBJECT *ob, int id,
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;
# Line 93  create_form_fff(void) Line 93  create_form_fff(void)
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);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26