Why would this happen?

My graph, which had been working just fine, randomly decided to stop filling the width of the x-axis: http://screencast.com/t/vr3AaXIq

Here’s the code I’m using (nothing fancy… I took out all unnecessary formatting and it didn’t help):

fig = plt.figure(facecolor =‘w’, frameon=False)
ax = plt.subplot(111)
lines = ax.plot(r_dates, r_inbox, ‘w-’)

I’m out of ideas… what could be causing this?

Thanks!
Tyler

Sorry, I’m not sure what “filling the width of the x-axis” means or what you are expecting to see. If you want to the x and y limits to be collapsed to your data limits, you need to do

ax.axis(‘tight’)

JDH

···

On Mon, Mar 30, 2009 at 8:22 AM, Tyler B <bosmeny@…985…> wrote:

My graph, which had been working just fine, randomly decided to stop filling the width of the x-axis: http://screencast.com/t/vr3AaXIq

Here’s the code I’m using (nothing fancy… I took out all unnecessary formatting and it didn’t help):

fig = plt.figure(facecolor =‘w’, frameon=False)
ax = plt.subplot(111)
lines = ax.plot(r_dates, r_inbox, ‘w-’)

I’m out of ideas… what could be causing this?

that fixed it… thanks!

···

On Mon, Mar 30, 2009 at 11:02 AM, John Hunter <jdh2358@…287…> wrote:

On Mon, Mar 30, 2009 at 8:22 AM, Tyler B <bosmeny@…287…> wrote:

My graph, which had been working just fine, randomly decided to stop filling the width of the x-axis: http://screencast.com/t/vr3AaXIq

Here’s the code I’m using (nothing fancy… I took out all unnecessary formatting and it didn’t help):

fig = plt.figure(facecolor =‘w’, frameon=False)
ax = plt.subplot(111)
lines = ax.plot(r_dates, r_inbox, ‘w-’)

I’m out of ideas… what could be causing this?

Sorry, I’m not sure what “filling the width of the x-axis” means or what you are expecting to see. If you want to the x and y limits to be collapsed to your data limits, you need to do

ax.axis(‘tight’)

JDH