0435d914d8cf8be2147af722e39310487f03ce8c,pandas/tests/plotting/test_frame.py,TestDataFramePlots,test_mpl2_color_cycle_str,#TestDataFramePlots#,171

Before Change



    def test_mpl2_color_cycle_str(self):
        // GH 15516
        colors = ["C" + str(x) for x in range(10)]
        df = DataFrame(randn(10, 3), columns=["a", "b", "c"])
        for c in colors:
            _check_plot_works(df.plot, color=c)

After Change


    def test_mpl2_color_cycle_str(self):
        // GH 15516
        df = DataFrame(randn(10, 3), columns=["a", "b", "c"])
        colors = ["C0", "C1", "C2", "C3", "C4", "C5", "C6", "C7", "C8", "C9"]
        with warnings.catch_warnings(record=True) as w:
            warnings.simplefilter("always", "MatplotlibDeprecationWarning")

            for color in colors:
                _check_plot_works(df.plot, color=color)

            // if warning is raised, check that it is the exact problematic one
            // GH 36972
            if w:
                match = "Support for uppercase single-letter colors is deprecated"
                warning_message = str(w[0].message)
                msg = "MatplotlibDeprecationWarning related to CN colors was raised"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: pandas-dev/pandas
Commit Name: 0435d914d8cf8be2147af722e39310487f03ce8c
Time: 2020-10-10
Author: 41443370+ivanovmg@users.noreply.github.com
File Name: pandas/tests/plotting/test_frame.py
Class Name: TestDataFramePlots
Method Name: test_mpl2_color_cycle_str


Project Name: ilastik/ilastik
Commit Name: 5aac7ca8dd64ac0bc1a4b74dafc1e45bc3f0034a
Time: 2016-02-18
Author: janez.ales@iwr.uni-heidelberg.de
File Name: ilastik/applets/trackingFeatureExtraction/opTrackingFeatureExtraction.py
Class Name: OpTrackingFeatureExtraction
Method Name: execute


Project Name: ilastik/ilastik
Commit Name: aba96dc49c0a132eb6edc6505a69ad13e9a37e5d
Time: 2016-02-18
Author: janez.ales@iwr.uni-heidelberg.de
File Name: ilastik/applets/trackingFeatureExtraction/opTrackingFeatureExtraction.py
Class Name: OpTrackingFeatureExtraction
Method Name: execute