source: tags/release-1.0.5/src/Utils/mycpgplot.hh @ 1455

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

A few new things:

  • Made a mycpgplot.hh file, to keep PGPlot-related constants (enum types)

in a standard namespace (so one can do cpgsci(RED) rather than cpgsci(2)...).
Incorporated this into all code that uses pgplot.

  • Improved the outputting of the number of detected objects in the search

functions. Now shows how many have been detected, before they are merged
into the list.

  • Fixed a bug in columns.cc that was incorrectly updating the precision for

negative velocities.

  • Additional text in the Guide, and general clean up of code.
File size: 998 bytes
Line 
1#ifndef MYCPGPLOT_H
2#define MYCPGPLOT_H
3
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 string degrees="\\(0718)";
27  const string plusminus="\\(2233)";
28  const string tick="\\(2267)";
29  const string odot="\\(2281)";
30  const string integral="\\(2268)";
31
32}
33
34
35#endif
Note: See TracBrowser for help on using the repository browser.