Unquote the borderaxespad dict value like this : legend_opts = { 'back_color': 'salmon' , 'shadow': False, 'fancybox': 'True', 'fontsize': '6','borderaxespad' : 1, 'loc': '1'};
otherwise (checked on cell worksheet in the SAGE cloud) Error in lines 5-5Traceback (most recent call last): File "/projects/6429970e-5a78-4aee-a6b1-af1e80542481/.sagemathcloud/sage_server.py", line 881, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> File "/projects/6429970e-5a78-4aee-a6b1-af1e80542481/.sagemathcloud/sage_salvus.py", line 2429, in show s = show0(objs, combine_all=True) File "/projects/6429970e-5a78-4aee-a6b1-af1e80542481/.sagemathcloud/sage_salvus.py", line 2414, in show0 b = show0(a) File "/projects/6429970e-5a78-4aee-a6b1-af1e80542481/.sagemathcloud/sage_salvus.py", line 2395, in show0 show_2d_plot_using_matplotlib(obj, svg=svg, **kwds) File "/projects/6429970e-5a78-4aee-a6b1-af1e80542481/.sagemathcloud/sage_salvus.py", line 2238, in show_2d_plot_using_matplotlib obj.save(t, **kwds) File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/sage/misc/decorators.py", line 471, in wrapper return func(*args, **kwds) File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/sage/plot/graphics.py", line 3201, in save figure.savefig(filename, **opts) File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/figure.py", line 1476, in savefig self.canvas.print_figure(*args, **kwargs) File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/backend_bases.py", line 2158, in print_figure **kwargs) File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/backends/backend_svg.py", line 1193, in print_svg return self._print_svg(filename, svgwriter, fh_to_close, **kwargs) File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/backends/backend_svg.py", line 1221, in _print_svg self.figure.draw(renderer) File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/artist.py", line 59, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/figure.py", line 1085, in draw func(*args) File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/artist.py", line 59, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/axes/_base.py", line 2110, in draw a.draw(renderer) File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/artist.py", line 59, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/legend.py", line 450, in draw bbox = self._legend_box.get_window_extent(renderer) File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/offsetbox.py", line 257, in get_window_extent px, py = self.get_offset(w, h, xd, yd, renderer) File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/offsetbox.py", line 210, in get_offset return self._offset(width, height, xdescent, ydescent, renderer) File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/legend.py", line 413, in _findoffset_best ox, oy = self._find_best_position(width, height, renderer) File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/legend.py", line 908, in _find_best_position for x in range(1, len(self.codes))] File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/legend.py", line 887, in _get_anchored_bbox container = parentbbox.padded(-(self.borderaxespad) * fontsize)TypeError: bad operand type for unary -: 'str I guess you can "open an issue" :-) : usually it doesnt' matter if dict value is unquotted Dominique -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.