You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inconsistent indexes for tick label plotting (#28733)
* TST: Test for issues #26186 and #11465
* BUG: Generate the tick position in BarPlot using convert tools from matlab.
Generate the tick position in BarPlot using convert tools from matlab.
* TST: Modify tests/plotting/test_frame.test_bar_categorical
Ticklocs are now float also for categorical bar data (as they are
position on the axis). The test is changed to compare to a array of
np.float.
* TST: Fix test for windows OS
* TST: Add test for plotting MultiIndex bar plot
A fix to issue #26186 revealed no tests existed about plotting a bar
plot for a MultiIndex, but a section of the user guide visualization
did. This section of the user guide is now in the test suite.
* BUG: Special case for MultiIndex bar plot
* DOC: Add whatsnew entry for PR #28733
* CLN: Clean up in code and doc
* CLN: Clean up test_bar_numeric
* DOC Move to whatsnew v1.1
* FIX: Make tick dtype int for backwards compatibility
* DOC: Improve whatsnew message
* ENH: Add UserWarning when plotting bar plot with MultiIndex
* CLN: Remove duplicate code line
* TST: Capture UserWarning for Bar plot with MultiIndex
* TST: Improve test explanation
* ENH: Raise UserWarning only if redrawing on existing axis with data
* DOC: Move to whatsnew v1.2.9
Co-authored-by: Marco Gorelli <[email protected]>
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v1.2.0.rst
+1
Original file line number
Diff line number
Diff line change
@@ -668,6 +668,7 @@ Plotting
668
668
669
669
- Bug in :meth:`DataFrame.plot` was rotating xticklabels when ``subplots=True``, even if the x-axis wasn't an irregular time series (:issue:`29460`)
670
670
- Bug in :meth:`DataFrame.plot` where a marker letter in the ``style`` keyword sometimes causes a ``ValueError`` (:issue:`21003`)
671
+
- Bug in :func:`DataFrame.plot.bar` and :func:`Series.plot.bar`. Ticks position were assigned by value order instead of using the actual value for numeric, or a smart ordering for string. (:issue:`26186` and :issue:`11465`)
671
672
- Twinned axes were losing their tick labels which should only happen to all but the last row or column of 'externally' shared axes (:issue:`33819`)
672
673
- Bug in :meth:`Series.plot` and :meth:`DataFrame.plot` was throwing :exc:`ValueError` with a :class:`Series` or :class:`DataFrame`
673
674
indexed by a :class:`TimedeltaIndex` with a fixed frequency when x-axis lower limit was greater than upper limit (:issue:`37454`)
0 commit comments