  )

                if kwds.get(&#34;legend&#34;, False):
                    legend_info[&#34;handles&#34;].append(
                        plt.Rectangle(
                            (0, 0),
                            0,
                            0,
                            facecolor=facecolor,
                            edgecolor=color,
                        )
                    )
                    legend_info[&#34;labels&#34;].append(str(color_id))

            if kwds.get(&#34;legend&#34;, 