Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Colorbar Ticks

I am using a colorbar in matplotlib and because I want my graph to be more sensitive I take the square root of each value. This gives me square rooted values on my colorbar, but now I want to scale the ticks labels back to the real values. I am thusly having a hard time doing. I see that colorbar has a set_ticks function but I need to be able to get my ticks in the first place to do this generally. Is there an easy way to do this that I am not seeing, or some other way around this?

like image 603
Tristan Avatar asked Sep 28 '22 21:09

Tristan


1 Answers

Calling the locator for the colorbar instance should return the tick locations. colorbar.locator().

like image 153
Static Void Avatar answered Oct 03 '22 01:10

Static Void