Update examples/pylab_examples/histogram_demo_extended.py

Fixed a variable name typo
Merge pull request #1755 from drevicko/v1.2.x

Update examples/pylab_examples/histogram_demo_extended.py