TST: adding a test for bar plot with intervalrange xaxis
- [x] closes #38969
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).

The smoke test LGTM
The assert is giving me a weird error locally, maybe you can give me some advice here: 
The two lists appear to be identical yet I get this error:
```
E       AssertionError: assert [Text(0, 0, '([0, 1],)'), Text(1, 0, '([1, 2],)')] == [Text(0, 0, '([0, 1],)'), Text(1, 0, '([1, 2],)')]
E         At index 0 diff: Text(0, 0, '([0, 1],)') != Text(0, 0, '([0, 1],)')
E         Full diff:
E           [Text(0, 0, '([0, 1],)'), Text(1, 0, '([1, 2],)')]
``` I have a fix coming up! ✨ OK, I think this is ready now.

I also opened an issue with Matplotlib to add __eq__ to the Text object in the hope that writing these tests would be easier in the future 😇  > I also opened an issue with Matplotlib to add eq to the Text object in the hope that writing these tests would be easier in the future 😇

this would be really nice! See https://github.com/matplotlib/matplotlib/issues/23273 for follow up ✨  @phofl I'm getting this error on the CI now:
```
/opt/python/cp38-cp38/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
pandas/tests/plotting/test_misc.py:3: in <module>
    from matplotlib.text import Text
E   ModuleNotFoundError: No module named 'matplotlib'
```
Might be because I moved the import up? Any suggestions on how to proceed? revert or what's the underlying cause to address? Ah this makes sense. Looks like we are not installing matplotlib everywhere. Reverting is the best way forward here, this explains why the imports were done within the tests.

Thanks for trying this out thx @noatamir 