You are looking for the set_colorbar_label function:

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.


On Tue, Nov 19, 2019 at 12:33 PM Huanqing <> wrote:

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 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?

yt-users mailing list --
To unsubscribe send an email to