Hello, I keep producing projection plots where the colorbar is completely devoid of ticks and ticklabels so I don’t actually know what sort of densities/temperatures etc I am looking at. I have found this tutorial: http://yt-project.org/doc/cookbook/custom_colorbar_tickmarks.html?highlight=... <http://yt-project.org/doc/cookbook/custom_colorbar_tickmarks.html?highlight=colorbar> but I’d rather just let the values be determined automatically. Currently I’m not even sure what order of magnitude I am looking at. Is there a way to force yt to show a minimum number of tick marks on the colorbar? I have a feeling this questions has been answered before but the archive is still down apparently. Thanks for your help, Ricarda
This is likely happening because the field you are plotting defaults to a logarithmically scaled colorbar and there is less than one decade of variation in the plotted field. What happens when you switch to linear colorbar scaling? You'll need to use the set_log function that is attached to yt plot objects. -Nathan On Mon, Jun 1, 2015 at 8:35 AM, Ricarda Beckmann < ricarda.beckmann@astro.ox.ac.uk> wrote:
Hello,
I keep producing projection plots where the colorbar is completely devoid of ticks and ticklabels so I don’t actually know what sort of densities/temperatures etc I am looking at.
I have found this tutorial: http://yt-project.org/doc/cookbook/custom_colorbar_tickmarks.html?highlight=... but I’d rather just let the values be determined automatically. Currently I’m not even sure what order of magnitude I am looking at.
Is there a way to force yt to show a minimum number of tick marks on the colorbar? I have a feeling this questions has been answered before but the archive is still down apparently.
Thanks for your help, Ricarda
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Hi Nathan, that did indeed fix it. Thanks for your help. Ricarda
On 1 Jun 2015, at 17:33, Nathan Goldbaum <nathan12343@gmail.com> wrote:
This is likely happening because the field you are plotting defaults to a logarithmically scaled colorbar and there is less than one decade of variation in the plotted field.
What happens when you switch to linear colorbar scaling? You'll need to use the set_log function that is attached to yt plot objects.
-Nathan
On Mon, Jun 1, 2015 at 8:35 AM, Ricarda Beckmann <ricarda.beckmann@astro.ox.ac.uk <mailto:ricarda.beckmann@astro.ox.ac.uk>> wrote: Hello,
I keep producing projection plots where the colorbar is completely devoid of ticks and ticklabels so I don’t actually know what sort of densities/temperatures etc I am looking at.
I have found this tutorial: http://yt-project.org/doc/cookbook/custom_colorbar_tickmarks.html?highlight=... <http://yt-project.org/doc/cookbook/custom_colorbar_tickmarks.html?highlight=colorbar> but I’d rather just let the values be determined automatically. Currently I’m not even sure what order of magnitude I am looking at.
Is there a way to force yt to show a minimum number of tick marks on the colorbar? I have a feeling this questions has been answered before but the archive is still down apparently.
Thanks for your help, Ricarda
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org <mailto:yt-users@lists.spacepope.org> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org <http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org>
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Nathan Goldbaum
-
Ricarda Beckmann