Closed IgorDouven closed 2 years ago
@IgorDouven I addressed the same question some time ago and @sglyon suggested here, in a closed issue, how to define my own template.
layout=Layout(title_text="Your title", title_x=0.5)
. Thanks, that's very helpful (though I'm sorry to hear these changes were made).
Op zo 3 okt. 2021 om 19:54 schreef Math-Python & Julia < @.***>:
@IgorDouven https://github.com/IgorDouven I addressed the same question some time ago and @sglyon https://github.com/sglyon suggested here, in a closed issue https://github.com/JuliaPlots/PlotlyJS.jl/issues/408, how to define my own template.
- To center the plot title, define layout=Layout(title_text="Your title", title_x=0.5).
- For any data attribute or layout see: https://plotly.com/julia/reference/,
- Tutorials for almost each trace type are available here https://plotly.com/julia/.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JuliaPlots/PlotlyJS.jl/issues/418#issuecomment-932996942, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIFACLCHEROA5AMHGOYHOXDUFCKEXANCNFSM5FHK46TQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
The old default template can be applied for all charts created in a session by first setting:
templates.default = "gridon"
Then all commands to plot
will have white background, old colors, and centered title
That's very useful, thank you!
Op ma 4 okt. 2021 om 17:04 schreef Spencer Lyon @.***>:
The old default template can be applied for all charts created in a session by first setting:
templates.default = "gridon"
Then all commands to plot will have white background, old colors, and centered title
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/JuliaPlots/PlotlyJS.jl/issues/418#issuecomment-933575300, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIFACLE63HAAML2WSLG2XL3UFG677ANCNFSM5FHK46TQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
I hadn't used the package for a while, then went back to old code which does use it, but now I'm finding that the default style is (I'd say) the default style from R's
ggplot
package (grayish background, title no longer centered, etc.). Is there a way to switch back to the old style? The documentation says there are in-built styles, but I can't find them, neither in the documentation nor in the source code.