-# This way, we don't have to try to replace all of the calls to
-# plot(); we just replace the one function that did the actual
-# implementation.
+def mjo_list_plot(*args, **kwargs):
+ """
+ Replacement for the default list_plot function.
+
+ - If there's a legend, set the background color to 'white' and
+ give it a drop shadow.
+
+ """
+ default_legend_opts = { 'back_color': 'white',
+ 'shadow': True }
+
+ p = list_plot_impl(*args, **kwargs)
+ p.set_legend_options(**default_legend_opts)
+
+ return p
+
+
+# This way, we don't have to try to replace all of the calls to plot()
+# and list_plot(); we just replace the two function that did the
+# actual implementations.