temperatures ticks in projection plot

Hi all, I'm plotting a standard 3x2 panels plot with density, temperature and vorticity. For temperature I'm using a non-Log scale in a range of 300 and 1000 K, but the tick numbers on the bar are too close. I would like to set a range of ticks, say 300, 500, 800, 1000 to have a more readable colorbar. I tried to use matplotlib.ticker.MultipleLocator but maybe I'm doing something wrong. Do you have any suggestion? Thank you in advance Stefano

Hi Stefano, Can you do something similar to this matplotlib recipe? http://matplotlib.org/examples/pylab_examples/colorbar_tick_labelling_demo.h... It's hard to give more specific advice without a script to look at. Nathan On Wednesday, July 24, 2013, Stefano Bovino wrote:
Hi all, I'm plotting a standard 3x2 panels plot with density, temperature and vorticity. For temperature I'm using a non-Log scale in a range of 300 and 1000 K, but the tick numbers on the bar are too close. I would like to set a range of ticks, say 300, 500, 800, 1000 to have a more readable colorbar. I tried to use matplotlib.ticker.MultipleLocator but maybe I'm doing something wrong.
Do you have any suggestion?
Thank you in advance Stefano

Hi Nathan, thank you for the reply! I will try something like you suggested. BTW the script I'm using is the same as the following: http://yt-project.org/doc/cookbook/multi_plot_slice_and_proj.py Stefano On Wed, Jul 24, 2013 at 4:38 PM, Nathan Goldbaum <nathan12343@gmail.com>wrote:
Hi Stefano,
Can you do something similar to this matplotlib recipe?
http://matplotlib.org/examples/pylab_examples/colorbar_tick_labelling_demo.h...
It's hard to give more specific advice without a script to look at.
Nathan
On Wednesday, July 24, 2013, Stefano Bovino wrote:
Hi all, I'm plotting a standard 3x2 panels plot with density, temperature and vorticity. For temperature I'm using a non-Log scale in a range of 300 and 1000 K, but the tick numbers on the bar are too close. I would like to set a range of ticks, say 300, 500, 800, 1000 to have a more readable colorbar. I tried to use matplotlib.ticker.MultipleLocator but maybe I'm doing something wrong.
Do you have any suggestion?
Thank you in advance Stefano
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Nathan Goldbaum
-
Stefano Bovino