how do i get rid of the whitespace around this plot?

This is the result from a call to pyplot.pcolor() – why do the axes automatically expand beyond the range of the data? And how can I set them back? I am not seeing an obvious keyword argument in the pcolor docs to do this…

Thanks in advance

  • Craig

blah.png

Finetuning with axis(xmin=, xmax= , ymin= , ymax=) should yield a better looking result.

You might use figure(frameon=False) for a transparent background.

···

On Fri, Aug 28, 2009 at 1:59 PM, DEMOLISHOR! the Demolishor <destroooooy@…287…> wrote:

This is the result from a call to pyplot.pcolor() – why do the axes automatically expand beyond the range of the data? And how can I set them back? I am not seeing an obvious keyword argument in the pcolor docs to do this…

Thanks in advance

  • Craig

Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day

trial. Simplify your report design, integration and deployment - and focus on

what you do best, core application coding. Discover what’s new with

Crystal Reports now. http://p.sf.net/sfu/bobj-july


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Gökhan

could you post a complete example that replicates the problem?

JDH

···

On Fri, Aug 28, 2009 at 1:59 PM, DEMOLISHOR! the Demolishor<destroooooy@...287...> wrote:

This is the result from a call to pyplot.pcolor() -- why do the axes
automatically expand beyond the range of the data? And how can I set them
back? I am not seeing an obvious keyword argument in the pcolor docs to do
this...

here’s an example

a call to pyplot.axis() after I call pcolor straightens it out though. thx gokhan, and sorry to all for not picking that up in the docs myself.

and finally, `demolishor’ is a great and hilarious song by a band called the acacia strain, in case there are parties interested in music that might make your officemates think you’re satanic. i am delighted this thread generated such an enthusiastic response in this regard.

ta ta

2d.py (569 Bytes)

···

On Fri, Aug 28, 2009 at 3:32 PM, John Hunter <jdh2358@…287…> wrote:

On Fri, Aug 28, 2009 at 1:59 PM, DEMOLISHOR! the > > Demolishor<destroooooy@…1896…> wrote:

This is the result from a call to pyplot.pcolor() – why do the axes

automatically expand beyond the range of the data? And how can I set them

back? I am not seeing an obvious keyword argument in the pcolor docs to do

this…

could you post a complete example that replicates the problem?

JDH

Here you go.