-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[ENH]: contour kwarg for negative_linestyle #23028
Copy link
Copy link
Closed
Labels
API: consistencyConsistency of the matplotlib API, including naming, behavior, defaults, …Consistency of the matplotlib API, including naming, behavior, defaults, …API: default changesChanges to default behaviorChanges to default behavior
Milestone
Metadata
Metadata
Assignees
Labels
API: consistencyConsistency of the matplotlib API, including naming, behavior, defaults, …Consistency of the matplotlib API, including naming, behavior, defaults, …API: default changesChanges to default behaviorChanges to default behavior
Type
Fields
Give feedbackNo fields configured for issues without a type.
Problem
if you contour a negative quantity, it gets dashed lines. Leaving aside whether this is a good default or not, the only way to toggle this is via
rcParams['contour.negative_linestyle']=False.Proposed solution
I think this should be togglable via kwarg, though I appreciate that overlaps with
linestyleand only is activated with monochrome contours.(I actually think the default should be False, FWIW - this surprises me every time, and I make quite a few contour plots).