Skip to content

Commit

Permalink
Use bqplot by default
Browse files Browse the repository at this point in the history
  • Loading branch information
nmearl committed May 29, 2019
1 parent 96f074f commit e4f34ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions jdaviz/vizcomponents/viewer/layout_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ def jdaviz_layout_factory(viewer):

if isinstance(viewer, (BqplotImageView, ImageJupyterViewer)):
layout_cls = JDAVizImageLayout
# viewer.figure.layout.width = '400px'
# viewer.figure.layout.height = '400px'
viewer.figure.layout.width = '400px'
viewer.figure.layout.height = '400px'
else:
layout_cls = JDAVizStandardLayout
# viewer.figure.layout.width = '600px'
# viewer.figure.layout.height = '400px'
viewer.figure.layout.width = '600px'
viewer.figure.layout.height = '400px'

return layout_cls(viewer)
2 changes: 1 addition & 1 deletion jdaviz/vizcomponents/viewer/viewer1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Viewer1D(Viewer):

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._v1d = self._glue_app.profile1d(data=self._glue_app.data_collection[0], show=False, widget='matplotlib')
self._v1d = self._glue_app.profile1d(data=self._glue_app.data_collection[0], show=False)

def show(self):
return Box([self._v1d.layout])
Expand Down
2 changes: 1 addition & 1 deletion jdaviz/vizcomponents/viewer/viewernd.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ViewerND(Viewer):

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._v3d = self._glue_app.imshow(data=self._glue_app.data_collection[0], show=False, widget='matplotlib')
self._v3d = self._glue_app.imshow(data=self._glue_app.data_collection[0], show=False)

def show(self):
return Box([self._v3d.layout])

0 comments on commit e4f34ea

Please sign in to comment.