On Sep 29, 2010, at 2:00 PM, Jeremy Lounds wrote:
> On Wed, Sep 29, 2010 at 1:21 PM, Tony S Yu <tsyu80@...> wrote:
>> On Sep 29, 2010, at 1:06 PM, Jeremy Lounds wrote:
>>> I am attempting to turn the border (frame?) off altogether. Here is
>>> the script, with some sections kept out for brevity:
>> I'm assuming you're talking about turning off the frame around each axes (but maybe you're talking about something else?). The "frameon" attribute in your example code alters the background of the figure canvas, not the borders surrounding each axes.
>> There's probably a shorter way, but I have a small function that I use to turn off the frame or border around an axes.
>> def clear_frame(ax=None):
>> if ax is None:
>> ax = plt.gca()
>> for spine in ax.spines.itervalues():
> Hi Tony,
> Thanks, that works pretty good!
> However... it seems that "drawcoastlines" creates a border if I am not
> "zoomed out" far enough. (i.e., the coastline is out of bounds).
> Do you know how I could turn that off?
> Thanks again!
> ~ Jeremy
I'm glad that worked for you. Unfortunately, I don't use basemap, so I can't really help with this additional complication. I'm sure someone else on the list will be able to help you out, though.