lt.Rectangle(
                        (0, 0),
                        0,
                        0,
                        facecolor=facecolor,
                        edgecolor=color,
                    )
                )
                legend_info[&#34;labels&#34;].append(str(color_id))

        if kwds.get(&#34;legend&#34;, False):
            ax.legend(
                legend_info[&#34;handles&#34;],
                legend_info[&#34;labels&#34;],
            )

    # Determine the order in which we 