add a test for the diagram drawer, fix mpl deprecation warning

2 jobs for data-handling-update in 1 minute