On 2011-02-22 09:19+0100 J C Gonzalez wrote: > Hi. > > I'm trying to use PLPlot to generate some world maps. I *must* generate a > JPEG file, but the jpeg device for the PLPlot version > installed in my system produces ugly results. I thought of using device > pngcairo (since png device looks also not good enough), and > then convert the resulting png file to jpeg. The problem I'm facing is that > I get a sort of fine grid in the image that I plot. > > It would be easier to understand if I say that I get the same effect using > device pngcairo with example 16 (shading). The shade > plot generated in this example shows a grid plotted over the shading surface, > that is not shown in jpeg/png/win/ps devices. It > seems to be an artifact related to the cairo family of devices. > > Does anybody know how to remove this grid?
Hi J C: I cannot verify this issue on the Linux platforms accessible to me. For example, http://plplot.sourceforge.net/examples.php?demo=16 results look fine to me. Those -dev pngcairo results were generated on a recent Ubuntu platform, and I am viewing them from a Debian squeeze platform. On my platform, locally generated -dev pngcairo results from example 16 also look good. If the examples at the above website also look fine to you, that eliminates your png viewer as the source of the trouble. If your locally generated -dev pngcairo files for that same example look bad, then my initial guess is your pango/cairo set of libraries are not working correctly for some reason on your platform. What exactly is your platform, and what versions of pango, and cairo are you using? Your cmake output has that latter information. Here, I get the following results: software@raven> egrep "(pango|cairo)" cmake.out -- checking for module 'pango' -- found pango, version 1.28.3 -- checking for module 'pangoft2' -- found pangoft2, version 1.28.3 -- checking for module 'pangocairo' -- found pangocairo, version 1.28.3 -- Not a Windows platform so setting wincairo driver to OFF. -- checking for modules 'lasi;pango;pangoft2' -- found pango, version 1.28.3 -- found pangoft2, version 1.28.3 -- Determine compile and link flags for ext-cairo-test -- checking for module 'cairo' -- found cairo, version 1.8.10 DRIVERS_LIST: cairo;qt;mem;null;ps;psttf;svg;tk;tkwin;wxwidgets;xfig;xwin DEVICES_LIST: memcairo;extcairo;pdfcairo;pngcairo;pscairo;svgcairo;xcairo;epsqt;pdfqt;qtwidget;bmpqt;jpgqt;pngqt;ppmqt;tiffqt;extqt;memqt;svgqt;mem;null;ps;psttf;svg;tk;tkwin;wxwidgets;xfig;xwin Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel