We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
mpl_plot example no longer works
This example currently shows the background and axes, but nothing within.
![screenshot from 2015-06-02 23-12-15](https://cloud.githubusercontent.com/assets/302469/7952015/e9301e06-097c-11e5-9a8b-acc3f6a40a44.png)


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `vispy/mpl_plot/_mpl_to_vispy.py`
Content:
```
1 # -*- coding: utf-8 -*-
2 # Copyright (c) 2015, Vispy Development Team.
3 # Distributed under the (new) BSD License. See LICENSE.txt for more info.
4 
5 import numpy as np
6 import base64
7 import warnings
8 
9 try:
10     import matplotlib.pyplot as plt
11     from ..ext.mplexporter import Exporter, Renderer
12 except ImportError as exp:
13     Exporter = None
14     Renderer = object
15     has_mplexporter = False
16     why_not = str(exp)
17 else:
18     has_mplexporter = True
19     why_not = None
20 
21 from ..ext.six import BytesIO
22 from ..color import Color
23 from ..io import read_png
24 
25 from ..scene.visuals import Line, Markers, Text, Image
26 from ..scene.widgets import ViewBox
27 from ..visuals.transforms import STTransform
28 from ..scene import SceneCanvas, PanZoomCamera
29 from ..testing import has_matplotlib
30 
31 
32 def _check_coords(coords, valid):
33     if coords not in valid:
34         raise RuntimeError('Coords must be %s, not %s' % (valid, coords))
35 
36 
37 class VispyRenderer(Renderer):
38     def __init__(self, *args, **kwargs):
39         self._line_count = 0
40         self._axs = {}
41         Renderer.__init__(self, *args, **kwargs)
42 
43     def open_figure(self, fig, props):
44         self._dpi = props['dpi']
45         size = (props['figwidth'] * self._dpi,
46                 props['figheight'] * self._dpi)
47         self.canvas = SceneCanvas(size=size, show=True, keys='interactive',
48                                   bgcolor='lightgray')
49 
50         @self.canvas.events.resize.connect
51         def on_resize(event):
52             self._resize(*event.size)
53         self.canvas.events.resize.connect(on_resize)
54 
55     def close_figure(self, fig):
56         # self.canvas.close()
57         pass  # don't do this, it closes when done rendering
58 
59     def open_axes(self, ax, props):
60         bounds = np.array(props['bounds'])
61         bounds[1] = 1. - bounds[1] - bounds[3]
62         xlim = props['xlim']
63         ylim = props['ylim']
64         # for a in props['axes']:
65         #    a['position']  # add borders
66         vb = ViewBox(parent=self.canvas.scene, border_color='black',
67                      bgcolor=props['axesbg'])
68         vb.clip_method = 'fbo'  # necessary for bgcolor
69         vb.camera = PanZoomCamera()
70         vb.camera.set_range(xlim, ylim, margin=0)
71         ax_dict = dict(ax=ax, bounds=bounds, vb=vb, lims=xlim+ylim)
72         self._axs[ax] = ax_dict
73         self._resize(*self.canvas.size)
74 
75     def _resize(self, w, h):
76         for ax in self._axs.values():
77             ax['vb'].pos = (w * ax['bounds'][0], h * ax['bounds'][1])
78             ax['vb'].size = (w * ax['bounds'][2], h * ax['bounds'][3])
79 
80     def close_axes(self, ax):
81         # self._axs.pop(ax)['vb'].parent = []
82         pass  # don't do anything, or all plots get closed (!)
83 
84     def open_legend(self, legend, props):
85         raise NotImplementedError('Legends not supported yet')
86 
87     def close_legend(self, legend):
88         pass
89 
90     def draw_image(self, imdata, extent, coordinates, style, mplobj=None):
91         _check_coords(coordinates, 'data')
92         imdata = read_png(BytesIO(base64.b64decode(imdata.encode('utf-8'))))
93         assert imdata.ndim == 3 and imdata.shape[2] == 4
94         imdata[:, :, 3] = (imdata[:, :, 3] *
95                            (style['alpha'] if style['alpha'] is not None
96                             else 1.)).astype(np.uint8)
97         img = Image(imdata)
98         vb = self._mpl_ax_to(mplobj)
99         img.transform = STTransform.from_mapping([[0, 0], img.size],
100                                                  [[extent[0], extent[3]],
101                                                   [extent[1], extent[2]]])
102         img.parent = vb.scene
103 
104     def draw_text(self, text, position, coordinates, style,
105                   text_type=None, mplobj=None):
106         _check_coords(coordinates, 'data')
107         color = Color(style['color'])
108         color.alpha = style['alpha']
109         color = color.rgba
110         text = Text(text, color=color, pos=position,
111                     font_size=style['fontsize'], rotation=style['rotation'],
112                     anchor_x=style['halign'], anchor_y=style['valign'])
113         text.parent = self._mpl_ax_to(mplobj).scene
114 
115     def draw_markers(self, data, coordinates, style, label, mplobj=None):
116         _check_coords(coordinates, 'data')
117         edge_color = Color(style['edgecolor'])
118         edge_color.alpha = style['alpha']
119         face_color = Color(style['facecolor'])
120         face_color.alpha = style['alpha']
121         markers = Markers()
122         markers.set_data(data, face_color=face_color, edge_color=edge_color,
123                          size=style['markersize'], symbol=style['marker'])
124         markers.parent = self._mpl_ax_to(mplobj).scene
125 
126     def draw_path(self, data, coordinates, pathcodes, style,
127                   offset=None, offset_coordinates="data", mplobj=None):
128         _check_coords(coordinates, 'data')
129         if offset is not None:
130             raise NotImplementedError('cannot handle offset')
131             _check_coords(offset_coordinates, 'data')
132         # TODO --, :, etc.
133         color = Color(style['edgecolor'])
134         color.alpha = style['alpha']
135         line = Line(data, color=color, width=style['edgewidth'],
136                     method='gl')  # XXX Looks bad with agg :(
137         line.parent = self._mpl_ax_to(mplobj).scene
138 
139     def _mpl_ax_to(self, mplobj, output='vb'):
140         """Helper to get the parent axes of a given mplobj"""
141         for ax in self._axs.values():
142             if ax['ax'] is mplobj.axes:
143                 return ax[output]
144         raise RuntimeError('Parent axes could not be found!')
145 
146     def _vispy_done(self):
147         """Things to do once all objects have been collected"""
148         self._resize(*self.canvas.size)
149 
150     # def draw_path_collection(...) TODO add this for efficiency
151 
152 # https://github.com/mpld3/mplexporter/blob/master/
153 #                    mplexporter/renderers/base.py
154 
155 
156 def _mpl_to_vispy(fig):
157     """Convert a given matplotlib figure to vispy
158 
159     This function is experimental and subject to change!
160     Requires matplotlib and mplexporter.
161 
162     Parameters
163     ----------
164     fig : instance of matplotlib Figure
165         The populated figure to display.
166 
167     Returns
168     -------
169     canvas : instance of Canvas
170         The resulting vispy Canvas.
171     """
172     renderer = VispyRenderer()
173     exporter = Exporter(renderer)
174     with warnings.catch_warnings(record=True):  # py3k mpl warning
175         exporter.run(fig)
176     renderer._vispy_done()
177     return renderer.canvas
178 
179 
180 def show(block=False):
181     """Show current figures using vispy
182 
183     Parameters
184     ----------
185     block : bool
186         If True, blocking mode will be used. If False, then non-blocking
187         / interactive mode will be used.
188 
189     Returns
190     -------
191     canvases : list
192         List of the vispy canvases that were created.
193     """
194     if not has_matplotlib():
195         raise ImportError('Requires matplotlib version >= 1.2')
196     cs = [_mpl_to_vispy(plt.figure(ii)) for ii in plt.get_fignums()]
197     if block and len(cs) > 0:
198         cs[0].app.run()
199     return cs
200
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/vispy/mpl_plot/_mpl_to_vispy.py b/vispy/mpl_plot/_mpl_to_vispy.py
--- a/vispy/mpl_plot/_mpl_to_vispy.py
+++ b/vispy/mpl_plot/_mpl_to_vispy.py
@@ -65,7 +65,6 @@
         #    a['position']  # add borders
         vb = ViewBox(parent=self.canvas.scene, border_color='black',
                      bgcolor=props['axesbg'])
-        vb.clip_method = 'fbo'  # necessary for bgcolor
         vb.camera = PanZoomCamera()
         vb.camera.set_range(xlim, ylim, margin=0)
         ax_dict = dict(ax=ax, bounds=bounds, vb=vb, lims=xlim+ylim)

{"golden_diff": "diff --git a/vispy/mpl_plot/_mpl_to_vispy.py b/vispy/mpl_plot/_mpl_to_vispy.py\n--- a/vispy/mpl_plot/_mpl_to_vispy.py\n+++ b/vispy/mpl_plot/_mpl_to_vispy.py\n@@ -65,7 +65,6 @@\n         #    a['position']  # add borders\n         vb = ViewBox(parent=self.canvas.scene, border_color='black',\n                      bgcolor=props['axesbg'])\n-        vb.clip_method = 'fbo'  # necessary for bgcolor\n         vb.camera = PanZoomCamera()\n         vb.camera.set_range(xlim, ylim, margin=0)\n         ax_dict = dict(ax=ax, bounds=bounds, vb=vb, lims=xlim+ylim)\n", "issue": "mpl_plot example no longer works\nThis example currently shows the background and axes, but nothing within.\n![screenshot from 2015-06-02 23-12-15](https://cloud.githubusercontent.com/assets/302469/7952015/e9301e06-097c-11e5-9a8b-acc3f6a40a44.png)\n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2015, Vispy Development Team.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n\nimport numpy as np\nimport base64\nimport warnings\n\ntry:\n    import matplotlib.pyplot as plt\n    from ..ext.mplexporter import Exporter, Renderer\nexcept ImportError as exp:\n    Exporter = None\n    Renderer = object\n    has_mplexporter = False\n    why_not = str(exp)\nelse:\n    has_mplexporter = True\n    why_not = None\n\nfrom ..ext.six import BytesIO\nfrom ..color import Color\nfrom ..io import read_png\n\nfrom ..scene.visuals import Line, Markers, Text, Image\nfrom ..scene.widgets import ViewBox\nfrom ..visuals.transforms import STTransform\nfrom ..scene import SceneCanvas, PanZoomCamera\nfrom ..testing import has_matplotlib\n\n\ndef _check_coords(coords, valid):\n    if coords not in valid:\n        raise RuntimeError('Coords must be %s, not %s' % (valid, coords))\n\n\nclass VispyRenderer(Renderer):\n    def __init__(self, *args, **kwargs):\n        self._line_count = 0\n        self._axs = {}\n        Renderer.__init__(self, *args, **kwargs)\n\n    def open_figure(self, fig, props):\n        self._dpi = props['dpi']\n        size = (props['figwidth'] * self._dpi,\n                props['figheight'] * self._dpi)\n        self.canvas = SceneCanvas(size=size, show=True, keys='interactive',\n                                  bgcolor='lightgray')\n\n        @self.canvas.events.resize.connect\n        def on_resize(event):\n            self._resize(*event.size)\n        self.canvas.events.resize.connect(on_resize)\n\n    def close_figure(self, fig):\n        # self.canvas.close()\n        pass  # don't do this, it closes when done rendering\n\n    def open_axes(self, ax, props):\n        bounds = np.array(props['bounds'])\n        bounds[1] = 1. - bounds[1] - bounds[3]\n        xlim = props['xlim']\n        ylim = props['ylim']\n        # for a in props['axes']:\n        #    a['position']  # add borders\n        vb = ViewBox(parent=self.canvas.scene, border_color='black',\n                     bgcolor=props['axesbg'])\n        vb.clip_method = 'fbo'  # necessary for bgcolor\n        vb.camera = PanZoomCamera()\n        vb.camera.set_range(xlim, ylim, margin=0)\n        ax_dict = dict(ax=ax, bounds=bounds, vb=vb, lims=xlim+ylim)\n        self._axs[ax] = ax_dict\n        self._resize(*self.canvas.size)\n\n    def _resize(self, w, h):\n        for ax in self._axs.values():\n            ax['vb'].pos = (w * ax['bounds'][0], h * ax['bounds'][1])\n            ax['vb'].size = (w * ax['bounds'][2], h * ax['bounds'][3])\n\n    def close_axes(self, ax):\n        # self._axs.pop(ax)['vb'].parent = []\n        pass  # don't do anything, or all plots get closed (!)\n\n    def open_legend(self, legend, props):\n        raise NotImplementedError('Legends not supported yet')\n\n    def close_legend(self, legend):\n        pass\n\n    def draw_image(self, imdata, extent, coordinates, style, mplobj=None):\n        _check_coords(coordinates, 'data')\n        imdata = read_png(BytesIO(base64.b64decode(imdata.encode('utf-8'))))\n        assert imdata.ndim == 3 and imdata.shape[2] == 4\n        imdata[:, :, 3] = (imdata[:, :, 3] *\n                           (style['alpha'] if style['alpha'] is not None\n                            else 1.)).astype(np.uint8)\n        img = Image(imdata)\n        vb = self._mpl_ax_to(mplobj)\n        img.transform = STTransform.from_mapping([[0, 0], img.size],\n                                                 [[extent[0], extent[3]],\n                                                  [extent[1], extent[2]]])\n        img.parent = vb.scene\n\n    def draw_text(self, text, position, coordinates, style,\n                  text_type=None, mplobj=None):\n        _check_coords(coordinates, 'data')\n        color = Color(style['color'])\n        color.alpha = style['alpha']\n        color = color.rgba\n        text = Text(text, color=color, pos=position,\n                    font_size=style['fontsize'], rotation=style['rotation'],\n                    anchor_x=style['halign'], anchor_y=style['valign'])\n        text.parent = self._mpl_ax_to(mplobj).scene\n\n    def draw_markers(self, data, coordinates, style, label, mplobj=None):\n        _check_coords(coordinates, 'data')\n        edge_color = Color(style['edgecolor'])\n        edge_color.alpha = style['alpha']\n        face_color = Color(style['facecolor'])\n        face_color.alpha = style['alpha']\n        markers = Markers()\n        markers.set_data(data, face_color=face_color, edge_color=edge_color,\n                         size=style['markersize'], symbol=style['marker'])\n        markers.parent = self._mpl_ax_to(mplobj).scene\n\n    def draw_path(self, data, coordinates, pathcodes, style,\n                  offset=None, offset_coordinates=\"data\", mplobj=None):\n        _check_coords(coordinates, 'data')\n        if offset is not None:\n            raise NotImplementedError('cannot handle offset')\n            _check_coords(offset_coordinates, 'data')\n        # TODO --, :, etc.\n        color = Color(style['edgecolor'])\n        color.alpha = style['alpha']\n        line = Line(data, color=color, width=style['edgewidth'],\n                    method='gl')  # XXX Looks bad with agg :(\n        line.parent = self._mpl_ax_to(mplobj).scene\n\n    def _mpl_ax_to(self, mplobj, output='vb'):\n        \"\"\"Helper to get the parent axes of a given mplobj\"\"\"\n        for ax in self._axs.values():\n            if ax['ax'] is mplobj.axes:\n                return ax[output]\n        raise RuntimeError('Parent axes could not be found!')\n\n    def _vispy_done(self):\n        \"\"\"Things to do once all objects have been collected\"\"\"\n        self._resize(*self.canvas.size)\n\n    # def draw_path_collection(...) TODO add this for efficiency\n\n# https://github.com/mpld3/mplexporter/blob/master/\n#                    mplexporter/renderers/base.py\n\n\ndef _mpl_to_vispy(fig):\n    \"\"\"Convert a given matplotlib figure to vispy\n\n    This function is experimental and subject to change!\n    Requires matplotlib and mplexporter.\n\n    Parameters\n    ----------\n    fig : instance of matplotlib Figure\n        The populated figure to display.\n\n    Returns\n    -------\n    canvas : instance of Canvas\n        The resulting vispy Canvas.\n    \"\"\"\n    renderer = VispyRenderer()\n    exporter = Exporter(renderer)\n    with warnings.catch_warnings(record=True):  # py3k mpl warning\n        exporter.run(fig)\n    renderer._vispy_done()\n    return renderer.canvas\n\n\ndef show(block=False):\n    \"\"\"Show current figures using vispy\n\n    Parameters\n    ----------\n    block : bool\n        If True, blocking mode will be used. If False, then non-blocking\n        / interactive mode will be used.\n\n    Returns\n    -------\n    canvases : list\n        List of the vispy canvases that were created.\n    \"\"\"\n    if not has_matplotlib():\n        raise ImportError('Requires matplotlib version >= 1.2')\n    cs = [_mpl_to_vispy(plt.figure(ii)) for ii in plt.get_fignums()]\n    if block and len(cs) > 0:\n        cs[0].app.run()\n    return cs\n", "path": "vispy/mpl_plot/_mpl_to_vispy.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2015, Vispy Development Team.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n\nimport numpy as np\nimport base64\nimport warnings\n\ntry:\n    import matplotlib.pyplot as plt\n    from ..ext.mplexporter import Exporter, Renderer\nexcept ImportError as exp:\n    Exporter = None\n    Renderer = object\n    has_mplexporter = False\n    why_not = str(exp)\nelse:\n    has_mplexporter = True\n    why_not = None\n\nfrom ..ext.six import BytesIO\nfrom ..color import Color\nfrom ..io import read_png\n\nfrom ..scene.visuals import Line, Markers, Text, Image\nfrom ..scene.widgets import ViewBox\nfrom ..visuals.transforms import STTransform\nfrom ..scene import SceneCanvas, PanZoomCamera\nfrom ..testing import has_matplotlib\n\n\ndef _check_coords(coords, valid):\n    if coords not in valid:\n        raise RuntimeError('Coords must be %s, not %s' % (valid, coords))\n\n\nclass VispyRenderer(Renderer):\n    def __init__(self, *args, **kwargs):\n        self._line_count = 0\n        self._axs = {}\n        Renderer.__init__(self, *args, **kwargs)\n\n    def open_figure(self, fig, props):\n        self._dpi = props['dpi']\n        size = (props['figwidth'] * self._dpi,\n                props['figheight'] * self._dpi)\n        self.canvas = SceneCanvas(size=size, show=True, keys='interactive',\n                                  bgcolor='lightgray')\n\n        @self.canvas.events.resize.connect\n        def on_resize(event):\n            self._resize(*event.size)\n        self.canvas.events.resize.connect(on_resize)\n\n    def close_figure(self, fig):\n        # self.canvas.close()\n        pass  # don't do this, it closes when done rendering\n\n    def open_axes(self, ax, props):\n        bounds = np.array(props['bounds'])\n        bounds[1] = 1. - bounds[1] - bounds[3]\n        xlim = props['xlim']\n        ylim = props['ylim']\n        # for a in props['axes']:\n        #    a['position']  # add borders\n        vb = ViewBox(parent=self.canvas.scene, border_color='black',\n                     bgcolor=props['axesbg'])\n        vb.camera = PanZoomCamera()\n        vb.camera.set_range(xlim, ylim, margin=0)\n        ax_dict = dict(ax=ax, bounds=bounds, vb=vb, lims=xlim+ylim)\n        self._axs[ax] = ax_dict\n        self._resize(*self.canvas.size)\n\n    def _resize(self, w, h):\n        for ax in self._axs.values():\n            ax['vb'].pos = (w * ax['bounds'][0], h * ax['bounds'][1])\n            ax['vb'].size = (w * ax['bounds'][2], h * ax['bounds'][3])\n\n    def close_axes(self, ax):\n        # self._axs.pop(ax)['vb'].parent = []\n        pass  # don't do anything, or all plots get closed (!)\n\n    def open_legend(self, legend, props):\n        raise NotImplementedError('Legends not supported yet')\n\n    def close_legend(self, legend):\n        pass\n\n    def draw_image(self, imdata, extent, coordinates, style, mplobj=None):\n        _check_coords(coordinates, 'data')\n        imdata = read_png(BytesIO(base64.b64decode(imdata.encode('utf-8'))))\n        assert imdata.ndim == 3 and imdata.shape[2] == 4\n        imdata[:, :, 3] = (imdata[:, :, 3] *\n                           (style['alpha'] if style['alpha'] is not None\n                            else 1.)).astype(np.uint8)\n        img = Image(imdata)\n        vb = self._mpl_ax_to(mplobj)\n        img.transform = STTransform.from_mapping([[0, 0], img.size],\n                                                 [[extent[0], extent[3]],\n                                                  [extent[1], extent[2]]])\n        img.parent = vb.scene\n\n    def draw_text(self, text, position, coordinates, style,\n                  text_type=None, mplobj=None):\n        _check_coords(coordinates, 'data')\n        color = Color(style['color'])\n        color.alpha = style['alpha']\n        color = color.rgba\n        text = Text(text, color=color, pos=position,\n                    font_size=style['fontsize'], rotation=style['rotation'],\n                    anchor_x=style['halign'], anchor_y=style['valign'])\n        text.parent = self._mpl_ax_to(mplobj).scene\n\n    def draw_markers(self, data, coordinates, style, label, mplobj=None):\n        _check_coords(coordinates, 'data')\n        edge_color = Color(style['edgecolor'])\n        edge_color.alpha = style['alpha']\n        face_color = Color(style['facecolor'])\n        face_color.alpha = style['alpha']\n        markers = Markers()\n        markers.set_data(data, face_color=face_color, edge_color=edge_color,\n                         size=style['markersize'], symbol=style['marker'])\n        markers.parent = self._mpl_ax_to(mplobj).scene\n\n    def draw_path(self, data, coordinates, pathcodes, style,\n                  offset=None, offset_coordinates=\"data\", mplobj=None):\n        _check_coords(coordinates, 'data')\n        if offset is not None:\n            raise NotImplementedError('cannot handle offset')\n            _check_coords(offset_coordinates, 'data')\n        # TODO --, :, etc.\n        color = Color(style['edgecolor'])\n        color.alpha = style['alpha']\n        line = Line(data, color=color, width=style['edgewidth'],\n                    method='gl')  # XXX Looks bad with agg :(\n        line.parent = self._mpl_ax_to(mplobj).scene\n\n    def _mpl_ax_to(self, mplobj, output='vb'):\n        \"\"\"Helper to get the parent axes of a given mplobj\"\"\"\n        for ax in self._axs.values():\n            if ax['ax'] is mplobj.axes:\n                return ax[output]\n        raise RuntimeError('Parent axes could not be found!')\n\n    def _vispy_done(self):\n        \"\"\"Things to do once all objects have been collected\"\"\"\n        self._resize(*self.canvas.size)\n\n    # def draw_path_collection(...) TODO add this for efficiency\n\n# https://github.com/mpld3/mplexporter/blob/master/\n#                    mplexporter/renderers/base.py\n\n\ndef _mpl_to_vispy(fig):\n    \"\"\"Convert a given matplotlib figure to vispy\n\n    This function is experimental and subject to change!\n    Requires matplotlib and mplexporter.\n\n    Parameters\n    ----------\n    fig : instance of matplotlib Figure\n        The populated figure to display.\n\n    Returns\n    -------\n    canvas : instance of Canvas\n        The resulting vispy Canvas.\n    \"\"\"\n    renderer = VispyRenderer()\n    exporter = Exporter(renderer)\n    with warnings.catch_warnings(record=True):  # py3k mpl warning\n        exporter.run(fig)\n    renderer._vispy_done()\n    return renderer.canvas\n\n\ndef show(block=False):\n    \"\"\"Show current figures using vispy\n\n    Parameters\n    ----------\n    block : bool\n        If True, blocking mode will be used. If False, then non-blocking\n        / interactive mode will be used.\n\n    Returns\n    -------\n    canvases : list\n        List of the vispy canvases that were created.\n    \"\"\"\n    if not has_matplotlib():\n        raise ImportError('Requires matplotlib version >= 1.2')\n    cs = [_mpl_to_vispy(plt.figure(ii)) for ii in plt.get_fignums()]\n    if block and len(cs) > 0:\n        cs[0].app.run()\n    return cs\n", "path": "vispy/mpl_plot/_mpl_to_vispy.py"}]}