ENH : Auto-detect bool arrays passed to contour()? Problem
ENH : Auto-detect bool arrays passed to contour()? Problem: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). I find myself fairly regularly calling python plt.contour(boolean 2d array, levels= .5 , ...) to draw the boundary line between True and False regions on a boolean 2d array. Without…
The task
I find myself fairly regularly calling ```python plt.contour(boolean_2d_array, levels=[.5], ...) ``` to draw the boundary line between True and False regions on a boolean 2d array. Without `levels=[.5]`, one gets the default 8 levels which go at 0, 0.15, 0.3, 0.45, 0.6, 0.75, 0.9, 1.05 resulting in all the contour…
Part of Lego-X/Lego-RL-SWE-Bench-Verified.