|
From: Yilong W. <wan...@gm...> - 2014-12-10 23:07:03
|
Hi all, I am using matplotlib-1.4.2, but when I try to plot a colorbar and define its position using argument 'anchor', it raises an error: TypeError: __init__() got an unexpected keyword argument 'anchor' Does anyone have any clue for this? Thank you very much! The test script is as follows: import numpy as np import matplotlib.pyplot as plt a=np.random.randn(100,150) fig,ax=plt.subplots() im=ax.imshow(a) fig.colorbar(im,anchor=(0.,0.5)) plt.show() -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Missing-anchor-for-colorbar-tp44594.html Sent from the matplotlib - users mailing list archive at Nabble.com. |