1 /* GNUPLOT - plot2d.h */ 2 3 /*[ 4 * Copyright 1999, 2004 Thomas Williams, Colin Kelley 5 * 6 * Permission to use, copy, and distribute this software and its 7 * documentation for any purpose with or without fee is hereby granted, 8 * provided that the above copyright notice appear in all copies and 9 * that both that copyright notice and this permission notice appear 10 * in supporting documentation. 11 * 12 * Permission to modify the software is granted, but not the right to 13 * distribute the complete modified source code. Modifications are to 14 * be distributed as patches to the released version. Permission to 15 * distribute binaries produced by compiling modified sources is granted, 16 * provided you 17 * 1. distribute the corresponding source modifications from the 18 * released version in the form of a patch file along with the binaries, 19 * 2. add special version identification to distinguish your version 20 * in addition to the base release version number, 21 * 3. provide your name and address as the primary contact for the 22 * support of your modified version, and 23 * 4. retain our contact information in regard to use of the base 24 * software. 25 * Permission to distribute the released version of the source code along 26 * with corresponding source modifications in the form of a patch file is 27 * granted with same provisions 2 through 4 for binary distributions. 28 * 29 * This software is provided "as is" without express or implied warranty 30 * to the extent permitted by applicable law. 31 ]*/ 32 33 #ifndef GNUPLOT_PLOT2D_H 34 # define GNUPLOT_PLOT2D_H 35 36 #include "syscfg.h" 37 38 /* This allows a natural interpretation of providing only a single column in 'using' */ 39 #define default_smooth_weight(option) \ 40 (option == SMOOTH_BINS || option == SMOOTH_KDENSITY || \ 41 option == SMOOTH_FREQUENCY) 42 43 /* Variables of plot2d.c needed by other modules: */ 44 45 extern struct curve_points *first_plot; 46 47 /* prototypes from plot2d.c */ 48 49 void plotrequest(void); 50 void refresh_bounds(struct curve_points *first_plot, int nplots); 51 52 /* internal and external variables */ 53 void cp_free(struct curve_points *cp); 54 void cp_extend(struct curve_points *cp, int num); 55 56 #include "gp_types.h" 57 #include "gadgets.h" 58 struct text_label *store_label(struct text_label *, struct coordinate *, 59 int i, char * string, double colorval); 60 void parse_plot_title(struct curve_points *this_plot, 61 char *xtitle, char *ytitle, TBOOLEAN *set_title); 62 void reevaluate_plot_title(struct curve_points *this_plot); 63 64 #endif /* GNUPLOT_PLOT2D_H */ 65