<div dir="ltr"><br><br><div class="gmail_quote">On Mon, Sep 15, 2008 at 9:51 PM, P.Romero <span dir="ltr"><<a href="mailto:romero619@hotmail.com">romero619@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello again,<br>
Ok, so Im trying to test using pygrads to produce the Mercator plots.</blockquote><div><br></div><div>Do you really need Mercator plots for GoogleEarth?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I need help figuring out how to disable:<br>
1) color bar<br>
2) gridlines<br>
3) axes, ticks, etc.<br>
4) set the bounds of the Mercator projection(right now, it keeps plotting<br>
the full earth)</blockquote><div><br></div><div>Read the basemap documentation and see if there is any restriction on the mercator projection (I don't known from the top of my head). I haven't used this projection.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
5) control the plot size (its defaults to producing a very tall & thin<br>
graph)<br>
6) draw the hi-res continental outlines, and fill them with a specific color<br></blockquote><div><br></div><div>Look at method implain() in galab.py which disables most of this. Look at the examples that comes with the basemap distribution to learn how to fill a hi res map with a specific color. (These examples will also give you a much better sense of what can be accomplished with this very powerful package). For maximum flexibility you may want to extract data from grads and call the native matplotlib/basemap functions.</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
6) extra/optional: is it possible to print to png with a transparent color<br>
set? Similar to printim in GrADS?<br></blockquote><div><br></div><div>Actually, you can control transparency on a color by color basis (rather than having a single transparent color as in printim). You just create a colormap where each color can now have an extra channel (r,g,b,a) - "a" is the alpha channel and its value controls the transparency level. Take a look at gacm.py to see how transparent color tables are created.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Can you please give me some help/tips on how to control these settings in<br>
pyGrads?</blockquote><div><br></div><div>Much this functionality comes from Matplotlib and the basemap toolkit. Start by doing some reading on these packages.</div><div><br></div><div> Arlindo</div><div><br></div></div>
<br clear="all"><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>
</div>