|
From: <ai...@us...> - 2011-05-30 20:16:57
|
Revision: 11756
http://plplot.svn.sourceforge.net/plplot/?rev=11756&view=rev
Author: airwin
Date: 2011-05-30 20:16:51 +0000 (Mon, 30 May 2011)
Log Message:
-----------
Switch to less error-prone hexadecimal notation for PL_POSITION_*,
PL_LEGEND_*, and PL_COLORBAR_* #defines.
Modified Paths:
--------------
trunk/include/plplot.h
Modified: trunk/include/plplot.h
===================================================================
--- trunk/include/plplot.h 2011-05-30 19:11:52 UTC (rev 11755)
+++ trunk/include/plplot.h 2011-05-30 20:16:51 UTC (rev 11756)
@@ -1231,41 +1231,41 @@
c_pllab( const char *xlabel, const char *ylabel, const char *tlabel );
//flags used for position argument of both pllegend and plcolorbar
-#define PL_POSITION_LEFT 1
-#define PL_POSITION_RIGHT 2
-#define PL_POSITION_TOP 4
-#define PL_POSITION_BOTTOM 8
-#define PL_POSITION_INSIDE 16
-#define PL_POSITION_OUTSIDE 32
-#define PL_POSITION_VIEWPORT 64
-#define PL_POSITION_SUBPAGE 128
+#define PL_POSITION_LEFT 0x1
+#define PL_POSITION_RIGHT 0x2
+#define PL_POSITION_TOP 0x4
+#define PL_POSITION_BOTTOM 0x8
+#define PL_POSITION_INSIDE 0x10
+#define PL_POSITION_OUTSIDE 0x20
+#define PL_POSITION_VIEWPORT 0x40
+#define PL_POSITION_SUBPAGE 0x80
// Flags for pllegend.
-#define PL_LEGEND_NONE 1
-#define PL_LEGEND_COLOR_BOX 2
-#define PL_LEGEND_LINE 4
-#define PL_LEGEND_SYMBOL 8
-#define PL_LEGEND_TEXT_LEFT 16
-#define PL_LEGEND_BACKGROUND 32
-#define PL_LEGEND_BOUNDING_BOX 64
-#define PL_LEGEND_ROW_MAJOR 128
+#define PL_LEGEND_NONE 0x1
+#define PL_LEGEND_COLOR_BOX 0x2
+#define PL_LEGEND_LINE 0x4
+#define PL_LEGEND_SYMBOL 0x8
+#define PL_LEGEND_TEXT_LEFT 0x10
+#define PL_LEGEND_BACKGROUND 0x20
+#define PL_LEGEND_BOUNDING_BOX 0x40
+#define PL_LEGEND_ROW_MAJOR 0x80
// Flags for plcolorbar
-#define PL_COLORBAR_LABEL_LEFT 1
-#define PL_COLORBAR_LABEL_RIGHT 2
-#define PL_COLORBAR_LABEL_TOP 4
-#define PL_COLORBAR_LABEL_BOTTOM 8
-#define PL_COLORBAR_IMAGE 16
-#define PL_COLORBAR_SHADE 32
-#define PL_COLORBAR_GRADIENT 64
-#define PL_COLORBAR_CAP_NONE 128
-#define PL_COLORBAR_CAP_LOW 256
-#define PL_COLORBAR_CAP_HIGH 512
-#define PL_COLORBAR_SHADE_LABEL 1024
-#define PL_COLORBAR_ORIENT_RIGHT 2048
-#define PL_COLORBAR_ORIENT_TOP 4096
-#define PL_COLORBAR_ORIENT_LEFT 8192
-#define PL_COLORBAR_ORIENT_BOTTOM 16384
+#define PL_COLORBAR_LABEL_LEFT 0x1
+#define PL_COLORBAR_LABEL_RIGHT 0x2
+#define PL_COLORBAR_LABEL_TOP 0x4
+#define PL_COLORBAR_LABEL_BOTTOM 0x8
+#define PL_COLORBAR_IMAGE 0x10
+#define PL_COLORBAR_SHADE 0x20
+#define PL_COLORBAR_GRADIENT 0x40
+#define PL_COLORBAR_CAP_NONE 0x80
+#define PL_COLORBAR_CAP_LOW 0x100
+#define PL_COLORBAR_CAP_HIGH 0x200
+#define PL_COLORBAR_SHADE_LABEL 0x400
+#define PL_COLORBAR_ORIENT_RIGHT 0x800
+#define PL_COLORBAR_ORIENT_TOP 0x1000
+#define PL_COLORBAR_ORIENT_LEFT 0x2000
+#define PL_COLORBAR_ORIENT_BOTTOM 0x4000
// Flags for drawing mode
#define PL_MODE_UNKNOWN 0
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|