You are looking for the set_colorbar_label function:
https://yt-project.org/doc/reference/api/yt.visualization.plot_window.html#y...
You can also define a custom display_name for a field that you add via the
add_field function or derived_field decorator.
set_colorbar_label probably should be mentioned on the page you linked to,
if you're up for it you could add that or just file an issue noting that
it's missing so that we don't lose track of the omission.
-Nathan
On Tue, Nov 19, 2019 at 12:33 PM Huanqing
Hi,
I’m plotting a snapshot of my simulation, and I want to adjust the name for my color bar (e.g., changing “Density” to some other notation https://yt-project.org/doc/visualizing/plots.html#set-axes-units). However, I only find functions to change the name of x and y axis. Is there a way that I can change the name of my colorbar too?
Thanks, Huanqing _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org