Add functions to get data bounds and number of plotted bars.

Those functions will be used for a PV improvement.

Change-Id: Idb4f4fdd2558d6cb7b7c936697e923fd7ea3ff3a
Merge topic 'plotbar_improvement' into master

1dcc3d96 Add functions to get data bounds and number of plotted bars.