J C Gonzalez wrote:

> 
> Hi, Andrew, and Alan.
> 
> Yes, exactly that, a greyish looking.  I have used several viewers, in
> different systems (Linux, Windows, Mac OS X), and it is not a viewer
> artifact, it is in the figure.
> 
> I must say that I'm stick to use a rather old plplot/cairo releases. 
> I'm using PLPlot 5.9.0, and I cannot change that (nor the cairo
> version).  I believe it is something already solved in newer versions.

Could you list the drivers that you have access to? Part of the problem 
for us in terms of giving advice is that that version is 2-3 years old 
now and at least I have pretty much forgotten what is and is not 
possible with it.

> The fact is that it is something that appears when plotting either a
> shade or an image.  And I got the same result when using the driver psc
> (postscript color).  So it could not be a cairo-related issue.
> 
> BTW, with the cairo family of devices, in the example 16, if I decrease
> enough the number of rows and columns, the grey grid disappear.
> 
> I thought about solutions to my problem, but I do not know if they are
> possible.  The function plimage in fact plots as many filled polygons
> (rectangles) as there are in the data grid provided as one argument. 
> Would it be possible to plot a single "pixel", with a given color, in
> the figure?  So, I could try to plot pixel by pixel (I'm not facing time
> issues by the time being).
> 
> Another solution is to have a way to do exactly that, but using PLPlot
> functions/internals: is it possible to dump as a whole an image in
> memory (a matrix of NxM cells with the color for each pixel) in to a
> figure?
> 
> And, finally, another (potential) way: could I create an image with a
> given device, get the image somehow, and open a new device and continue
> plotting?

If you have the extcairo device you could draw the image yourself w/ 
cairo, then use pass the cairo context to PLplot to draw the plot. In 
general though this is not possible as different devices have very 
different internal representations of the plot.

> Last, but not least, and related to the previous question: are there any
> examples of the mem device?

If you download a more recent version there is a (Python) example in the 
examples/python folder called test_plsmem.py.in. I think you can also 
find it by doing a Google search for the name. Unfortunately I don't 
think the Python example will work with 5.9.0, but it will hopefully 
give you some ideas of how to start.

-Hazen

------------------------------------------------------------------------------
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

Reply via email to