Labels
Comments
I dug a bit to see if it was pandas or matplotlib related, but it seems that it is correctly handled by matplotlib.
Pandas plottingMatplotlibIt seems that pandas.Dataframe.plot doesn't reuse the axes info the same way that matplotlib does. |
nrebena added a commit to nrebena/pandas that referenced this issue May 1, 2019
nrebena added a commit to nrebena/pandas that referenced this issue May 1, 2019
nrebena pushed a commit to nrebena/pandas that referenced this issue May 4, 2019
Add test for issue pandas-dev#26186 Generate the tick position in BarPlot using convert tools from matlab. Working solution
nrebena added a commit to nrebena/pandas that referenced this issue May 26, 2019
Generate the tick position in BarPlot using convert tools from matlab. Add test for issue pandas-dev#26186 Add test for issue pandas-dev#11465
nrebena added a commit to nrebena/pandas that referenced this issue Oct 1, 2019
6 tasks
nrebena added a commit to nrebena/pandas that referenced this issue Oct 3, 2019
A fix to issue pandas-dev#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.
nrebena added a commit to nrebena/pandas that referenced this issue Nov 19, 2019
nrebena added a commit to nrebena/pandas that referenced this issue Nov 19, 2019
A fix to issue pandas-dev#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.
nrebena added a commit to nrebena/pandas that referenced this issue Feb 12, 2020
nrebena added a commit to nrebena/pandas that referenced this issue Feb 12, 2020
A fix to issue pandas-dev#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.
nrebena added a commit to nrebena/pandas that referenced this issue Feb 16, 2020
nrebena added a commit to nrebena/pandas that referenced this issue Feb 16, 2020
A fix to issue pandas-dev#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.
nrebena added a commit to nrebena/pandas that referenced this issue Feb 16, 2020
nrebena added a commit to nrebena/pandas that referenced this issue Feb 16, 2020
A fix to issue pandas-dev#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.
nrebena added a commit to nrebena/pandas that referenced this issue Mar 14, 2020
nrebena added a commit to nrebena/pandas that referenced this issue Mar 14, 2020
A fix to issue pandas-dev#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.
nrebena added a commit to nrebena/pandas that referenced this issue Jun 13, 2020
nrebena added a commit to nrebena/pandas that referenced this issue Jun 13, 2020
A fix to issue pandas-dev#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.
nrebena added a commit to nrebena/pandas that referenced this issue Jun 17, 2020
nrebena added a commit to nrebena/pandas that referenced this issue Jun 17, 2020
A fix to issue pandas-dev#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.
nrebena added a commit to nrebena/pandas that referenced this issue Sep 12, 2020
nrebena added a commit to nrebena/pandas that referenced this issue Sep 12, 2020
A fix to issue pandas-dev#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.
charlesdong1991 pushed a commit that referenced this issue Nov 21, 2020
* 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]>
Sign up for free to join this conversation on . Already have an account? Sign in to comment
Code Sample
Problem description
The second plot overwrites the first index even if it is not in the same order, producing incoherent figure where the ylabel does not match with the data displayed.


The current output (pandas 0.24.1) creates
instead of
I don't know if this is related to the way pandas handles index or matplotlib.
The text was updated successfully, but these errors were encountered: