File tree Expand file tree Collapse file tree 2 files changed +0
-6
lines changed Expand file tree Collapse file tree 2 files changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -649,8 +649,6 @@ def set_hover(self, hover):
649649 artist will fire a hover event if the mouse event is hovering over
650650 the artist.
651651 """
652- if not self .figure and hover is not None :
653- raise ValueError ("Cannot hover without an existing figure" )
654652 self ._hover = hover
655653
656654 def get_hover (self ):
Original file line number Diff line number Diff line change @@ -326,10 +326,6 @@ def test_set_alpha_for_array():
326326
327327
328328def test_set_hover ():
329- art = martist .Artist () # blank canvas
330- with pytest .raises (ValueError , match = "Cannot hover without an existing figure" ):
331- art .set_hover (True )
332-
333329 fig , ax = plt .subplots ()
334330 im = ax .imshow (np .arange (36 ).reshape (6 , 6 )) # non-blank canvas
335331
You can’t perform that action at this time.
0 commit comments