Multipanel plot with multi-column

Hi all,
I've used AxesGrid to draw a multipanel plot, and it properly worked. But now, I want to make a multipanel plot with a multicolumn like this. First row - 3 plots Second row - 4 plots Third row - 3 plots I looked at the document of AxesGrid but it seems that it only supports uniform grid structure (ex. 2x5, 3x3)
And I also tried to use fixed resolution buffer to transform dataset to array, but it doesn't work ``` p = yt.ParticleProjectionPlot(ds,'z', (dm_f, 'particle_mass') ,width = (1200, "kpccm"),center=cen, density=True) p.data_source.to_frb((size, "kpccm"), 1024)
'ParticleAxisAlignedDummyDataSource' object has no attribute 'to_frb'
```
Is there any way to draw a multicolumn plot like this link? (https://matplotlib.org/stable/gallery/subplots_axes_and_figures/gridspec_mul...) I would appreciate it if anyone can give me some hints. Thank you for reading!
Sincerely, HyeonYong

Dear all,
I can draw multicolumn plots by making them separately using AxesGrid position like this. ``` ~~~ grid = AxesGrid( fig, (0.1, 0.1, 0.82, 0.24), ** third row nrows_ncols=(1,3), )
p = yt.ParticleProjectionPlot(ds,'z', (dm_f, 'particle_mass') ,width = (1200, "kpccm"),center=cen, density=True)
grid = AxesGrid( fig, (0.1, 0.34, 0.82, 0.24), ** second row nrows_ncols=(1,4), )
p = yt.ParticleProjectionPlot(ds,'z', (dm_f, 'particle_mass') ,width = (1200, "kpccm"),center=cen, density=True)
grid = AxesGrid( fig, (0.1, 0.58, 0.82, 0.24), ** first row nrows_ncols=(1,3), )
p = yt.ParticleProjectionPlot(ds,'z', (dm_f, 'particle_mass') ,width = (1200, "kpccm"),center=cen, density=True) ~~~ ```
this is not a simple and complete solution, but It might help.
Thanks! HyeonYong

Thank you for sharing this solution!
On Fri, Aug 12, 2022 at 12:01 PM HyeonYong Kim gusdyd398@snu.ac.kr wrote:
Dear all,
I can draw multicolumn plots by making them separately using AxesGrid position like this.
~~~ grid = AxesGrid( fig, (0.1, 0.1, 0.82, 0.24), ** third row nrows_ncols=(1,3), ) p = yt.ParticleProjectionPlot(ds,'z', (dm_f, 'particle_mass') ,width = (1200, "kpccm"),center=cen, density=True) grid = AxesGrid( fig, (0.1, 0.34, 0.82, 0.24), ** second row nrows_ncols=(1,4), ) p = yt.ParticleProjectionPlot(ds,'z', (dm_f, 'particle_mass') ,width = (1200, "kpccm"),center=cen, density=True) grid = AxesGrid( fig, (0.1, 0.58, 0.82, 0.24), ** first row nrows_ncols=(1,3), ) p = yt.ParticleProjectionPlot(ds,'z', (dm_f, 'particle_mass') ,width = (1200, "kpccm"),center=cen, density=True) ~~~
this is not a simple and complete solution, but It might help.
Thanks! HyeonYong _______________________________________________ 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)
-
HyeonYong Kim
-
Matthew Turk