-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
plotly title font size fix #5920
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution +1:
I think it would be cleaner to do something like this. What do you think?
def _format_title(self, key, separator=' '):
"""
Formats the title of the plot.
"""
title = super()._format_title(key, separator)
if self.fontsize is not None and "title" in self.fontsize:
title = {"text": title, "font": {"size": self.fontsize["title"]}}
return title
A test that confirms that the text size is correct would also be good to have. Which should be possible with hv.render(plot)
.
And the failing test is likely not related to your PR.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5920 +/- ##
=======================================
Coverage 88.53% 88.53%
=======================================
Files 323 323
Lines 67797 67806 +9
=======================================
+ Hits 60021 60030 +9
Misses 7776 7776 ☔ View full report in Codecov by Sentry. |
Agree with your changes. Thanks |
Are you up for implementing them? |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Fixes #5919
fixes plotly title font size