fix regression reported in #451: instance-check of _Graph1DBase instead of Graph
root2matplotlib: unit tests