This fix does not fully solve the issue with high number of classes but already covers most of it.
This PR aims at increasing readability for up to 100-200 classes (see screenshots).
What I did
Increasing the fig size up to a certain value (to avoid having too heavy pdf + to avoid crashes that can happen if image size is too bug)
Changing the IoU plot to concatenate the splits horizontally instead of vertically.
Notes
It may be a bit harder to read when there are too many classes, but the user can zoom in (the resolution allows it), and I think it is better like that compared to limiting the number of classes to ~20.
We may want to set a lower limit to the y_size to avoid having such a narrow plot, but I personally think it is fine like that thanks to the zoom
It will be combined with the next PR which will add an option to only see the topk classes (most frequent, least frequent, outliers, ...).
This fix does not fully solve the issue with high number of classes but already covers most of it. This PR aims at increasing readability for up to 100-200 classes (see screenshots).
What I did
Notes
It may be a bit harder to read when there are too many classes, but the user can zoom in (the resolution allows it), and I think it is better like that compared to limiting the number of classes to ~20.
We may want to set a lower limit to the y_size to avoid having such a narrow plot, but I personally think it is fine like that thanks to the zoom
It will be combined with the next PR which will add an option to only see the topk classes (most frequent, least frequent, outliers, ...).
Screenshots