Commit 154be142 authored by dickelbeck's avatar dickelbeck

plot fix, beautification

parent 2da432b2
...@@ -63,8 +63,6 @@ void SetCurrentLineWidthPS( int width ) ...@@ -63,8 +63,6 @@ void SetCurrentLineWidthPS( int width )
/* Set the Current line width (in 1/1000 inch) for the next plot /* Set the Current line width (in 1/1000 inch) for the next plot
*/ */
{ {
D(printf( "PlotOutputFile = %p\n", PlotOutputFile );)
int pen_width; int pen_width;
if( width > 0 ) if( width > 0 )
...@@ -90,8 +88,6 @@ void SetColorMapPS( int color ) ...@@ -90,8 +88,6 @@ void SetColorMapPS( int color )
* color = color index in ColorRefs[] * color = color index in ColorRefs[]
*/ */
{ {
D(printf( "PlotOutputFile = %p\n", PlotOutputFile );)
char Line[1024]; char Line[1024];
sprintf( Line, "%.3f %.3f %.3f setrgbcolor\n", sprintf( Line, "%.3f %.3f %.3f setrgbcolor\n",
...@@ -110,8 +106,6 @@ void PlotFilledSegmentPS( wxPoint start, wxPoint end, int width ) ...@@ -110,8 +106,6 @@ void PlotFilledSegmentPS( wxPoint start, wxPoint end, int width )
/* Plot 1 segment like a track segment /* Plot 1 segment like a track segment
*/ */
{ {
D(printf( "PlotOutputFile = %p\n", PlotOutputFile );)
UserToDeviceCoordinate( start ); UserToDeviceCoordinate( start );
UserToDeviceCoordinate( end ); UserToDeviceCoordinate( end );
...@@ -124,8 +118,6 @@ void PlotFilledSegmentPS( wxPoint start, wxPoint end, int width ) ...@@ -124,8 +118,6 @@ void PlotFilledSegmentPS( wxPoint start, wxPoint end, int width )
void PlotCircle_PS( wxPoint pos, int diametre, int width ) void PlotCircle_PS( wxPoint pos, int diametre, int width )
/******************************************************/ /******************************************************/
{ {
D(printf( "PlotOutputFile = %p\n", PlotOutputFile );)
int rayon; int rayon;
char Line[256]; char Line[256];
...@@ -149,8 +141,6 @@ void PlotArcPS( wxPoint centre, int StAngle, int EndAngle, int rayon, int width ...@@ -149,8 +141,6 @@ void PlotArcPS( wxPoint centre, int StAngle, int EndAngle, int rayon, int width
* StAngle, EndAngle = start and end arc in 0.1 degree * StAngle, EndAngle = start and end arc in 0.1 degree
*/ */
{ {
D(printf( "PlotOutputFile = %p\n", PlotOutputFile );)
char Line[256]; char Line[256];
if( rayon <= 0 ) if( rayon <= 0 )
...@@ -185,8 +175,6 @@ void PlotPolyPS( int nb_segm, int* coord, int fill, int width ) ...@@ -185,8 +175,6 @@ void PlotPolyPS( int nb_segm, int* coord, int fill, int width )
* @param width = line width * @param width = line width
*/ */
{ {
D(printf( "PlotOutputFile = %p\n", PlotOutputFile );)
int ii; int ii;
wxPoint pos; wxPoint pos;
...@@ -224,8 +212,6 @@ void LineTo_PS( wxPoint pos, int plume ) ...@@ -224,8 +212,6 @@ void LineTo_PS( wxPoint pos, int plume )
/* Routine to draw to a new position /* Routine to draw to a new position
*/ */
{ {
D(printf( "PlotOutputFile = %p\n", PlotOutputFile );)
if( plume == 'Z' ) if( plume == 'Z' )
return; return;
...@@ -289,9 +275,6 @@ void PrintHeaderPS( FILE* file, const wxString& Creator, ...@@ -289,9 +275,6 @@ void PrintHeaderPS( FILE* file, const wxString& Creator,
PlotOutputFile = file; PlotOutputFile = file;
D(printf( "PrintHeaderPS PlotOutputFile = %p\n", PlotOutputFile );)
fputs( "%!PS-Adobe-3.0\n", PlotOutputFile ); // Print header fputs( "%!PS-Adobe-3.0\n", PlotOutputFile ); // Print header
sprintf( Line, "%%%%Creator: %s\n", CONV_TO_UTF8( Creator ) ); sprintf( Line, "%%%%Creator: %s\n", CONV_TO_UTF8( Creator ) );
...@@ -398,8 +381,6 @@ void PrintHeaderPS( FILE* file, const wxString& Creator, ...@@ -398,8 +381,6 @@ void PrintHeaderPS( FILE* file, const wxString& Creator,
bool CloseFilePS( FILE* plot_file ) bool CloseFilePS( FILE* plot_file )
/******************************************/ /******************************************/
{ {
D(printf( "CloseFilePS\n" );)
fputs( "showpage\n", plot_file ); fputs( "showpage\n", plot_file );
fputs( "grestore\n", plot_file ); fputs( "grestore\n", plot_file );
fputs( "%%EOF\n", plot_file ); fputs( "%%EOF\n", plot_file );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment