-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
keep seaborn.heatmap's cmap as **kwargs #75
Comments
Thank you for opening this issue! Am I correct in understanding that you want to provide your own Lines 3268 to 3271 in 7b0fbfb
Could you share more details about how you would like to customize the colors in this case? |
hi @sbslee I already have this working for me: you hardcoded
I named it cmap to prevent same parameter name be passed to kwargs. Can be more delicate or python-ish. I am not good with python. so I can call plot_waterfall with my own cmap I did similar to
and to
and it works fine. seemless if you stick to defaults and flexible if somebody uses their own colors. what do you think? Bests, |
Thanks for the detailed explanation!
Glad to hear that you got it working for you. I will review your proposal and let you know, but in the meantime I think your approach makes sense and I agree with defining your own custom functions for now. |
fuc/fuc/api/pymaf.py
Line 3270 in 7b0fbfb
I wasnt able to customize the plot_waterfall colors since cmap parameter of seaborn.heatmap is hardcoded.
wouldnt hurt to:
cmap = kwargs.get('cmap', colors)
sns.heatmap(df, ax=ax, xticklabels=False,cbar=False, vmin=0, vmax=len(colors), **kwargs)
or any more elegant solution - I am not that good with python.
The text was updated successfully, but these errors were encountered: