Hi.
I’m a little late here.
I confirm that function is broken. To make it work you need to replace:
plt.subplot(220 + count)
with
ax = plt.subplot(220 + count)
It is not a polished function over all: it will produce always 4 plots indipendently of the number of elements, for example.
I suggest you to have a look at the other two functions:
plotter.get_elt_projected_plots_color()
and
plotter.get_projected_plots_dots({"Mo":['s','p','d'],"Te":['s','p','d']})
I’ll submit an issue into pymatgen, or you can do it if you like.
In case, please, cite this discussion.
Hope this helps