From: <hez...@us...> - 2011-04-22 04:48:57
|
Revision: 11719 http://plplot.svn.sourceforge.net/plplot/?rev=11719&view=rev Author: hezekiahcarty Date: 2011-04-22 04:48:51 +0000 (Fri, 22 Apr 2011) Log Message: ----------- Add plcolorbar pages to C example 33 without caps This also adds a PL_COLORBAR_CAP_NONE definition to plplot.h to avoid an ugly hard-coded 0 in user code like example 33. Modified Paths: -------------- trunk/examples/c/x33c.c trunk/include/plplot.h Modified: trunk/examples/c/x33c.c =================================================================== --- trunk/examples/c/x33c.c 2011-04-22 04:48:42 UTC (rev 11718) +++ trunk/examples/c/x33c.c 2011-04-22 04:48:51 UTC (rev 11719) @@ -108,13 +108,15 @@ }; // Colorbar cap options -#define COLORBAR_CAPS 3 +#define COLORBAR_CAPS 4 static PLINT colorbar_cap_options[COLORBAR_CAPS] = { + PL_COLORBAR_CAP_NONE, PL_COLORBAR_CAP_LOW, PL_COLORBAR_CAP_HIGH, PL_COLORBAR_CAP_LOW | PL_COLORBAR_CAP_HIGH }; static const char *colorbar_cap_option_labels[COLORBAR_CAPS] = { + "No caps", "Low cap", "High cap", "Low and high caps" Modified: trunk/include/plplot.h =================================================================== --- trunk/include/plplot.h 2011-04-22 04:48:42 UTC (rev 11718) +++ trunk/include/plplot.h 2011-04-22 04:48:51 UTC (rev 11719) @@ -1249,6 +1249,7 @@ #define PL_COLORBAR_IMAGE 16 #define PL_COLORBAR_SHADE 32 #define PL_COLORBAR_GRADIENT 64 +#define PL_COLORBAR_CAP_NONE 0 #define PL_COLORBAR_CAP_LOW 128 #define PL_COLORBAR_CAP_HIGH 256 #define PL_COLORBAR_SHADE_LABEL 512 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |