def _load_bitmap(filename):
 basedir = os.path.join(rcParams[u'datapath'], u'images')
 bmpFilename = os.path.normpath(os.path.join(basedir, filename))
 if (not os.path.exists(bmpFilename)):
  raise IOError((u'Could not find bitmap file "%s"; dying' % bmpFilename))
 bmp = wx.Bitmap(bmpFilename)
 return bmp

def _load_bitmap ( filename ) : basedir = os . path . join ( rcParams [ u'datapath' ] , u'images' ) bmpFilename = os . path . normpath ( os . path . join ( basedir , filename ) ) if ( not os . path . exists ( bmpFilename ) ) : raise IOError ( ( u'Could not find bitmap file "%s"; dying' % bmpFilename ) ) bmp = wx . Bitmap ( bmpFilename ) return bmp
load a bitmap file from the backends/images subdirectory in which the matplotlib library is installed .