Skip to content

mplot3d reverse axis behavior #570

Closed
jseabold opened this Issue Nov 8, 2011 · 4 comments

4 participants

@jseabold
jseabold commented Nov 8, 2011

Consider this code snippet. By reversing the y axis, the ticks disappear and the padding on the z-axis is changed.

import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D

fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')

ax.set_xlim3d(0,1)
ax.set_ylim3d(0,1)
ax.set_ylim3d(1,0)
#ax.set_zlim3d(0,1)

plt.show()
@uwe-fechner

Same problem here (Matplotlib 1.2, python 2.7 on Ubuntu 12.04, 32 bit).

@WeatherGod
Matplotlib Developers member

Confirmed with the maintenance branch with even my latest round of patches for mplot3d. I think I know why this is happening, though. Thanks for repinging me on this bug report. I completely missed this one.

@WeatherGod WeatherGod was assigned Jan 11, 2013
@WeatherGod WeatherGod added a commit to WeatherGod/matplotlib that referenced this issue Jan 11, 2013
@WeatherGod WeatherGod Fix #570 - Reversing a 3d axis should now work properly. 1f0c801
@WeatherGod
Matplotlib Developers member

PR #1653 should fix the problem.

@dmcdougall
Matplotlib Developers member

I tried out #1653 and can confirm it fixes the issue. Thanks @WeatherGod.

@dmcdougall dmcdougall closed this Jan 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.