Implemented part of ticket #536
Initial rework of plugin_histogram.cpp
Authored by: numere 2020-10-29
Parent: [r779]
Child: [r781]