Generate High-Res 2D Classes example inconsistencies

I’m working on a script to allow people to generate high-res 2d classes by passing command line parameters and using the example at https://tools.cryosparc.com/examples/hi-res-2d-classes.html as a base.

There are some inconsistencies that have led to some confusion for me.

  1. First, the page says “This job has 10 selected templates” and then “Use matplotlib to create a 5x2 grid to display these templates” but the example matplotlib code and the example figure is a 5x3 grid.
  2. Second, in the example code for matplotlib it is confusing why in some calculations it uses a value of 7, 8 in others, and 2 in still others. It would be great if a comment could be added to say where the values are derived.
    1. The value 8 seems to come from columns + rows when columns = 5 and rows = 3
    2. The value 7 could be columns + rows - 1 if columns = 5 and rows = 3 or it could be columns + rows if it was left there when columns = 5 and rows = 2.
    3. The value 2 could be rows - 1 when rows = 3 or it could be rows if it was put there when rows = 2

Would these be able to be addressed?

Thanks @clil16. We made a note of this issue.