TST: use types.api in plotting
- [x] tests added / passed
- [x] passes `git diff upstream/master | flake8 --diff`

remove warning related to #13147 and #13621 

## [Current coverage](https://codecov.io/gh/pydata/pandas/pull/13867?src=pr) is 85.25% (diff: 100%)

> Merging [#13867](https://codecov.io/gh/pydata/pandas/pull/13867?src=pr) into [master](https://codecov.io/gh/pydata/pandas/branch/master?src=pr) will increase coverage by **<.01%**

``` diff
@@             master     #13867   diff @@
==========================================
  Files           140        140          
  Lines         50455      50455          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits          43014      43015     +1   
+ Misses         7441       7440     -1   
  Partials          0          0          
```

> Powered by [Codecov](https://codecov.io?src=pr). Last update [59f2557...8450250](https://codecov.io/gh/pydata/pandas/compare/59f25575f42e19f066dc3cd2245983071e2d7813...8450250f750063cccdbfefcce41f7223e3f89820?src=pr)
 thanks!
