<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">While waiting for an answer from the developer of one of the wxPython mixins on why it doesn't work, I spent a little time looking at MatPlotLib again.&nbsp;<div><br></div><div>Sometime back, I'd mentioned this as a potentially useful library to include with a Python-enabled GRASS because it can create a rich array of high-quality graphs and charts (and even maps). One of the issues raised was that it needs to be used within a GUI environment meaning that the GUI can do things that the command line can't. Not long ago, while talking with a Python-using colleague, I mentioned MatPlotLib and he said, 'of course it can be used from the command line to create a graphic file; I do it all the time'. So I looked into to it today while recovering from a wisdom tooth extraction. Indeed, it can be put into a script to be run from the command line and output a normal graphic file, like a *.png. Here is a link on how to do it.<div><br></div><div>&lt;<a href="http://www.dalkescientific.com/writings/diary/archive/2005/04/23/matplotlib_without_gui.html">http://www.dalkescientific.com/writings/diary/archive/2005/04/23/matplotlib_without_gui.html</a>>.&nbsp;</div><div><br></div><div>This cookbook entry is 3 years old. Along with the Agg backend mentioned in the cookbook (for png), new backends for MatPlotLib include Cairo (for pdf, png, ps, svg, and svgz), dedicated pdf and ps, and dedicated svg--in addition to GUI backends for wx, TclTk, and Qt.</div><div><br></div><div>We could use it to replace dedicated GRASS code for creating graphs like d.histogram and build it into scripts that now call gnuplot. It's worth checking out at &lt;<a href="http://matplotlib.sourceforge.net/">http://matplotlib.sourceforge.net/</a>>. It could be used within the GUI of course, but also within scripts to output to graphic files.</div><div><br></div><div>Michael</div><div><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; 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: Helvetica; font-size: 12px; 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><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">____________________</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">C. Michael Barton, Professor of Anthropology</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Director of Graduate Studies</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">School of Human Evolution &amp; Social Change</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Center for Social Dynamics &amp; Complexity</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Arizona State University</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Phone: 480-965-6262</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Fax: 480-965-7671</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">www: &lt;<a href="http://www.public.asu.edu/~cmbarton">www.public.asu.edu/~cmbarton</a>></font></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br></div></div></body></html>