Reset parser in grace_set_project().
[grace.git] / src / plotone.h
blobf6209f716a6993fe94006436a553051532afc246
1 /*
2 * Grace - GRaphing, Advanced Computation and Exploration of data
3 *
4 * Home page: http://plasma-gate.weizmann.ac.il/Grace/
5 *
6 * Copyright (c) 1991-1995 Paul J Turner, Portland, OR
7 * Copyright (c) 1996-2003 Grace Development Team
8 *
9 * Maintained by Evgeny Stambulchik
12 * All Rights Reserved
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
30 * plotone.h
33 #ifndef __PLOTONE_H_
34 #define __PLOTONE_H_
36 #include "grace.h"
38 typedef struct {
39 Canvas *canvas;
41 int refn;
42 double *refx, *refy;
43 double offset, epsilon;
45 int ndsets;
47 int first_pass, last_pass;
48 } plot_rt_t;
50 void drawgraph(const Quark *project);
51 void do_hardcopy(const Quark *project);
53 int draw_graph(Quark *gr, plot_rt_t *plot_rt);
54 void draw_set(Quark *pset, plot_rt_t *plot_rt);
56 void draw_frame(Quark *q, plot_rt_t *plot_rt);
57 void fillframe(Canvas *canvas, Quark *q);
59 void drawtext(Canvas *canvas,
60 const VPoint *vp, const TextProps *pstr, const char *s);
62 void drawsetfill(Quark *pset, plot_rt_t *plot_rt);
63 void drawsetline(Quark *pset, plot_rt_t *plot_rt);
64 void drawsetbars(Quark *pset, plot_rt_t *plot_rt);
65 void drawsetsyms(Quark *pset, plot_rt_t *plot_rt);
66 void drawsetavalues(Quark *pset, plot_rt_t *plot_rt);
67 void drawseterrbars(Quark *pset, plot_rt_t *plot_rt);
68 void drawsethilo(Quark *pset, plot_rt_t *plot_rt);
69 void drawcirclexy(Quark *pset, plot_rt_t *plot_rt);
70 void drawsetvmap(Quark *pset, plot_rt_t *plot_rt);
71 void drawsetboxplot(Quark *pset, plot_rt_t *plot_rt);
72 void draw_pie_chart_set(Quark *pset, plot_rt_t *plot_rt);
74 void symplus(Canvas *canvas, const VPoint *vp, double s);
75 void symx(Canvas *canvas, const VPoint *vp, double s);
76 void symsplat(Canvas *canvas, const VPoint *vp, double s);
78 int drawxysym(Canvas *canvas, const VPoint *vp, const Symbol *sym);
79 void drawerrorbar(Canvas *canvas,
80 const VPoint *vp1,const VPoint *vp2, Errbar *eb);
82 void draw_region(Canvas *canvas, Quark *q);
84 void draw_axis(Canvas *canvas, Quark *q);
85 void draw_object(Canvas *canvas, Quark *q);
86 void draw_atext(Canvas *canvas, Quark *q);
88 void draw_arrowhead(Canvas *canvas, const VPoint *vp1, const VPoint *vp2,
89 const Arrow *arrowp, const Pen *pen, const Pen *fill);
91 void draw_legends(Quark *q, plot_rt_t *plot_rt);
93 void draw_ref_point(Canvas *canvas, Quark *gr);
95 #endif /* __PLOTONE_H_ */