OK, I've further tweaked the code, so it no longer produces excess label markers. I did this by having it only produce labels for the first frame - it then duplicates them for all the other frames. Unfortunately, I still haven't figured out how to make the frames match in terms of coordinates - I figure that the easiest thing to do would be to simply combine all frames in order to generate the coordinate system, then use that coordinate system for each frame separately.
Anyway, here's the modifications I made to get rid of duplicated label atoms: def _prepare_for_jmol(self, frame, axes, frame_aspect_ratio, aspect_ratio, zoom, labels=True): from sage.plot.plot import EMBEDDED_MODE if EMBEDDED_MODE: s = 6 else: s = 3 box_min, box_max = self._rescale_for_frame_aspect_ratio_and_zoom(s, frame_aspect_ratio, zoom) a_min, a_max = self._box_for_aspect_ratio(aspect_ratio, box_min, box_max) return self._transform_to_bounding_box(box_min, box_max, a_min, a_max, frame=frame, axes=axes, thickness=1, labels = labels) # jmol labels are implemented Here, I added the "labels=True" input, and replaced "labels = True" in the final line with "labels = labels". This allows me to disable labels within the code. Then, all I had to do was modify this line in my modified export_jmol: MF=moreframes[framenum]._prepare_for_jmol(frame, axes, frame_aspect_ratio, aspect_ratio, zoom_other) To say this: MF=moreframes[framenum]._prepare_for_jmol(frame, axes, frame_aspect_ratio, aspect_ratio, zoom_other,labels=False) On Sep 30, 2:04 am, Aielyn <coolrun...@excite.com> wrote: > Here, P is the list of "frames" (so, P[0] may be given from "P[0] = > sphere((1,0,1)) + plot3d(x^2+y^2,(x,-1,1),(y,-1,1))", for instance). > The "moreframes" option lets you put in extra frames - if there are no > extra frames (moreframes=[] is the default), it just performs the same > operations it always has. Unfortunately, my understanding of the code > has reached its limit, at this point, so I cannot identify the > locations of the other changes I need to make. Notably, the code > really requires a way to input the x, y, and z limits of the plot box, > so that the frames can be matched up even when limits of the plots > don't line up, and it also needs fine-tuning to get rid of the excess > fluff in the resulting jmol script file. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org