Logarithmic sampling of points for line_plot

Dear yt Developers and Users, I am interested in creating line plots using my simulation data from FLASH. As I understand, the yt class 'yt.visualization.line_plot.LineBuffer' by default performs a linear sampling of points between the given starting and ending point of the line along which some field will be sampled. Is there a way to carry out a logarithmic sampling? This would be very useful because my simulations covers lengthscales ranging from few au to few pc and I would like to sample more data in the inner regions in my line plots. One way I could do this is by giving a very large value for "npoints" such that the data is sampled at every possible lengthscale irrespective of whether the sampling is linear or log, but I am wondering if there is a neater solution(s) to this? Cheers, Piyush Sharda PhD Student, Astrophysics, Australian National University

Hi Piyush, Right now, it looks to my reading that this isn't quite possible. I believe that it should be without too much work, by subclassing the LineBuffer object and changing how it calls pixelize_line, but I also suspect there are edge cases I haven't looked at. I would encourage you to file an issue on github, so that we can iterate there and dig in a bit deeper. On Fri, May 8, 2020 at 12:59 PM <piyush.suneet@gmail.com> wrote:
Dear yt Developers and Users,
I am interested in creating line plots using my simulation data from FLASH. As I understand, the yt class 'yt.visualization.line_plot.LineBuffer' by default performs a linear sampling of points between the given starting and ending point of the line along which some field will be sampled. Is there a way to carry out a logarithmic sampling? This would be very useful because my simulations covers lengthscales ranging from few au to few pc and I would like to sample more data in the inner regions in my line plots. One way I could do this is by giving a very large value for "npoints" such that the data is sampled at every possible lengthscale irrespective of whether the sampling is linear or log, but I am wondering if there is a neater solution(s) to this?
Cheers, Piyush Sharda PhD Student, Astrophysics, Australian National University _______________________________________________ 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 (2)
-
Matthew Turk
-
piyush.suneet@gmail.com