SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: LUK S. <shu...@po...> - 2003年12月07日 08:49:16
Hello,
I just tried out the wxpython backend from the CVS and it seems to work 
as advertised, except a small glitch.
I had matplotlib installed in another location, not under the default 
python main tree and use the environmental variable AFMPATH to point to 
the afm fonts files. The backend_wx(.py) relies on 
distutils.sysconfig.PREFIX to find the GUI bitmap files. Adding the 
following 2 lines
 if os.environ.has_key('AFMPATH'):
 basedir = os.environ['AFMPATH']
after the line
basedir = os.path.join(distutils.sysconfig.PREFIX, 'share', 'matplotlib')
in the function _load_bitmap(filename) will enable it to locate the 
bitmap files which are installed together with the afm font files. (As 
AFMPATH points to more than font resources, a more appropriate name such 
as MATPLOTLIBRESOURCE may be warranted, though changing it will break 
old installations. I'm happy to let it stay as it is.)
Regards,
ST
From: John H. <jdh...@ac...> - 2003年12月07日 15:17:10
>>>>> "LUK" == LUK ShunTim <shu...@po...> writes:
 LUK> I had matplotlib installed in another location, not under the
 LUK> default python main tree and use the environmental variable
 LUK> AFMPATH to point to the afm fonts files. The backend_wx(.py)
 LUK> relies on distutils.sysconfig.PREFIX to find the GUI bitmap
 LUK> files. Adding the following 2 lines
A number of people have reported problems with matplotlib in
non-default install locations. I'll try and get these cleared up
before the next release.
Thanks! 
John Hunter
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /