source: trunk/src/Utils/mycpgplot.hh @ 187

Last change on this file since 187 was 187, checked in by Matthew Whiting, 18 years ago

Large suite of edits, mostly due to testing with valgrind, which clear up bad memory allocations and so on.
Improved the printing of progress bars in some routines by introducing a new ProgressBar? class, with associated functions to do the printing (now much cleaner).

File size: 1.0 KB
Line 
1#ifndef MYCPGPLOT_H
2#define MYCPGPLOT_H
3#include <string>
4namespace mycpgplot
5{
6
7  enum COLOUR {WHITE=0, BLACK, RED, GREEN, BLUE, CYAN, MAGENTA, YELLOW,
8               ORANGE, GREENYELLOW, GREENCYAN, BLUECYAN, BLUEMAGENTA,
9               REDMAGENTA, DARKGREY, LIGHTGREY, DARKGREEN};
10
11  enum INVERSE {XS_BLACK, XS_WHITE};
12
13  inline void setDarkGreen(){cpgscr(DARKGREEN,0.,0.7,0.);};
14
15  enum LINESTYLE {FULL=1, DASHED, DASHDOT, DOTTED, DASHDOT3};
16
17  enum FILLSTYLE {SOLID=1, OUTLINE, HATCHED, CROSSHATCHED};
18
19  enum SYMBOLS {SOLIDPENT=-5, SOLIDDIAMOND, DOT=1, PLUS, ASTERISK,
20                CIRCLE, CROSS, SQUARE, TRIANGLE, OPLUS, ODOT, FOURSTAR,
21                DIAMOND, STAR, SOLIDTRIANGLE, OPENPLUS, DAVID,
22                SOLIDSQUARE, SOLIDCIRCLE, SOLIDSTAR, LARGESQUARE,
23                CIRCLE1, CIRCLE2, CIRCLE3, CIRCLE4, CIRCLE5, CIRCLE6,
24                CIRCLE7, CIRCLE8, CIRCLE9, LEFT, RIGHT, UP, DOWN};
25
26  const std::string degrees="\\(0718)";
27  const std::string plusminus="\\(2233)";
28  const std::string tick="\\(2267)";
29  const std::string odot="\\(2281)";
30  const std::string integral="\\(2268)";
31
32}
33
34
35#endif
Note: See TracBrowser for help on using the repository browser.