Fix deprecation warning in histogram example
The examples do not get compiled as often as the test, so minor issues sometimes creep in. The histogram example was still using some deprecated methods.
The examples do not get compiled as often as the test, so minor issues sometimes creep in. The histogram example was still using some deprecated methods.