That change did the trick. Thanks. -Bruce
On May 6, 8:22 pm, Rado <rki...@gmail.com> wrote: > I overlooked something simple about how animate is supposed to work. > Replace the "bar = ... " to this: > > bar = animate([line([((R-r)*cos(i), (R-r)*sin(i)), > (g(i), f(i)) > ], > thickness = thicknessOfBar, > rgbcolor=colorOfBar) > for i in xsrange(0, rotations*2*pi + step, > step)], > xmin=-sizeOfGraph, ymin=-sizeOfGraph, > xmax= sizeOfGraph, ymax= sizeOfGraph, > figsize=[figuresize,figuresize]) > > Works for me (note that the Eye of GNOME doesn't show the proper gif > animation (at least in Ubuntu)). > > Rado > > On May 6, 9:54 pm, Rado <rki...@gmail.com> wrote: > > > Well, i coundn't get to the bottom of it, but to narrow it down try: > > > bar.show() > > > which comes back with zero_division. I think this makes the whole > > thing brake. The traceback shows something about making the tick- > > marks. Anybody who knows more about the way graphing works in sage can > > help. > > > To see a picture (although without the bar), remove "bar" from the > > last command in the script. > > > Rado > > > On May 5, 2:32 pm, Bruce Cohen <math.co...@gmail.com> wrote: > > > > I am new to Sage (and think it is great). This experiment (using Sage > > > 3.4.1) did not work: > > > > ------------------ > > > I downloaded this:http://deanlm.com/python/index_files/hypo.txt > > > and saved it as hypo.sage > > > > and at a shell prompt ran this: > > > > 19% sage hypo.sage > > > Traceback (most recent call last): > > > File "hypo.py", line 283, in <module> > > > ((fixedCircle+rotatingCircle+pointAtPen+bar+centerPoints > > > +animated_curve)*(final_image)).show(delay=delayBetweenImages) > > > File "/Applications/sage/local/lib/python2.5/site-packages/sage/plot/ > > > animate.py", line 187, in __add__ > > > kwds = self._combine_kwds(self.__kwds, other.__kwds) > > > File "/Applications/sage/local/lib/python2.5/site-packages/sage/plot/ > > > animate.py", line 119, in _combine_kwds > > > new_kwds[name] = getattr(__builtin__, name[1:])(*values) > > > TypeError: 'sage.rings.integer.Integer' object is not iterable > > > > --------------------- > > > > Thanks for any help. > > > > -Bruce --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---