Skip to content

Commit f082163

Browse files
committed
DOC: fix examples
1 parent 2505c81 commit f082163

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/source/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Thus, if you are only using this restricted set of the pyplot API then you can c
158158

159159
to ::
160160

161-
import mg
161+
import mpl_gui as mg
162162
plt = mg.FigureRegistry()
163163

164164
and have a (mostly) drop-in replacement.
@@ -187,9 +187,9 @@ track of the created figures and shows them on exit ::
187187
import mpl_gui as mg
188188

189189
with mg.FigureContext() as fc:
190-
fc.subplot_mosaic('AA\nBC')
191-
fc.figure()
192-
fc.subplots(2, 2)
190+
fc.subplot_mosaic('AA\nBC')
191+
fc.figure()
192+
fc.subplots(2, 2)
193193

194194

195195
This will create 3 figures and block on ``__exit__``. The blocking

0 commit comments

Comments
 (0)