On Fri, Jan 23, 2009 at 10:39 AM, Pablo Romero <span dir="ltr"><<a href="mailto:romero619@hotmail.com">romero619@hotmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
How can plot/map options be passed or adjusted in the galab object?<br>
I cant seem to override the drawing of axes or the color bar, nor can I change the plot dimensions when using basemap through galab.<br>
<br>
Does anyone have much experience using pygrads/galab, and customizing the projection plot area?<br>
</blockquote><div><br><br>At this point galab provides syntatic sugar around Matplotlib and the Basemap toolkit so that someone familiar with GrADS could get some basic plots done with minimum effort. To effectively fine tune your plots, though, you need to understand how Matrplotlib/Basemap work; look at the wiki for references on Matplotlib documentation. Here are a few pointers:<br>
<ul><li>The method ga.basemap() provides a front end to the Basemap() class, where the current GrADS dimension environment is used to specify the domain for the Map. The Basemap object is saved as an attribute of the grads object: <b>ga.map</b></li>
<li>Likewise, when using ga.imshow(), ga.contour() the axis and maps for the plot are derived from the dimension enviroment. Indeed, these are wrappers around Basemap.imshow() and Basemap.contour(). Many of the options you give to ga.imshow() are passed down to Basemap.imshow(), so you need to look at the documentation for this; for the axis labeling you can specify dlon/dlat for the spacing in degrees between lat/lon labels.</li>
</ul>
If you tell me exactly what you are trying to accomplish I may be able to give you more specific pointers or even write a recipe for it.<br><br> Arlindo<br><br></div></div>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>