Skip to content

Plot_tree Rotate parameter isn't taken into account #15694

Closed

Description

@cmarmo

Description

The rotate parameter has no effect in sklearn.tree.plot_tree function.

After checking the code the rotate parameter has been inherited from the sklearn.tree.export_graphviz but has no effect in the code, simply because matplotlib does not manage this option.

Two possibility here

  • rotate can be simply removed
  • a warning is thrown when rotate is activated in plot_tree

I would be happy to propose a PR, just let me know which solution would be preferable

Steps/Code to Reproduce

See #13971

Versions

For scikit-learn >= 0.21:

Activity

  1. TomDLT commented on Nov 22, 2019

    @TomDLT
    Member

    I suggest a deprecation warning

  2. added
    Easy
    good first issue
    on Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugEasygood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions