Forum Discussion
JamesIsCooke
4 years agoNew Member
Seaborn plots give error when published
Hello all,
I'm having an issue where a python visualisation that works on Power BI desktop raises an exception when published to power bi.
This code works on desktop:
import matplotlib.pyplot as plt
import seaborn as sns
fig, ax = plt.subplots(figsize=(6,3))
sns.jointplot(x='Selected Measure',y='Selected Measure Secondary',data=dataset)
plt.show()
But online gives me the error:
TypeError: color_palette() got an unexpected keyword argument 'as_cmap'
3 Replies
- v-janeyg-msft
Community Support
Hi, JamesIsCooke
Check the similar error, May be helps:
python - Obtaining a cmap for color brewer palette - Stack Overflow
Do you install a personal gateway? Power BI Gateway | Microsoft Power BI
Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.
Best Regards,
Community Support Team _ Janey - v-janeyg-msft
Community Support
JamesIsCooke Any updates?
- JamesIsCookeNew Member
Yes, we're using dash instead of power bi.