|
From: John H. <jdh...@ac...> - 2004-08-11 18:54:24
|
>>>>> "Jeffery" == Jeffery D Collins <jef...@ve...> writes:
Jeffery> I am using the latest snapshot from the CVS repository
Jeffery> and am getting a segmentation fault when using ylabel
Jeffery> with certain strings. Below is a code snippet that
Jeffery> crashes on the last occurance of ylabel. Does this crash
Jeffery> for anyone else?
Jeffery> from matplotlib.matlab import ylabel ylabel('bia [cm]')
Jeffery> raw_input('continue') ylabel('Bia [cm]') # seg fault
Jeffery> raw_input('continue')
Your script is line wrapped in your post, so it is difficult to know
exactly what you mean. The following does not segfault for me
from matplotlib.matlab import ylabel
ylabel('bia [cm]')
raw_input('continue')
ylabel('Bia [cm]') # seg fault
raw_input('continue')
It would be helpful if you narrowed the scope of your problem by using
the Agg backend. My guess is you'll encounter the same problem.
Assuming so, there are two extra things you could do to give more
information
Edit site-packages/matplotlib/backends/backend_agg.py in the function
_get_agg_font, print the font filename you are using. Ie, on or
around line 231 in matplotlib-0.61, add the print line as below
if font is None:
fname = fontManager.findfont(prop)
print 'agg loading', fname
try: font = FT2Font(str(fname))
Additionally, you may want to set at the top of that file
DEBUG = 1
and edit setup.py and set
VERBOSE = True
and recompile matplotlib cleanly. To do this, go to the matplotlib
src dir and 'rm -rf build' before reinstalling matplotlib.
Rerun your tests - be prepared for a deluge of messages.
This should provide some additional helpful information.
You may want to followup to the devel list instead of the users list
Thanks,
John Hunter
Jeffery> More information: OS: Linux (RH9) backend: TkAgg
Jeffery> Python 2.3.2 (#1, Oct 22 2003, 19:27:14) [GCC 3.2.2
Jeffery> 20030222 (Red Hat Linux 3.2.2-5)] on linux2 Type "help",
Jeffery> "copyright", "credits" or "license" for more information.
Jeffery> --
Jeffery> -----------------------------------------------------------------
Jeffery> Jeffery D. Collins, Ph.D. Vexcel Corp. Sr. Engineer
Jeffery> 1690 38th St. Voice: (303)583-0228 Boulder, CO 80301
Jeffery> Fax: (303)583-0246 vexcel.com
Jeffery> -------------------------------------------------------
Jeffery> SF.Net email is sponsored by Shop4tech.com-Lowest price
Jeffery> on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk
Jeffery> Sonic DVD+R for only $33 Save 50% off Retail on Ink &
Jeffery> Toner - Free Shipping and Free Gift.
Jeffery> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
Jeffery> _______________________________________________
Jeffery> Matplotlib-users mailing list
Jeffery> Mat...@li...
Jeffery> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|