Update svg_event.py
Browse files- svg_event.py +1 -1
svg_event.py
CHANGED
@@ -234,7 +234,7 @@ def plot_events(ctx, events, title_text: str, canvas_info: CanvasInfo, include_w
|
|
234 |
if ENABLE_BATCH_ID:
|
235 |
minibatch = str(e["minibatch"])
|
236 |
center = (start + end) // 2
|
237 |
-
data_ctx.text(h, center, minibatch, font_scale=0.6, fill='white' if e["chunk"] == 0 else 'black')
|
238 |
if ENABLE_BORDER:
|
239 |
data_ctx.line(h+SPAN_HEIGHT, 0, h+SPAN_HEIGHT+BORDER_SIZE, max_len - 1)
|
240 |
|
|
|
234 |
if ENABLE_BATCH_ID:
|
235 |
minibatch = str(e["minibatch"])
|
236 |
center = (start + end) // 2
|
237 |
+
data_ctx.text(h, center, minibatch, font_scale=0.6, fill='white' if e["chunk"] % 2 == 0 else 'black')
|
238 |
if ENABLE_BORDER:
|
239 |
data_ctx.line(h+SPAN_HEIGHT, 0, h+SPAN_HEIGHT+BORDER_SIZE, max_len - 1)
|
240 |
|