/[xforms]/xforms/demos/xyplotover.c
ViewVC logotype

Diff of /xforms/demos/xyplotover.c

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

revision 1.3 by leeming, Thu Apr 24 09:35:33 2003 UTC revision 1.4 by leeming, Tue Sep 9 00:28:25 2003 UTC
# Line 22  Line 22 
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
# Line 47  typedef struct Line 47  typedef struct
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;
# Line 71  main(int argc, char *argv[]) Line 71  main(int argc, char *argv[])
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;
# Line 106  create_form_fff(void) Line 106  create_form_fff(void)
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);

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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