File tree 1 file changed +14
-9
lines changed
Filter options
1 file changed +14
-9
lines changed
Original file line number Diff line number Diff line change @@ -225,6 +225,7 @@ def __init__(
225
225
grid_shape : Tuple [int , int ] = None ,
226
226
names : List [str ] = None ,
227
227
grid_plot_kwargs : dict = None ,
228
+ histogram_widget : bool = True ,
228
229
** kwargs ,
229
230
):
230
231
"""
@@ -288,6 +289,9 @@ def __init__(
288
289
names: Optional[str]
289
290
gives names to the subplots
290
291
292
+ histogram_widget: bool, default False
293
+ make histogram LUT widget for each subplot
294
+
291
295
kwargs: Any
292
296
passed to fastplotlib.graphics.Image
293
297
@@ -556,16 +560,17 @@ def __init__(
556
560
subplot .name = name
557
561
subplot .set_title (name )
558
562
559
- hlut = HistogramLUT (
560
- data = d ,
561
- image_graphic = ig ,
562
- name = "histogram_lut"
563
- )
563
+ if histogram_widget :
564
+ hlut = HistogramLUT (
565
+ data = d ,
566
+ image_graphic = ig ,
567
+ name = "histogram_lut"
568
+ )
564
569
565
- subplot .docks ["right" ].add_graphic (hlut )
566
- subplot .docks ["right" ].size = 80
567
- subplot .docks ["right" ].auto_scale (maintain_aspect = False )
568
- subplot .docks ["right" ].controller .enabled = False
570
+ subplot .docks ["right" ].add_graphic (hlut )
571
+ subplot .docks ["right" ].size = 80
572
+ subplot .docks ["right" ].auto_scale (maintain_aspect = False )
573
+ subplot .docks ["right" ].controller .enabled = False
569
574
570
575
self .block_sliders = False
571
576
self ._image_widget_toolbar = None
You can’t perform that action at this time.
0 commit comments