def get_example_data(fname):
 datadir = os.path.join(get_data_path(), 'example')
 fullpath = os.path.join(datadir, fname)
 if (not os.path.exists(fullpath)):
  raise IOError(('could not find matplotlib example file "%s" in data directory "%s"' % (fname, datadir)))
 return file(fullpath, 'rb')

def get_example_data ( fname ) : datadir = os . path . join ( get_data_path ( ) , 'example' ) fullpath = os . path . join ( datadir , fname ) if ( not os . path . exists ( fullpath ) ) : raise IOError ( ( 'could not find matplotlib example file "%s" in data directory "%s"' % ( fname , datadir ) ) ) return file ( fullpath , 'rb' )
return a filehandle to one of the example files in mpl-data/example *fname* the name of one of the files in mpl-data/example .