8000 Unexpected behavior for Axes3D.plot_surface(shade=None) · Issue #11154 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Unexpected behavior for Axes3D.plot_surface(shade=None) #11154
Closed
@timhoffm

Description

@timhoffm

According to the docs the kwarg shade has to be a bool. The current implementation also accepts None and translates it to False.

Relevant code segment.

shade = kwargs.pop('shade', cmap is None)
if shade:

I assume that the current behavior is an unintended implementation detail, and I propose to change the semantics of shade=None to "use default" in order to allow further code simplification using default kwargs (#11145).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0