[Matplotlib-users] auto-updating of axis limits

2014-01-22 Thread Dan McCloy
Is there an easy way to get pyplot to treat calls to text() or annotate() as if they were "data", so that it automatically expanded the axis limits to include the text within the plot boundaries (i.e., not in the margin)? My current workaround involves creating the text, calling draw(), getting th

[Matplotlib-users] Basemap Plotting on Floating(?) Axes

2014-01-22 Thread geo_leeman
Hello all, Several of us have been stumped on how to create a map with basemap that doesn't have a rectangular bounding box. I've attached an example of what we are trying to create (done with GMT and not ours). Browsing the docs I thought it may be possible with a floating axis as in the galler

Re: [Matplotlib-users] axes.text() plotting text outside of axes bounds

2014-01-22 Thread Michael Droettboom
On 01/22/2014 09:43 AM, Benjamin Root wrote: On Wed, Jan 22, 2014 at 9:21 AM, Daryl Herzmann > wrote: Hello, I'm wondering why stuff plotted with ax.text() does not get "clipped" by the axes bounds on the plot. Here's a simple example, run with 1.3

Re: [Matplotlib-users] axes.text() plotting text outside of axes bounds

2014-01-22 Thread Benjamin Root
On Wed, Jan 22, 2014 at 9:21 AM, Daryl Herzmann wrote: > Hello, > > I'm wondering why stuff plotted with ax.text() does not get "clipped" by > the axes bounds on the plot. Here's a simple example, run with 1.3.1: > > import matplotlib.pyplot as plt > > (fig, ax) = plt.subplots(1,1) > > for i in

[Matplotlib-users] axes.text() plotting text outside of axes bounds

2014-01-22 Thread Daryl Herzmann
Hello, I'm wondering why stuff plotted with ax.text() does not get "clipped" by the axes bounds on the plot. Here's a simple example, run with 1.3.1: import matplotlib.pyplot as plt (fig, ax) = plt.subplots(1,1) for i in range(5): for j in range(5): ax.text(i,j, "%sx%s" % (i,j), ha='cent