Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3c58d2e

Browse filesBrowse files
authored
change residual occurances of image_graphics to managed_graphic (#251)
1 parent f210268 commit 3c58d2e
Copy full SHA for 3c58d2e

File tree

1 file changed

+3
-5
lines changed
Filter options

1 file changed

+3
-5
lines changed

‎fastplotlib/widgets/image.py

Copy file name to clipboardExpand all lines: fastplotlib/widgets/image.py
+3-5Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,6 @@ def __init__(
478478

479479
self._gridplot: GridPlot = GridPlot(shape=grid_shape, **grid_plot_kwargs)
480480

481-
self.image_graphics = list()
482481
for data_ix, (d, subplot) in enumerate(zip(self.data, self.gridplot)):
483482
minmax = quick_min_max(self.data[data_ix])
484483

@@ -516,7 +515,6 @@ def __init__(
516515
subplot.add_graphic(ig)
517516
subplot.name = name
518517
subplot.set_title(name)
519-
# self.image_graphics.append(ig)
520518

521519
self.gridplot.renderer.add_event_handler(self._set_slider_layout, "resize")
522520

@@ -765,8 +763,8 @@ def _vmin_vmax_slider_changed(
765763
change: dict
766764
):
767765
vmin, vmax = change["new"]
768-
self.image_graphics[data_ix].cmap.vmin = vmin
769-
self.image_graphics[data_ix].cmap.vmax = vmax
766+
self.managed_graphics[data_ix].cmap.vmin = vmin
767+
self.managed_graphics[data_ix].cmap.vmax = vmax
770768

771769
def _set_slider_layout(self, *args):
772770
w, h = self.gridplot.renderer.logical_size
@@ -809,7 +807,7 @@ def reset_vmin_vmax(self):
809807
"""
810808
Reset the vmin and vmax w.r.t. the currently displayed image(s)
811809
"""
812-
for i, ig in enumerate(self.image_graphics):
810+
for i, ig in enumerate(self.managed_graphics):
813811
mm = self._get_vmin_vmax_range(ig.data())
814812

815813
if len(self.vmin_vmax_sliders) != 0:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.