<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I revised the histogram_mpldemo.py script according to many of Glynn's suggests. I also added the option of creating the output file in png, pdf, ps, eps, and svg. As before, I've posted it at:<div><br></div><div><a href="http://www.public.asu.edu/~cmbarton/files/grass_scripts/histogram_mpldemo.py">histogram_mpldemo.py</a><div><br></div><div>along with an example output:</div><div><br></div><div><a href="http://www.public.asu.edu/~cmbarton/files/grass_scripts/testhist.pdf">testhist.pdf</a></div><div><br></div><div>I also posted another script that may be a better example of the potential of having this kind of library accessible for Python scripting in GRASS--whether we provide it or expect users to install it. This one does cross-plots of 2 maps as a density plot and a more normal scatter plot. The size of the points on the scatter plot are proportional to the number of cells with matching values in both maps--sort of a bubble plot. In addition to file output, the plots optionally can be viewed in a simple Tkinter window. Tkinter comes with Python, so this doesn't require a separate TclTk installation. It can can also be displayed in a wxPython, QT, or GTK window, but I haven't worked out how to do that yet. The script is here:</div><div><br></div><div><a href="http://www.public.asu.edu/~cmbarton/files/grass_scripts/crossplot_mpldemo.py">crossplot_mpldemo.py</a></div><div><br></div><div>and the example density and scatter plots are here:</div><div><br></div><div><a href="http://www.public.asu.edu/~cmbarton/files/grass_scripts/testdensity.png">testdensity.png</a></div><div><a href="http://www.public.asu.edu/~cmbarton/files/grass_scripts/testscatter.png">testscatter.png</a></div><div><br></div><div>An ulterior motive here is to encourage people to begin to think about scripting in Python instead of just bash. Both of these scripts are very basic and could be improved. But they were easy to create. Also, the new grass.py library that Glynn recently created has a lot of nice convenience functions (only a couple used here) to make Python scripting for GRASS easier.&nbsp;</div><div><div><br></div><div>Enjoy</div><div>Michael<br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><div><div>______________________________</div><div>C. Michael Barton,&nbsp;Professor of Anthropology</div><div>Director of Graduate Studies</div><div>School of Human Evolution &amp; Social Change</div><div>Center for Social Dynamics &amp; Complexity</div><div>Arizona State University</div><div>Tempe, AZ&nbsp;&nbsp;85287-2402</div><div>USA</div><div><br></div><div>voice: 480-965-6262; fax: 480-965-7671</div><div>www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a></div></div></div></div></div></div></span></div></span></div></span> </div><br></div></div></div></body></html>