BUG: bar and line plots are not aligned on the x-axis/xticks
- [x] closes #56460
- [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).
- [x] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [x] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.


Added a test which will fail on main's self.tick_pos = np.arange(len(data)), which in this test will result in actual_bar_x of [0,1,2,3,4].

```
def test_bar_plot_x_axis(self, plot_data):
    df = DataFrame(plot_data)
    ax_bar = df["bars"].plot(kind="bar")
    df["pct"].plot(kind="line")
    actual_bar_x = [bar.get_x() + bar.get_width() / 2.0 for bar in ax_bar.patches]
    expected_x = [-1, 0, 1, 2, 3]
    assert actual_bar_x == expected_x
        ```
@rhshadrach or anyone interested in reviewing, welcoming comments This pull request is stale because it has been open for thirty days with no activity. Please [update](https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#updating-your-pull-request) and respond to this comment if you're still interested in working on this. I think this fix is actually irrelevant now because of the discussion in the issue. @sharonwoo - no problem, will close for now. If you'd like to take up the fix discussed in the issue, feel free to either reuse this PR (we can reopen) or open a new one.