1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
/* giza - a scientific plotting library built on cairo
*
* Copyright (c) 2010 James Wetter and Daniel Price
* Copyright (c) 2010-2012 Daniel Price
*
* This library is free software; and you are welcome to redistribute
* it under the terms of the GNU General Public License
* (GPL, see LICENSE file for details) and the provision that
* this notice remains intact. If you modify this file, please
* note section 5a) of the GPLv3 states that:
*
* a) The work must carry prominent notices stating that you modified
* it, and giving a relevant date.
*
* This software is distributed "AS IS", with ABSOLUTELY NO WARRANTY.
* See the GPL for specific language governing rights and limitations.
*
* The Original code is the giza plotting library.
*
* Contributor(s):
* James Wetter <wetter.j@gmail.com>
* Daniel Price <daniel.price@monash.edu> (main contact)
*/
#include <giza.h>
int
main ()
{
giza_open_device ("?", "errors");
giza_start_warnings ();
double xpts[2], ypts[2], errors[2];
xpts[0] = .3;
xpts[1] = 0.7;
ypts[0] = 0.7;
ypts[1] = 0.3;
errors[0] = 0.01;
errors[1] = 0.1;
giza_points (2, xpts, ypts, 4);
giza_box ("BCNT", 0., 0, "BCNT", 0., 0);
giza_error_bars (1, 2, xpts, ypts, errors, 1.);
giza_change_page ();
giza_box ("BCNT", 0., 0, "BCNT", 0., 0);
giza_error_bars (2, 2, xpts, ypts, errors, 1.);
giza_points (2, xpts, ypts, 178);
giza_change_page ();
giza_box ("BCNT", 0., 0, "BCNT", 0., 0);
giza_error_bars (3, 2, xpts, ypts, errors, 1.);
giza_points (2, xpts, ypts, 178);
giza_change_page ();
giza_box ("BCNT", 0., 0, "BCNT", 0., 0);
giza_error_bars (4, 2, xpts, ypts, errors, 4.);
giza_points (2, xpts, ypts, 178);
giza_change_page ();
giza_box ("BCNT", 0., 0, "BCNT", 0., 0);
giza_error_bars (5, 2, xpts, ypts, errors, 4.);
giza_points (2, xpts, ypts, 178);
giza_change_page ();
giza_box ("BCNT", 0., 0, "BCNT", 0., 0);
giza_error_bars (6, 2, xpts, ypts, errors, 4.);
giza_points (2, xpts, ypts, 178);
giza_close_device ();
}
|