I have a particular CIF (see values below) and calling a.plot() leads
to an IndexError.
For many other values, I did not encounter any problems.
regards,
Clemens Heuberger
----------------------------------------------------------------------
| Sage Version 4.6.1, Release Date: 2011-01-11 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage:
a=CIF(RIF(1.0760324885501113,1.0760324885504933),RIF(-1.9888595303771060e-
18, 1.9888595303771060e-18))
sage: a.plot()
---------------------------------------------------------------------------
IndexError Traceback (most recent call
last)
/home/cheub/<ipython console> in <module>()
/local/data/cheub/sage/sage-4.6.1-linux-64bit-ubuntu_8.04.4_lts-x86_64-
Linux/loc
al/lib/python2.6/site-packages/IPython/Prompts.pyc in __call__(self,
arg)
549
550 # and now call a possibly user-defined print
mechanism
--> 551 manipulated_val = self.display(arg)
552
553 # user display hooks can change the variable to be
stored in
/local/data/cheub/sage/sage-4.6.1-linux-64bit-ubuntu_8.04.4_lts-x86_64-
Linux/loc
al/lib/python2.6/site-packages/IPython/Prompts.pyc in _display(self,
arg)
575 return IPython.generics.result_display(arg)
576 except TryNext:
--> 577 return self.shell.hooks.result_display(arg)
578
579 # Assign the default display method:
/local/data/cheub/sage/sage-4.6.1-linux-64bit-ubuntu_8.04.4_lts-x86_64-
Linux/loc
al/lib/python2.6/site-packages/IPython/hooks.pyc in __call__(self,
*args, **kw)
139 #print "prio",prio,"cmd",cmd #dbg
140 try:
--> 141 ret = cmd(*args, **kw)
142 return ret
143 except ipapi.TryNext, exc:
/local/data/cheub/sage/sage-4.6.1-linux-64bit-ubuntu_8.04.4_lts-x86_64-
Linux/loc
al/lib/python2.6/site-packages/sage/misc/displayhook.pyc in
result_display(ip_se
lf, obj)
148 # IPython's default result_display() uses the
IPython.genutils.Term.
cout stream.
149 # See also local/lib/python2.6/site-packages/IPython/
hooks.py.
--> 150 print_obj(IPython.genutils.Term.cout, obj)
151
152 def displayhook(obj):
/local/data/cheub/sage/sage-4.6.1-linux-64bit-ubuntu_8.04.4_lts-x86_64-
Linux/loc
al/lib/python2.6/site-packages/sage/misc/displayhook.pyc in
print_obj(out_stream
, obj)
140 if _check_tall_list_and_print(out_stream, obj):
141 return
--> 142 print >>out_stream, `obj`
143
144 def result_display(ip_self, obj):
/local/data/cheub/sage/sage-4.6.1-linux-64bit-ubuntu_8.04.4_lts-x86_64-
Linux/loc
al/lib/python2.6/site-packages/sage/structure/sage_object.so in
sage.structure.s
age_object.SageObject.__repr__ (sage/structure/sage_object.c:1356)()
/local/data/cheub/sage/sage-4.6.1-linux-64bit-ubuntu_8.04.4_lts-x86_64-
Linux/loc
al/lib/python2.6/site-packages/sage/plot/plot.pyc in _repr_(self)
1078 """
1079 if SHOW_DEFAULT:
-> 1080 self.show()
1081 return ''
1082 else:
/local/data/cheub/sage/sage-4.6.1-linux-64bit-ubuntu_8.04.4_lts-x86_64-
Linux/loc
al/lib/python2.6/site-packages/sage/misc/decorators.pyc in
wrapper(*args, **kwds
)
379 kwds[self.name + "options"] = suboptions
380
--> 381 return func(*args, **kwds)
382
383 return wrapper
/local/data/cheub/sage/sage-4.6.1-linux-64bit-ubuntu_8.04.4_lts-x86_64-
Linux/loc
al/lib/python2.6/site-packages/sage/plot/plot.pyc in show(self,
**kwds)
1737 if options['filename'] is None:
1738 options['filename'] =
sage.misc.misc.tmp_filename() + '.
png'
-> 1739 self.save(**options)
1740 os.system('%s %s 2>/dev/null 1>/dev/null &' % \
1741 (sage.misc.viewer.browser(),
options['filename']))
/local/data/cheub/sage/sage-4.6.1-linux-64bit-ubuntu_8.04.4_lts-x86_64-
Linux/loc
al/lib/python2.6/site-packages/sage/plot/plot.pyc in save(self,
filename, dpi, s
avenow, *args, **kwds)
2395 options=dict()
2396
options['transparent']=kwds.pop('transparent',False)
-> 2397 figure=self.matplotlib(*args, **kwds)
2398 # You can output in PNG, PS, EPS, PDF, or SVG
format, depend
ing on the file extension.
2399 # matplotlib looks at the file extension to see
what the ren
derer should be.
/local/data/cheub/sage/sage-4.6.1-linux-64bit-ubuntu_8.04.4_lts-x86_64-
Linux/loc
al/lib/python2.6/site-packages/sage/plot/plot.pyc in matplotlib(self,
filename,
xmin, xmax, ymin, ymax, figsize, figure, sub, axes, axes_labels,
fontsize, frame
, verify, aspect_ratio, gridlines, gridlinesstyle, vgridlinesstyle,
hgridlinesst
yle, show_legend, legend_options, axes_pad, ticks_integer,
tick_formatter, ticks
)
2220 ticklabels=subplot.xaxis.get_majorticklabels() + \
2221 subplot.xaxis.get_minorticklabels() + \
-> 2222 subplot.yaxis.get_majorticklabels() + \
2223 subplot.yaxis.get_minorticklabels()
2224 for ticklabel in ticklabels:
/local/data/cheub/sage/sage-4.6.1-linux-64bit-ubuntu_8.04.4_lts-x86_64-
Linux/loc
al/lib/python2.6/site-packages/matplotlib/axis.pyc in
get_minorticklabels(self)
1076 def get_minorticklabels(self):
1077 'Return a list of Text instances for the minor
ticklabels'
-> 1078 ticks = self.get_minor_ticks()
1079 labels1 = [tick.label1 for tick in ticks if
tick.label1On]
1080 labels2 = [tick.label2 for tick in ticks if
tick.label2On]
/local/data/cheub/sage/sage-4.6.1-linux-64bit-ubuntu_8.04.4_lts-x86_64-
Linux/loc
al/lib/python2.6/site-packages/matplotlib/axis.pyc in
get_minor_ticks(self,
numt icks)
1190 'get the minor tick instances; grow as necessary'
1191 if numticks is None:
-> 1192 numticks = len(self.get_minor_locator()())
1193
1194 if len(self.minorTicks) < numticks:
/local/data/cheub/sage/sage-4.6.1-linux-64bit-ubuntu_8.04.4_lts-x86_64-
Linux/loc
al/lib/python2.6/site-packages/matplotlib/ticker.pyc in __call__(self)
1418
1419 # don't create minor ticks on top of existing major
ticks
-> 1420 diff = 0.5 * abs(locs[1] - locs[0])
1421 locs = [l for l in locs if (np.abs(l - majorlocs) >
diff).all()]
1422
IndexError: index out of bounds
--
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
URL: http://www.sagemath.org