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
* BUG: set correct xlims for lines (pandas-dev#11471, pandas-dev#11310)
* Do not assume that xdata is sorted.
* Use numpy.nanmin() and numpy.nanmax() instead.
* BUG: Let new MPL automatically determine xlims (pandas-dev#15495)
* Avoid setting xlims since recent matplotlib already does it correctly
* and we should let it apply its default styles where possible
* TST: plotting: update expected results for matplotlib 2
Matplotlib 2.0 uses new defaults that cause some of our tests to fail.
This adds appropriate new sets of expected results to the following
tests in tests/plotting/test_datetimelike.py:
test_finder_daily
test_finder_quarterly
test_finder_annual
test_finder_hourly
test_finder_minutely
test_finder_monthly
test_format_timedelta_ticks_narrow
test_format_timedelta_ticks_wide
* TST: plotting: Relax some tests to work with matplotlib 2.0
Matplotlib 2.0 by default now adds some padding between the boundaries
of the data and the boundaries of the plot. This causes some of our
tests to fail if we don't relax them slightly.
modified: pandas/tests/plotting/test_datetimelike.py
test_irregular_ts_shared_ax_xlim
test_mixed_freq_regular_first
test_mixed_freq_regular_first_df
test_secondary_y_irregular_ts_xlim
test_secondary_y_non_ts_xlim
test_secondary_y_regular_ts_xlim
modified: pandas/tests/plotting/test_frame.py
test_area_lim
test_line_lim
modified: pandas/tests/plotting/test_series.py
test_ts_area_lim
test_ts_line_lim
* TST: Add lineplot tests with unsorted x data
Two new tests check interaction of non-monotonic x data and xlims:
test_frame / test_unsorted_index_lims
test_series / test_unsorted_index_xlim
* DOC: lineplot/xlims whatsnew entry for v0.21.0
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.21.0.txt
+2
Original file line number
Diff line number
Diff line change
@@ -525,6 +525,8 @@ Plotting
525
525
^^^^^^^^
526
526
- Bug in plotting methods using ``secondary_y`` and ``fontsize`` not setting secondary axis font size (:issue:`12565`)
527
527
- Bug when plotting ``timedelta`` and ``datetime`` dtypes on y-axis (:issue:`16953`)
528
+
- Line plots no longer assume monotonic x data when calculating xlims, they show the entire lines now even for unsorted x data. (:issue:`11310`)(:issue:`11471`)
529
+
- With matplotlib 2.0.0 and above, calculation of x limits for line plots is left to matplotlib, so that its new default settings are applied. (:issue:`15495`)
528
530
- Bug in ``Series.plot.bar`` or ``DataFramee.plot.bar`` with ``y`` not respecting user-passed ``color`` (:issue:`16822`)
0 commit comments