Update the use of the Matplotlib API not to use deprecated parameters.

1 job for develop
Status Job ID Name Coverage
  Build
manual #19546
allowed to fail manual
build_wheel