Skip to content
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

How to download the plot with white background? #96

Closed
doerlbh opened this issue Jun 2, 2018 · 5 comments
Closed

How to download the plot with white background? #96

doerlbh opened this issue Jun 2, 2018 · 5 comments

Comments

@doerlbh
Copy link

doerlbh commented Jun 2, 2018

Hi, thanks for providing the great software for TDA!

I am looking for a way to download the TDA plot with white background to use and cite it in a research paper, is there a way to extract it as a clean and high-resolution plot, other than the current option to download the html with black background?

Thanks!

@doerlbh doerlbh closed this as completed Jun 2, 2018
@doerlbh doerlbh reopened this Jun 2, 2018
@marcoswastaken
Copy link

I'm also interested in a way to save the visualization (or a good approximation) as something friendly for including as a figure in a paper or report.

@sauln
Copy link
Member

sauln commented Jun 2, 2018

In the past, I just used screenshots to capture a png of the plot. Will this not work for you? Are you thinking something like an export as png button on the visualization?

The pull request #74 has an way of displaying the network using plotly. It's not completely merged right now, but if you can get that working, it will have ways of exporting the network. I'm planning on integrating the PR, but will probably be a while before it's ready.

@doerlbh
Copy link
Author

doerlbh commented Jun 2, 2018

Thanks, sauln. Yes, I am currently using screenshot to extract the image (after changing the html to my need). However, it would be great to have "export as png" option (preferably in white background). I will check out the pull request #74 and plotly you mentioned.

BTW, is there a way to change the node size in display?

Have a great day.

@MLWave
Copy link
Member

MLWave commented Jun 3, 2018

This is my fault (UI design).

You can use shortcuts for this:

[p] = "print mode"
[d] = "display mode"

[s] = "Christmas mode: the nodes light up/glow"
[c] = "Sober mode: the nodes are solid"

[m] = "Moon mode: The graph has less gravity"
[e] = "Earth mode: The graph looks normal"
[z] = "Zero gravity mode: Weird stuff"

Press "m" or "z" followed by "e" to sort of reset the graph. This results in a graph that sometimes looks nicer than the graph that is produced by random init. Then use "p" and "s" followed by "c" to get the most print-worthy graph for screenshots.

But this was undocumented. It also does not work on all browsers (I only tested in Chrome, and know that Safari fails).

Basically, just type: mzep and then take a screenshot:

img

@sauln
Copy link
Member

sauln commented Jun 4, 2018

@doerlbh There's no built in way of changing the node size. Pull requests are very welcome.

@MLWave pointed out those keyboard shortcuts. If you are using the development version that is currently on github master branch, the help menu provides some of this information.

I'm not sure that 'export as png' button would give you better facilities than using the 'p' key with a screenshot. Is it still necessary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants