Skip to content

Commit 12e09fa

Browse files
sbryngelsonclaude
andcommitted
Remove [log] suffix from PNG/video colorbar labels
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 085437e commit 12e09fa

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

toolchain/mfc/viz/renderer.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@ def render_2d(x_cc, y_cc, data, varname, step, output, **opts): # pylint: disab
189189
pcm = ax.pcolormesh(x_cc, y_cc, data.T, cmap=cmap, vmin=vmin, vmax=vmax,
190190
norm=norm, shading='auto')
191191
label = pretty_label(varname)
192-
cb_label = f'{label} [log]' if log_scale else label
193-
fig.colorbar(pcm, ax=ax, label=cb_label)
192+
fig.colorbar(pcm, ax=ax, label=label)
194193
ax.set_xlabel(r'$x$')
195194
ax.set_ylabel(r'$y$')
196195
ax.set_title(f'{label} (step {step})')
@@ -263,8 +262,7 @@ def render_3d_slice(assembled, varname, step, output, slice_axis='z', # pylint:
263262
pcm = ax.pcolormesh(x_plot, y_plot, sliced.T, cmap=cmap, vmin=vmin,
264263
vmax=vmax, norm=norm, shading='auto')
265264
label = pretty_label(varname)
266-
cb_label = f'{label} [log]' if log_scale else label
267-
fig.colorbar(pcm, ax=ax, label=cb_label)
265+
fig.colorbar(pcm, ax=ax, label=label)
268266
ax.set_xlabel(xlabel)
269267
ax.set_ylabel(ylabel)
270268
slice_coord = coord_along[idx]

0 commit comments

Comments
 (0)