Code Monkey home page Code Monkey logo

Comments (5)

marcoswastaken avatar marcoswastaken commented on May 17, 2024

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.

from kepler-mapper.

sauln avatar sauln commented on May 17, 2024

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.

from kepler-mapper.

doerlbh avatar doerlbh commented on May 17, 2024

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.

from kepler-mapper.

MLWave avatar MLWave commented on May 17, 2024

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

from kepler-mapper.

sauln avatar sauln commented on May 17, 2024

@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?

from kepler-mapper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.