JuliaPlots / PlotlyJS.jl

Julia library for plotting with plotly.js
Other
418 stars 77 forks source link

style #418

Closed IgorDouven closed 2 years ago

IgorDouven commented 2 years ago

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.

empet commented 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.

IgorDouven commented 2 years ago

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.

— 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.

sglyon commented 2 years ago

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

IgorDouven commented 2 years ago

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.