I just installed plplot on my Fedora 16 box, and I am trying to run it from C++.  I can successfully create pdf files, bit not gif files.  Perhaps a code example for gif would help?  Below is the code I I use for the pdf file.

Thanks for your help.
Mike

   pls_ = new plstream();
   pls_->sfnam("out.pdf");
   pls_->sdev("pdfcairo");
   pls_->init();
   PLFLT    x;
   PLFLT    y;
   for (int ii = 0; ii < 30; ++ii)
   {
      x = ii;
      y = sqrtf(x);
   }
   pls_->col0(1);
   pls_->env(0.0,30.0,0.0,6.0,0,0);
   pls_->col0(4);
   pls_->poin(30,x,y,9);
   pls_->col0(3);
   pls_->line(30,x,y);
   delete pls_;