Axes formatting in projection plots

Hi all, is there any option when performing a density plot with OffAxisProjectionPlot to specify whether the axes in the resulting image are labelled "x/y (pc)" or "image x/y (pc)"? I would like to output images with the latter formatting enabled. Many thanks, Sam Patrick

Sam, Actually, you want the former format (get rid of the word Image), Dan On Sat, Nov 21, 2020 at 2:44 PM Sam Patrick via yt-users <yt-users@python.org> wrote:
Hi all,
is there any option when performing a density plot with OffAxisProjectionPlot to specify whether the axes in the resulting image are labelled "x/y (pc)" or "image x/y (pc)"? I would like to output images with the latter formatting enabled.
Many thanks, Sam Patrick _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org https://mail.python.org/mailman3/lists/yt-users.python.org/ Member address: dwhalen1999@gmail.com

Hi Sam, You can use .set_xlabel() and .set_ylabel() to do this, although it will require you manually specify the units, which means if you zoom in/out you may need to adjust the label. On Sat, Nov 21, 2020 at 7:44 AM Sam Patrick via yt-users < yt-users@python.org> wrote:
Hi all,
is there any option when performing a density plot with OffAxisProjectionPlot to specify whether the axes in the resulting image are labelled "x/y (pc)" or "image x/y (pc)"? I would like to output images with the latter formatting enabled.
Many thanks, Sam Patrick _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org https://mail.python.org/mailman3/lists/yt-users.python.org/ Member address: matthewturk@gmail.com
participants (3)
-
Daniel Whalen
-
Matthew Turk
-
Sam Patrick