removed stdout pollution
This commit is contained in:
parent
428651fa8a
commit
45f0a397a3
|
@ -173,7 +173,7 @@ def stackplot(ax, x_signal, y_signals, legend_location='best'):
|
||||||
y_stack = np.cumsum(y, axis=0) # a 3x10 array
|
y_stack = np.cumsum(y, axis=0) # a 3x10 array
|
||||||
last_lab = None
|
last_lab = None
|
||||||
color_index = 0
|
color_index = 0
|
||||||
print(colors)
|
# print(colors)
|
||||||
for series_index in range(len(y_signals)):
|
for series_index in range(len(y_signals)):
|
||||||
if series_index == 0:
|
if series_index == 0:
|
||||||
from_signal = 0
|
from_signal = 0
|
||||||
|
@ -185,7 +185,7 @@ def stackplot(ax, x_signal, y_signals, legend_location='best'):
|
||||||
if lab != last_lab:
|
if lab != last_lab:
|
||||||
color_index = (color_index + num_unused_colors_between_labs) % num_colors
|
color_index = (color_index + num_unused_colors_between_labs) % num_colors
|
||||||
last_lab = lab
|
last_lab = lab
|
||||||
print(color_index)
|
# print(color_index)
|
||||||
color = colors[color_index]
|
color = colors[color_index]
|
||||||
ax.fill_between(x_signal, from_signal, y_stack[series_index, :], color=color, lw=0.0)
|
ax.fill_between(x_signal, from_signal, y_stack[series_index, :], color=color, lw=0.0)
|
||||||
p = plt.Rectangle((0, 0), 0, 0, color=color)
|
p = plt.Rectangle((0, 0), 0, 0, color=color)
|
||||||
|
|
Loading…
Reference in New Issue