On Feb 29, 2008, at 11:49 AM, Doug Hunt wrote: > Hi all: I just got all the dependencies working and installed > plplot 5.9.0 with the cairo drivers. Looks good! > > I'm curious about the 'memcairo' driver--I compiled it, but it > fails under > perl/PDL (my native language). The comments said it was > turned off by default because it does not work well. > > I'm the originator of the 'mem' driver, and it would be nice to have > in-memory plotting with the cairo fonts. Does anyone know what > the issues are with the memcairo driver? I could perhaps take a > crack at > getting it working, but I'd like some background first.
Hi Doug, In a thread called "Cairo Driver Family" around June 3, 2007 I made the cryptic note that: "4. The memcairo driver is untested. It appears that a side effect of a call to plsmem is to force PLplot to use the "mem" driver. An attempt to overide this behavior by calling plsdev("memcairo") after the plsmem call but before plinit was unsuccessful." As I recall the problem was that you could not use the memcairo driver because when you called plsmem() to allocate the memory buffer for it to save the plot in, as a side effect, you were switched over to using the "mem" driver. I'm pretty sure the cairo part of memcairo should work. I never tried to solve this problem since I thought it would involve some messing about with PLplot internals and I was dealing with other issue with the cairo drivers at the time. If you are interested in sorting this out then I'd be glad to help. The code for the memcairo driver is at the end of the drivers/cairo.c. best, -Hazen ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel