Description: Fix build failure with plplot-5.10
Author: Matthias Klose <doko@ubuntu.com>
Origin: https://patches.ubuntu.com/g/gnudatalanguage/gnudatalanguage_0.9.4-1ubuntu2.patch

diff -pruN 0.9.4-1/src/plotting_contour.cpp 0.9.4-1ubuntu2/src/plotting_contour.cpp
--- 0.9.4-1/src/plotting_contour.cpp	2013-09-17 20:13:27.000000000 +0000
+++ 0.9.4-1ubuntu2/src/plotting_contour.cpp	2014-03-06 14:44:15.000000000 +0000
@@ -728,7 +728,7 @@ namespace lib
               actStream->pat(1,&ori,&spa);
 
               if (docolors) actStream->Color ( ( *colors )[i%colors->N_Elements ( )], decomposed, (PLINT)colorindex_table_0_color );
-              if (dothick) actStream->wid ( ( *thick )[i%thick->N_Elements ( )]);
+              if (dothick) actStream->width ( ( *thick )[i%thick->N_Elements ( )]);
               if (dostyle) gdlLineStyle(actStream, ( *style )[i%style->N_Elements ( )]);
               actStream->shade( map, xEl, yEl, isLog?doIt:NULL, xStart, xEnd, yStart, yEnd,
               clevel[i], clevel[i+1],
@@ -811,7 +811,7 @@ namespace lib
               actStream->stransform(gdl3dTo2dTransformContour, &Data3d);
             }
             if (docolors) actStream->Color ( ( *colors )[i%colors->N_Elements ( )], decomposed, 2);
-            if (dothick) actStream->wid ( ( *thick )[i%thick->N_Elements ( )]);
+            if (dothick) actStream->width ( ( *thick )[i%thick->N_Elements ( )]);
             if (dostyle) gdlLineStyle(actStream, ( *style )[i%style->N_Elements ( )]);
             if (dolabels) actStream->setcontlabelparam ( LABELOFFSET, (PLFLT) label_size, LABELSPACING,
                                                         (PLINT)(*labels)[i%labels->N_Elements()] );
diff -pruN 0.9.4-1/src/plotting.cpp 0.9.4-1ubuntu2/src/plotting.cpp
--- 0.9.4-1/src/plotting.cpp	2013-09-22 03:09:11.000000000 +0000
+++ 0.9.4-1ubuntu2/src/plotting.cpp	2014-03-06 14:44:15.000000000 +0000
@@ -1891,7 +1891,7 @@ namespace lib
       DFloatGDL* charthickVect=e->GetKWAs<DFloatGDL>( charthickIx );
       charthick=(*charthickVect)[0];
     }
-    a->wid(charthick);
+    a->width(charthick);
   }
 
   void gdlSetAxisCharsize(EnvT *e, GDLGStream *a, string axis)
@@ -1919,7 +1919,7 @@ namespace lib
 
     e->AssureFloatScalarKWIfPresent("THICK", thick);
     if ( thick<=0.0 ) thick=1.0;
-    a->wid(static_cast<PLINT>(floor(thick-0.5)));
+    a->width(static_cast<PLINT>(floor(thick-0.5)));
   }
 
   //LINESTYLE
@@ -2936,7 +2936,7 @@ namespace lib
         a->smaj((PLFLT)OtherAxisSizeInMm, 1.0); //set base ticks to default 0.02 viewport converted to mm.
         a->smin((PLFLT)OtherAxisSizeInMm/2.0,1.0); //idem min (plplt defaults)
         //thick for box and ticks.
-        a->wid(Thick);
+        a->width(Thick);
         //ticks or grid eventually with style and length:
         if (abs(TickLen)<1e-6) Opt=""; else Opt="st"; //remove ticks if ticklen=0
         if (TickLen<0) {Opt+="i"; TickLen=-TickLen;}
@@ -2981,7 +2981,7 @@ namespace lib
         else if (axis=="Y") a->box("", 0.0, 0 , Opt.c_str(), 0.0, 0);
       }
       //reset charsize & thick
-      a->wid(1);
+      a->width(1);
       a->sizeChar(1.0);
     }
 	return 0;
@@ -3124,7 +3124,7 @@ namespace lib
         a->smaj((PLFLT)OtherAxisSizeInMm, 1.0); //set base ticks to default 0.02 viewport converted to mm.
         a->smin((PLFLT)OtherAxisSizeInMm/2.0,1.0); //idem min (plplt defaults)
         //thick for box and ticks.
-        a->wid(Thick);
+        a->width(Thick);
         //ticks or grid eventually with style and length:
         if (abs(TickLen)<1e-6) Opt=""; else Opt="st"; //remove ticks if ticklen=0
         if (TickLen<0) {Opt+="i"; TickLen=-TickLen;}
@@ -3149,7 +3149,7 @@ namespace lib
         else if (axis=="Z") a->box3("","",0,0,"","",0,0, Opt.c_str(), "", TickInterval, Minor);
       }
       //reset charsize & thick
-      a->wid(1);
+      a->width(1);
       a->sizeChar(1.0);
     }
 	return 0;
diff -pruN 0.9.4-1/src/plotting_xyouts.cpp 0.9.4-1ubuntu2/src/plotting_xyouts.cpp
--- 0.9.4-1/src/plotting_xyouts.cpp	2013-09-17 20:00:57.000000000 +0000
+++ 0.9.4-1ubuntu2/src/plotting_xyouts.cpp	2014-03-06 14:44:15.000000000 +0000
@@ -339,7 +339,7 @@ namespace lib
         //plot!
         if (docharsize) actStream->sizeChar(( *size )[i%size->N_Elements ( )]);
         if (docolor) actStream->Color ( ( *color )[i%color->N_Elements ( )], decomposed, 2);
-        if (docharthick) actStream->wid ( ( *charthick )[i%charthick->N_Elements ( )]);
+        if (docharthick) actStream->width ( ( *charthick )[i%charthick->N_Elements ( )]);
         //orientation word is not orientation page depending on axes increment direction [0..1] vs. [1..0]
         PLFLT oriD=(( *orientation )[i%orientation->N_Elements ( )]); //ori DEVICE
         PLFLT oriW=oriD; //ori WORLD
