UserWarning: Attempting to set identical bottom==top

I get this error and would like to know what to do to eliminate it and
also what it means:

C:\Python25\lib\site-packages\matplotlib\axes.py:2571:
UserWarning: Attempting to set identical bottom==top results
in singular transformations; automatically expanding.
bottom=0, top=0 + 'bottom=%s, top=%s') % (bottom, top))

This is with Matplotlib 1.0.0.

Thank you,
Che

I have seen this happen when the plot is set to use the limits of the data to guide the axes limits, but the data being displayed is either vertical or horizontal. It isn’t a huge issue as the code is automatically padding the axes to make take the plot out of “flat world”.

Ben Root

···

On Sun, May 1, 2011 at 4:35 PM, C M <cmpython@…287…> wrote:

I get this error and would like to know what to do to eliminate it and

also what it means:

C:\Python25\lib\site-packages\matplotlib\axes.py:2571:

UserWarning: Attempting to set identical bottom==top results

in singular transformations; automatically expanding.

bottom=0, top=0 + ‘bottom=%s, top=%s’) % (bottom, top))

This is with Matplotlib 1.0.0.

Thank you,

Che