|
From: <hez...@us...> - 2011-04-22 04:49:05
|
Revision: 11720
http://plplot.svn.sourceforge.net/plplot/?rev=11720&view=rev
Author: hezekiahcarty
Date: 2011-04-22 04:48:59 +0000 (Fri, 22 Apr 2011)
Log Message:
-----------
Position colorbar labels a bit closer to the bar in some cases
If there are no ticks between the label and the colorbar, bring the label
in a bit closer.
Modified Paths:
--------------
trunk/src/pllegend.c
Modified: trunk/src/pllegend.c
===================================================================
--- trunk/src/pllegend.c 2011-04-22 04:48:51 UTC (rev 11719)
+++ trunk/src/pllegend.c 2011-04-22 04:48:59 UTC (rev 11720)
@@ -1386,7 +1386,10 @@
{
if ( position & PL_POSITION_RIGHT || position & PL_POSITION_LEFT )
{
- label_offset += 4.0;
+ if ( position & PL_POSITION_LEFT )
+ label_offset += 4.0;
+ else
+ label_offset += 2.0;
perp = '\0';
just = 0.5;
}
@@ -1403,7 +1406,10 @@
{
if ( position & PL_POSITION_RIGHT || position & PL_POSITION_LEFT )
{
- label_offset += 4.0;
+ if ( position & PL_POSITION_RIGHT )
+ label_offset += 4.0;
+ else
+ label_offset += 2.0;
perp = '\0';
just = 0.5;
}
@@ -1425,7 +1431,10 @@
}
else
{
- label_offset += 4.0;
+ if ( position & PL_POSITION_TOP )
+ label_offset += 4.0;
+ else
+ label_offset += 2.0;
perp = '\0';
}
snprintf( opt_string, max_opts, "t%c", perp );
@@ -1440,7 +1449,10 @@
}
else
{
- label_offset += 4.0;
+ if ( position & PL_POSITION_BOTTOM )
+ label_offset += 4.0;
+ else
+ label_offset += 2.0;
perp = '\0';
}
snprintf( opt_string, max_opts, "b%c", perp );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|