Thanks for the help!I'm not sure if it makes a difference, but I made the colormap in matplotlib.Attached is a pic of one of my plots using default colorbar axis ticks. I have tried to use the following code (and many variants of it I have found in the python/matplotlib documentation) to specify the location of the tickmarks, but they don't place the ticks accurately. My data is temperature plotted over the range of 300K to 5500K and I want to have tickmarks at 300K, 800K, 3500K, and 4500K. Also attached is pic of my plot showing an attempted custom colorbar axis.Hello All,Does anyone know how to specify the tickmark locations on the colorbar axis? I am able to do this on the plot axes without issue, but have not been able to successfully do the same with the colorbar.
colorbar_axes = p.plots[string].cax
colorbar_axes.yaxis.set_ticks([0, 0.1, 0.8])
_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org