@@ -9080,7 +9080,11 @@ def redraw_keep_view(self, *args:bool, **kwargs:bool) -> None:
9080
9080
if self.delta_ax is not None:
9081
9081
zlimit_min, zlimit = self.delta_ax.get_ylim()
9082
9082
# redraw
9083
+
9084
+ start = libtime.time()
9083
9085
self.redraw(*args, **kwargs)
9086
+ _log.debug('PRINT redraw -> %s',libtime.time() - start)
9087
+
9084
9088
if self.ax is not None and xlimit_min is not None and xlimit is not None and ylimit_min is not None and ylimit is not None:
9085
9089
# restore the view
9086
9090
self.ax.set_xlim(xlimit_min, xlimit)
@@ -9140,25 +9144,23 @@ def redraw(self, recomputeAllDeltas:bool = True, re_smooth_foreground:bool = Tru
9140
9144
ylabel_alpha_color = to_hex(to_rgba(self.palette['ylabel'], 0.47), keep_alpha=True)
9141
9145
9142
9146
if forceRenewAxis or self.ax is None:
9143
- rcParams['axes.linewidth'] = 0.8
9144
- rcParams['xtick.major.size'] = 6
9145
- rcParams['xtick.major.width'] = 1
9146
- rcParams['xtick.minor.width'] = 0.8
9147
-
9148
- rcParams['ytick.major.size'] = 4
9149
- rcParams['ytick.major.width'] = 1
9150
- rcParams['ytick.minor.width'] = 1
9151
-
9152
- rcParams['xtick.color'] = xlabel_alpha_color
9153
- rcParams['ytick.color'] = ylabel_alpha_color
9154
9147
#rcParams['text.antialiased'] = True
9155
-
9156
9148
self.fig.clf()
9157
-
9158
9149
self.ax = self.fig.add_subplot(111,facecolor=self.palette['background'])
9159
9150
self.ax.set_autoscale_on(False)
9160
9151
self.delta_ax = self.ax.twinx()
9161
9152
9153
+ # rcParams need to be set each redraw. Why?
9154
+ # rcParams['axes.linewidth'] = 0.8
9155
+ # rcParams['xtick.major.size'] = 6
9156
+ # rcParams['xtick.major.width'] = 1
9157
+ # rcParams['xtick.minor.width'] = 0.8
9158
+ # rcParams['ytick.major.size'] = 4
9159
+ # rcParams['ytick.major.width'] = 1
9160
+ # rcParams['ytick.minor.width'] = 1
9161
+ rcParams['xtick.color'] = xlabel_alpha_color
9162
+ rcParams['ytick.color'] = ylabel_alpha_color
9163
+
9162
9164
# instead to remove and regenerate the axis object (we just clear and reuse it)
9163
9165
9164
9166
if self.ax is not None:
@@ -11062,6 +11064,7 @@ def redraw(self, recomputeAllDeltas:bool = True, re_smooth_foreground:bool = Tru
11062
11064
11063
11065
if not self.flagon and self.timeindex[6] and self.AUCshowFlag:
11064
11066
self.drawAUC()
11067
+
11065
11068
#update label rotating_colors
11066
11069
for label in self.ax.xaxis.get_ticklabels():
11067
11070
label.set_color(self.palette['xlabel'])
0 commit comments