Dave

A year or two ago we likewise looked to plplot to modernise our  
extensive software suite (qsas) partly to remove the last bits of  
fortran-dependent code as it poses continued cross-platform problems.  
We supply qsas to a wide range of international users.

As you will have realised plplot is a direct pgplot descendent and in  
particular has the same plottting paradigms in terms of viewports etc.  
Since pgplot's main attraction is it's relatively smal api (and a real  
programmer's interface) I suspect it would be relatively easy to write  
the translation library you seek. Perhaps the way plot streams are  
handled would need some thought but many functions have nearly  
identical syntax.

However I suspect once you start down this road you'll start to see  
things that plplot does better and things that pgplot can't do that  
you'll want to take advantage of. Additionally you'll find several  
people on this list who are very responsive to queries.

We quickly moved to rewrite our code in plplot and indeed have written  
a whole new family of qt drivers that have proved to be an extremely  
effective solution to windows/mac/Linux/solaris support we provide.  
For me that re-write was easy, but that's because I had project  
moneynto pay a small and very talented pair of staff members to do it!

It may well be that there are lots of people who would like a  
translation library of the kind you describe. The first step would  
obviously be to take, for example, the cpgplot header file and map  
pgplot->plplot functions. That may convince you one way or the other  
about the relative pain of writing such a library vs editing your  
source to call the plplot routines natively. You could probably  
migrate your suite in segments linking against both pg and pl for  
separate unrelated plots. In the process you'll find things pgplot  
can't do that you will be tempted to use.

Good luck

Steve

-----------
Steve Schwartz
Space and Atmospheric Physics
Imperial College London
Tel 020 7594 7660

On 2 Jan 2010, at 20:43, "David MacMahon" <dav...@astro.berkeley.edu>  
wrote:

> I use a suite of (mostly FORTRAN, but some C) software that uses
> PGPLOT extensively.  I have recently discovered PLplot and would like
> to "modernize" the suite of software to make use of PLplot instead of
> PGPLOT.  Instead of making wholesale changes the plethora of source
> files, I was hoping to find a PGPLOT emulation library that would
> appear to clients as libpgplot (or libcpgplot) yet really be a
> translation layer that ultimately calls into PLplot libraries.
>
> Has anyone ever created such a thing?  Are there any show-stopper
> issues that would make that impossible or impractical?
>
> Thanks,
> Dave
>
>
> --- 
> --- 
> --- 
> ---------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast  
> and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> Plplot-general mailing list
> Plplot-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-general

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to