Hello, 
Everytime I try to run this script from the doc page of the
matplotlib site : 

import matplotlib.pyplot as plt 
def
make_ticklabels_invisible(fig): 
 for i, ax in enumerate(fig.axes): 

ax.text(0.5, 0.5, "ax%d" % (i+1), va="center", ha="center") 
 for tl in
ax.get_xticklabels() + ax.get_yticklabels(): 
 tl.set_visible(False)


plt.figure(0) 
ax1 = plt.subplot2grid((3,3), (0,0), colspan=3) 
ax2 =
plt.subplot2grid((3,3), (1,0), colspan=2) 
ax3 = plt.subplot2grid((3,3),
(1, 2), rowspan=2) 
ax4 = plt.subplot2grid((3,3), (2, 0)) 
ax5 =
plt.subplot2grid((3,3), (2, 1)) 

plt.suptitle("subplot2grid")

make_ticklabels_invisible(plt.gcf()) 
plt.show() 

I get this error:

AttributeError: 'module' object has no attribute 'subplot2grid' 

Are some
modules not installed? or is there another problem, I'm a newby in
matplotlib, it might be something very obvious... 

Running Matplotlib
version 0.99.3 (python 2.6.6) on Ubuntu 10.10 

thanks, 
Hans R
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to