octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to proceed with package documentation screenshots


From: Michael Godfrey
Subject: Re: How to proceed with package documentation screenshots
Date: Wed, 20 May 2015 16:30:26 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0



On 05/20/2015 07:05 AM, Andreas Weber wrote:
On 20. Mai 2015 07:34:18 MESZ, Oliver Heimlich <address@hidden> wrote:
I have recently started to implement plotting for the interval package. 
The on screen results looks very good. The generate_html package adds 
demos together with their output and figures in the function reference, 
which basically is a good idea, because a picture is worth a thousand 
words. Also I plan to use m-file scripts for the creation of figures for 
the package manual.

However, I am unsatisfied with the quality of the images that are 
generated and would like to do something about it. Could you please give 
me advice in which direction to go?

* The postscript export of GL graphics (especially in 3D) has some 
severe issues (bugs #44181, #45137), which makes the exported vector 
graphics useless and creates problems during conversion to rasterized 
formats.

* The postscript export of Gnuplot looks very promising, because it 
contains correct polygons which can easily (depending on their number) 
be edited. But there are also problems to solve with unwanted/missing 
lines, and—the biggest issue—the z order of some polygons is wrong, 
which also appears on screen.

* The png images are created by conversion of a postscript(?) 
intermediate format. Why are rasterized images not directly rendered 
with the GL backend.

* The kludge: I could use screenshots of the figure windows. At least 
they show a correct figure (with low resolution).

I have no GL programming knowledge so far, and the gnuplot backend seems 
to be deprecated. Is there anything useful I could do about above problems?


You can use img=__osmesa_print__(gcf), imwrite (img....) to directly render the OpenGl scene without going through gl2ps.
--
sent from my Zuse Z22. Please excuse my brevity.
Helpful to note that this only works with:    h = figure ("visible", "off");


reply via email to

[Prev in Thread] Current Thread [Next in Thread]