8000 Override set_url() in class Tick · QuLogic/matplotlib@0f29996 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0f29996

Browse files
khyoxQuLogic
authored andcommitted
Override set_url() in class Tick
In the class Tick, the url attribute is not passed to any of the objects that are to be drawn. Suggested solution is to override the set_url() method in Tick to transfer the url attribute content to the tick labels, that are to be drawn.
1 parent 9ccdb1d commit 0f29996

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/matplotlib/axis.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,17 @@ def set_label2(self, s):
316316
self.label2.set_text(s)
317317
self.stale = True
318318

319+
def set_url(self, s):
320+
"""
321+
Set the url of label1 and label2
322+
323+
ACCEPTS: str
324+
"""
325+
super().set_url(s)
326+
self.label1.set_url(s)
327+
self.label2.set_url(s)
328+
self.stale = True
329+
319330
def _set_artist_props(self, a):
320331
a.set_figure(self.figure)
321332

0 commit comments

Comments
 (0)
0