b738e09c2e1ebc539ca241a0786059878f7e33f8
[stripchart.git] / stripchart.h
1 /*
2   stripchart - tools for quick & dirty data plotting.
3   Copyright (C) 2008, William Trevor King
4
5   This program is free software; you can redistribute it and/or
6   modify it under the terms of the GNU General Public License as
7   published by the Free Software Foundation; either version 3 of the
8   License, or (at your option) any later version.
9
10   This program is distributed in the hope that it will be useful, but
11   WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
13   See the GNU General Public License for more details.
14
15   You should have received a copy of the GNU General Public License
16   along with this program; if not, write to the Free Software
17   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18   02111-1307, USA.
19
20   The author may be contacted at <wking@drexel.edu> on the Internet, or
21   write to Trevor King, Drexel University, Physics Dept., 3141 Chestnut St.,
22   Philadelphia PA 19104, USA.
23  */
24
25 typedef struct stripchart_struct stripchart_t;
26
27 extern int stripchart_create(stripchart_t **pChart,
28                            char *title, 
29                            char *geometry, /* eg "570x570+0+0" for upper left*/
30                            double minY, double maxY,
31                            double scale_res,
32                            int points_shown_at_once,
33                            int axes_on);
34
35 extern int stripchart_point(stripchart_t *chart, double value);
36
37 extern int stripchart_destroy(stripchart_t **pChart);