ufotalent commited on
Commit
6ae0fb3
1 Parent(s): abf8fd0

Update svg_event.py

Browse files
Files changed (1) hide show
  1. 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