Skip to content

Commit 4bf9d5c

Browse files
committed
FIX: Minor fixes
1 parent 64aa849 commit 4bf9d5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nibabel/viewers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class OrthoSlicer3D(object):
3030
-------
3131
>>> import numpy as np
3232
>>> a = np.sin(np.linspace(0,np.pi,20))
33-
>>> b = np.sin(np.linspace(0,np.pi*5,20))asa
33+
>>> b = np.sin(np.linspace(0,np.pi*5,20))
3434
>>> data = np.outer(a,b)[..., np.newaxis]*a
3535
>>> OrthoSlicer3D(data).show() # doctest: +SKIP
3636
"""
@@ -189,6 +189,7 @@ def __init__(self, data, affine=None, axes=None, cmap='gray',
189189
self._position[3] = 1. # convenience for affine multn
190190
self._changing = False # keep track of status to avoid loops
191191
self._links = [] # other viewers this one is linked to
192+
plt.draw()
192193
for fig in self._figs:
193194
fig.canvas.draw()
194195
self._set_volume_index(0, update_slices=False)

0 commit comments

Comments
 (0)