[bugfix] wront parent used for style
This commit is contained in:
parent
f01868bc36
commit
deaa67bb30
@ -624,6 +624,7 @@ class PylotCanvas(FigureCanvas):
|
|||||||
# initialize super class
|
# initialize super class
|
||||||
super(PylotCanvas, self).__init__(self.figure)
|
super(PylotCanvas, self).__init__(self.figure)
|
||||||
self.setParent(parent)
|
self.setParent(parent)
|
||||||
|
self.orig_parent = parent
|
||||||
|
|
||||||
if multicursor:
|
if multicursor:
|
||||||
# add a cursor for station selection
|
# add a cursor for station selection
|
||||||
@ -917,7 +918,7 @@ class PylotCanvas(FigureCanvas):
|
|||||||
nsc.sort()
|
nsc.sort()
|
||||||
nsc.reverse()
|
nsc.reverse()
|
||||||
|
|
||||||
style = self.parent()._style
|
style = self.orig_parent._style
|
||||||
linecolor = style['linecolor']['rgba_mpl']
|
linecolor = style['linecolor']['rgba_mpl']
|
||||||
|
|
||||||
for n, (network, station, channel) in enumerate(nsc):
|
for n, (network, station, channel) in enumerate(nsc):
|
||||||
|
Loading…
Reference in New Issue
Block a user