Actually, to correct myself, it appears that the problem is not latex in the legend label, but the mere presence of a legend label at all.
The following still produces an "pop" error p1=plot(x^2, (x, -pi, pi), color='blue',legend_label="f") G=graphics_array(((p1,p1),(p1,p1))) G.show(figsize=[8,8]) Traceback (click to the left of this block for traceback) ... KeyError: 'pop(): dictionary is empty' On Apr 8, 5:54 pm, ObsessiveMathsFreak <[email protected]> wrote: > I'm encountering a problem with graphics_array and latex use in plots. > The following command works fine > > p1=plot(x^2, (x, -pi, pi), color='blue') > G=graphics_array(((p1,p1),(p1,p1))) > G.show(figsize=[8,8]) > > But if latex code is added to the plot legend it produced and error > > p1=plot(x^2, (x, -pi, pi), color='blue',legend_label="$\frac{\partial > f}{\partial x}$") > G=graphics_array(((p1,p1),(p1,p1))) > G.show(figsize=[8,8]) > > Traceback (click to the left of this block for traceback) > ... > KeyError: 'pop(): dictionary is empty' > > What exactly is the problem here and is there a workaround? Is there > any alternative way to give plots individual titles in a > graphics_array? -- 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
