From: <ai...@us...> - 2011-03-22 18:18:06
|
Revision: 11672 http://plplot.svn.sourceforge.net/plplot/?rev=11672&view=rev Author: airwin Date: 2011-03-22 18:17:59 +0000 (Tue, 22 Mar 2011) Log Message: ----------- Tweak order of function definitions. Modified Paths: -------------- trunk/bindings/d/plplot.d Modified: trunk/bindings/d/plplot.d =================================================================== --- trunk/bindings/d/plplot.d 2011-03-22 07:43:34 UTC (rev 11671) +++ trunk/bindings/d/plplot.d 2011-03-22 18:17:59 UTC (rev 11672) @@ -310,25 +310,7 @@ c_pllab( toStringz( xlabel ), toStringz( ylabel ), toStringz( tlabel ) ); } -/* Draws line segments connecting a series of points. */ -void plline( PLFLT[] x, PLFLT[] y ) -{ - PLINT n = x.length; - assert( n == y.length, "plline(): Arrays must be of same length!" ); - c_plline( n, x.ptr, y.ptr ); -} - -/* Draws a line in 3 space. */ -void plline3( PLFLT[] x, PLFLT[] y, PLFLT[] z ) -{ - PLINT n = x.length; - assert( n == y.length, "plline3(): Arrays must be of same length!" ); - assert( n == z.length, "plline3(): Arrays must be of same length!" ); - c_plline3( n, x.ptr, y.ptr, z.ptr ); -} - // Routine for drawing discrete line, symbol, or cmap0 legends - void pllegend( PLFLT *p_legend_width, PLFLT *p_legend_height, PLINT position, PLINT opt, PLFLT x, PLFLT y, PLFLT plot_width, PLINT bg_color, PLINT bb_color, PLINT bb_style, @@ -382,7 +364,23 @@ symbol_numbers.ptr, symbolsz.ptr ); } +/* Draws line segments connecting a series of points. */ +void plline( PLFLT[] x, PLFLT[] y ) +{ + PLINT n = x.length; + assert( n == y.length, "plline(): Arrays must be of same length!" ); + c_plline( n, x.ptr, y.ptr ); +} +/* Draws a line in 3 space. */ +void plline3( PLFLT[] x, PLFLT[] y, PLFLT[] z ) +{ + PLINT n = x.length; + assert( n == y.length, "plline3(): Arrays must be of same length!" ); + assert( n == z.length, "plline3(): Arrays must be of same length!" ); + c_plline3( n, x.ptr, y.ptr, z.ptr ); +} + /* plot continental outline in world coordinates */ void plmap( mapform_func mapform, string type, PLFLT minlong, PLFLT maxlong, PLFLT minlat, PLFLT maxlat ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |