Thanks you for your answer.
plplot 5.9.10, wxwidgets 3.0.0 visual studio 2012 C++
with  pls->width( 2.0 ); nothing changes.
You can download source file and svg, ps and xfig  here : 
perso.univ-lemans.fr/~berger/aqzersPLPLOT
My source code is :
wxPLplotstream* pls=plotwindow->GetStream();
int iMin=0,iMax=16383;

const size_t np=65536;
if (x[0]==NULL)
     for (int i=0;i<3;i++)
         {
         x[i]=new PLFLT[np];
         y[i]=new PLFLT[np];
         yFiltre[i]=new PLFLT[np];
         }
PLFLT xmin=iMin, xmax=iMax;
PLFLT ymin=1e30, ymax=-1e30;
....

pls->adv( 0 );
pls->scol0 (    3, 0,0,255);
pls->scol0 (    4, 0,0,128);
pls->scol0 (    5, 0,255,0);
pls->scol0 (    6, 0,128,0);
pls->scol0 (    7, 255,0,0);
pls->scol0 (    8, 128,0,0);

if(bgcolor)
     {
     pls->scol0( 0, 255, 255, 255 );
     pls->scol0( 15, 0, 0, 0 );
     }
else
     {
     pls->scol0( 15, 255, 255, 255 );
     pls->scol0( 0, 0, 0, 0 );
     }
pls->col0( 1 );
pls->env( xmin, xmax, ymin*.99, ymax*1.01, 0, 0 );
pls->col0( 2 );
pls->lab( "x", "y", "Histogram");
for (int j=0;j<nbPlan;j++)
     {
         pls->col0( 3+2*j);
         pls->width( 2.0 );
         pls->line( nbGraines[j], x[j], y[j] );
         pls->col0( 4+2*j);
         pls->width( 3.0 );
         pls->line( nbGraines[j], x[j], yFiltre[j] );
     }
pls->RenewPlot();
Refresh();
plotwindow->SavePlot(wxString("svg"),wxString("tt.svg"));
plotwindow->SavePlot(wxString("xfig"),wxString("tt.xfig"));
plotwindow->SavePlot(wxString("ps"),wxString("tt.ps"));
//plotwindow->SavePlot(wxString("wxpng"),wxString("tt.png")); BUG


------------------------------------------------------------------------------
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to