- plot_opts = { 'tick_formatter': 'latex' }
-
- legend_opts = { 'back_color': 'white',
- 'shadow': True }
-
- # Merge the user's plot options with mine. The ones given as
- # kwargs should override the defaults!
- plot_opts.update(kwargs)
- kwargs = plot_opts
- p = sage_plot(*args, **kwargs)
- p.set_legend_options(**legend_opts)
+ default_legend_opts = { 'back_color': 'white',
+ 'shadow': True }
+
+ # Create an empty plot using the default options.
+ p = Graphics()
+ p.set_legend_options(**default_legend_opts)
+
+ # After trac #12936, this should propagate those options.
+ p += plot_impl(*args, **kwargs)