Closed wincowgerDEV closed 3 years ago
Right! Though a black background won't be really print-friendly either. Is there a possibility to supply a different theme to the download version?
Agreed, we can think of a better way to format the background than black too and test it out for printer/publication-friendly download.
Looks like the icon bar can be manipulated: https://plotly-r.com/control-modebar.html
It looks like perhaps we can input any options https://github.com/plotly/plotly.js/blob/master/src/plot_api/plot_config.js
Maybe we need to add a command like this to the config command:
layout(plot_bgcolor = "rgba(0, 0, 0, 0)", paper_bgcolor = "rgba(0, 0, 0, 0)", fig_bgcolor = "rgba(0, 0, 0, 0)")
Honestly though it is probably easier and better UI to just make the figure appear on the website in the way that it will be downloaded and print ready.
Let me know what you think,
Win
On Fri, Apr 23, 2021 at 5:37 AM Zacharias Steinmetz < @.***> wrote:
Right! Though a black background won't be really print-friendly either. Is there a possibility to supply a different theme to the download version?
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/wincowgerDEV/OpenSpecy/issues/68#issuecomment-825628709, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMUJU335THGYZ4NT6UB6ULTKFSZVANCNFSM43K4LYRQ .
--
·.¸¸.·´¯
·.´¯·.¸¸.·´¯
ツ ------------------------------Win Cowger PhD Candidate, Environmental Sciences: Soil and Water University of California, Riverside
NSF Graduate Research Fellow Research Advisor to 5 Gyres https://www.5gyres.org/advisors/ Data Advisor to Let's Do It World https://www.letsdoitworld.org/
Contact Info
515-298-3869 | @.***
Websites www.openspecy.org www.wincowger.com http://andrewgray.ucr.edu/people/wcowger.html
I am thinking we can strike a balance between having the transparent look and making it easy to save and print the image.
If we change paper_bgcolor = 'transparent', to paper_bgcolor = 'rgba(0,0,0, 0.5)',
for each of the figures, I think it hits that balance well. Let me know what you think @zsteinmetz
Just for reference, the proposal I made above looks like this on download:
When I click the plot download button on the plotly chart, the plot comes out as a png with white text and a transparent background so many users will probably open it and think that the text is missing because most image viewers put a white background by default.
We may want to alter the way the plot download happens so that it comes out ready to print. Adding a black background could help.