Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No title option for plot #74

Closed
hackenjoe opened this issue Dec 11, 2019 · 1 comment
Closed

No title option for plot #74

hackenjoe opened this issue Dec 11, 2019 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@hackenjoe
Copy link

is it possible to add a title to the dtreeviz plot? Something like plt.title("This is a plot").
I have searched the documentation on GitHub but didn't find any hint for this parameter.

@parrt parrt added the enhancement New feature or request label Dec 12, 2019
@parrt parrt added this to the 1.1.3 milestone Nov 25, 2020
@parrt
Copy link
Owner

parrt commented Nov 25, 2020

Added to dtreeviz:

viz = dtreeviz(regr,
               X_train,
               y_train,
               target_name='price',  # this name will be displayed at the leaf node
               feature_names=boston.feature_names,
               title="Boston data set regression",
               fontname="Arial",
               title_fontsize=16,
               colors = {"title":"purple"}
              )

Screen Shot 2020-11-25 at 1 35 34 PM

@parrt parrt closed this as completed in 72e83e7 Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants