update b-l plotting scripts and legend in hist painter