Add matplotlib tests only if matplotlib is found.

Add matplotlib only if matplotlib is found at configure time.

Change-Id: I35c5fcb904644592d011fec126957c80a5afd023
Merge topic 'fix_matplot_lib' into next

9234adad Add matplotlib tests only if matplotlib is found.