Hi folks,
I encountered the following behavior on attempting to save a plot. I'm
guessing its a matplotlib issue rather than a SAGE one. I deleted the
matplotlibrc file as directed and was able to accomplish the task of
saving the plot.
Perhaps this exception can be caught and the file could be deleted by SAGE
(rather than directing the user to do so.)(?)
Regards,
Ifti
===
sage: L = list_plot(lst)
sage: L.save('a.png')
Bad key "lines.markeredgecolor" on line 48 in
/home/burhanud/.sage//matplotlibrc.
Please delete /home/burhanud/.sage/matplotlibrc and restart SAGE.
---------------------------------------------------------------------------
<type 'exceptions.SystemExit'> Traceback (most recent call last)
/home/burhanud/swl-new/<ipython console> in <module>()
/home/was/sage/local/lib/python2.5/site-packages/sage/plot/plot.py in
save(self, filename, xmin, xmax, ymin, ymax, figsize, figure, sub, savenow,
dpi, axes, axes_label, fontsize, frame, verify)
677 do_verify = verify
678
--> 679 from matplotlib.figure import Figure
680 if filename is None:
681 i = 0
/home/was/sage/local/lib/python2.5/site-packages/matplotlib/__init__.py in
<module>()
1019
1020 # this is the instance used by the matplotlib classes
-> 1021 rcParams = rc_params()
1022
1023 rcParamsDefault = dict(rcParams.items()) # a copy
/home/was/sage/local/lib/python2.5/site-packages/matplotlib/__init__.py in
rc_params(fail_on_error)
1007 key, (val, line, cnt) = rc_temp.popitem()
1008
-> 1009 cval = validate_key(key, val, line, cnt, fname, fail_on_error)
1010 if cval is not None: defaultParams[key][0] = cval
1011 else: continue
/home/was/sage/local/lib/python2.5/site-packages/matplotlib/__init__.py in
validate_key(key, val, line, cnt, fname, fail_on_error)
945 Please delete %s/.sage/matplotlibrc and restart SAGE.
946 """ % (key, cnt, fname, os.environ['HOME'])
--> 947 sys.exit(1)
948 return None
949
<type 'exceptions.SystemExit'>: 1
Type %exit or %quit to exit IPython (%Exit or %Quit do so unconditionally).
sage:
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---