|
From: <ai...@us...> - 2010-09-26 02:24:12
|
Revision: 11218
http://plplot.svn.sourceforge.net/plplot/?rev=11218&view=rev
Author: airwin
Date: 2010-09-26 02:24:06 +0000 (Sun, 26 Sep 2010)
Log Message:
-----------
Implement PL_LEGEND_TEXT_LEFT capability.
Modified Paths:
--------------
trunk/src/pllegend.c
Modified: trunk/src/pllegend.c
===================================================================
--- trunk/src/pllegend.c 2010-09-26 02:23:17 UTC (rev 11217)
+++ trunk/src/pllegend.c 2010-09-26 02:24:06 UTC (rev 11218)
@@ -155,10 +155,6 @@
text_offset * character_width;
text_y_world = normalized_to_world_y( text_y );
- // if (opt & PL_LEGEND_TEXT_LEFT)
- {
- //
- }
// Calculate maximum width of text area (first in mm, then converted
// to x world coordinates) including text_offset area.
for ( i = 0; i < nlegend; i++ )
@@ -196,7 +192,14 @@
plcol0( col0_save );
}
- // adjust for border after background is drawn.
+ if ( opt & PL_LEGEND_TEXT_LEFT )
+ {
+ // text area on left, plot area on right.
+ text_x_world = plot_x_world;
+ plot_x_world += text_width;
+ plot_x_end_world += text_width;
+ }
+ // adjust border after background is drawn.
plot_x_world += total_width_border;
plot_x_end_world += total_width_border;
text_x_world += total_width_border;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|