<HTML>
<HEAD>
<TITLE>Re: [GRASS-dev] d.out.file now talks to the PostScript driver</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Lorenzo,<BR>
<BR>
Probably a longer answer than you need, but it might be helpful to address the larger issue of the appearance of GRASS screen output.<BR>
<BR>
I originally wrote d.out.file, the successor to d.out.png (my first GRASS script written to solve the complete lack of screen-&gt;to graphic file output in version 5). It will only work with the xmon screen displays because it uses d.save to capture all xdriver commands used to create the screen, and then plays them back with the output set to PNG (or PS with Hamish&#8217;s update). The display in the TclTk and wxPython GUI is generated by sending all d.* commands directly to the PNG driver. So d.save never captures these display commands. For this reason, d.out.file will not work with the GUI. <BR>
<BR>
The GUI does save the screen to various formats, including EPS.<BR>
<BR>
The high resolution in d.out.file is a bit of a problem. It achieves this by setting the size of the output graphic to some multiple of its current width and height in pixels before rendering to the PNG driver. This can put more pixels into the output graphic file. However, it also causes problems with vectors (lines get increasingly thin with increased resolution), scales (the scales get shorter vertically and type gets smaller), and possible some other features. <BR>
<BR>
Explore mode in the TclTk GUI and normal mode in the wxgrass GUI no longer tie the number of pixels in the display to the resolution of the raster. So you get a nicer output image from the screen without the distortions introduced by the method used in d.out.file. Text is rendering a lot nicer too because native GUI text can be used for manually placed text objects and there is much better rendering of TrueType fonts in any text output from the PNG driver now. Vectors can still look pixelated, however, until we have a different method of rendering them.<BR>
<BR>
There is ongoing discussion of making a better interface to ps.map to produce nicer output too.<BR>
<BR>
Michael<BR>
<BR>
<BR>
On 5/15/07 8:23 AM, &quot;Lorenzo Moretti&quot; &lt;lorenzo.moretti@bologna.enea.it&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Hi Hamish<BR>
<BR>
d.out.file is a very very useful script because it prints at high resolution...<BR>
but I have a problem: now I can only work via terminal. Example:<BR>
</SPAN><FONT SIZE="7"><SPAN STYLE='font-size:36.0px'><BR>
</SPAN></FONT><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'> &nbsp;g.region rast=slope -p<BR>
&nbsp;&nbsp;d.mon gism<BR>
&nbsp;&nbsp;d.rast slope<BR>
&nbsp;&nbsp;d.vect streams type=area,line<BR>
&nbsp;&nbsp;d.barscale at=0,94.5<BR>
&nbsp;&nbsp;d.out.file spearfish_pic format=png size=800,600<BR>
&nbsp;&nbsp;d.out.file spearfish_pic format=ps -r paper=a4<BR>
</SPAN></FONT><SPAN STYLE='font-size:12.0px'><BR>
I have my ps file or png.<BR>
I have not use x0 terminal. I use new GIS Manager (in GRASS OS X - no X11) and if I enter:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>% d.mon -L<BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
I have:<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'><BR>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>HTMLMAP &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create HTML Image Map &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not running<BR>
PS &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT><SPAN STYLE='font-size:12.0px'> &nbsp;&nbsp;Create PS Map &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not running<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>ps1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT><SPAN STYLE='font-size:12.0px'> &nbsp;&nbsp;Create PS Map &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not running<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>ps2 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT><SPAN STYLE='font-size:12.0px'> &nbsp;&nbsp;Create PS Map &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not running<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>ps3 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT><SPAN STYLE='font-size:12.0px'> &nbsp;&nbsp;Create PS Map &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not running<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>ps4 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT><SPAN STYLE='font-size:12.0px'> &nbsp;&nbsp;Create PS Map &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not running<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>ps5 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT><SPAN STYLE='font-size:12.0px'> &nbsp;&nbsp;Create PS Map &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not running<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>ps6 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT><SPAN STYLE='font-size:12.0px'> &nbsp;&nbsp;Create PS Map &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not running<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>ps7 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT><SPAN STYLE='font-size:12.0px'> &nbsp;&nbsp;Create PS Map &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not running<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>PNG &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT><SPAN STYLE='font-size:12.0px'> &nbsp;&nbsp;Create PNG Map &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not running<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>png1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create PNG Map &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT><SPAN STYLE='font-size:12.0px'> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not running<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>png2 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create PNG Map &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT><SPAN STYLE='font-size:12.0px'> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not running<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>png3 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create PNG Map &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT><SPAN STYLE='font-size:12.0px'> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not running<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>png4 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create PNG Map &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT><SPAN STYLE='font-size:12.0px'> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not running<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>png5 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create PNG Map &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT><SPAN STYLE='font-size:12.0px'> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not running<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>png6 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create PNG Map &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT><SPAN STYLE='font-size:12.0px'> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not running<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>png7 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create PNG Map &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT><SPAN STYLE='font-size:12.0px'> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not running<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>gism &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create PNG Map for gis.m &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not running<BR>
</SPAN></FONT><SPAN STYLE='font-size:12.0px'><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>My GIS Manager works very well but it has not a selected monitor.<BR>
<BR>
d.out.file has a GUI but how it can view all layers inside GIS Manager?<BR>
<BR>
<BR>
<BR>
Thanks in advance<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
<BR>
__________________________________________<BR>
Michael Barton, Professor of Anthropology<BR>
School of Human Evolution &amp; Social Change &nbsp;&nbsp;&nbsp;<BR>
Center for Social Dynamics &amp; Complexity<BR>
Arizona State University<BR>
<BR>
phone: 480-965-6213<BR>
fax: 480-965-7671<BR>
www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a> <BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>