nomic icon indicating copy to clipboard operation
nomic copied to clipboard

Export atlas view as image

Open phisanti opened this issue 2 years ago • 2 comments

I have been playing around with Nomics API and I was wondering if it is possible to export a particular view (at least the general view) of an atlas as PNG or other image format.

phisanti avatar Apr 12 '23 19:04 phisanti

There's no python way to export the image right now, but if you simply want to download a png there is an undocumented (which is to say, unstable--no guarantees this will work in 6 months) method you can use in a web browser. Note that right now this does not export labels, just a png of currently visible points.

  1. Go to the page of the atlas map you're viewing.
  2. Open the developer tools pane (command-option-i on Chrome in a mac)
  3. paste into it the string scatterplot.make_big_png()

This downloads a png 3x the current screen resolution. It's pretty finicky though: for instance, it won't work properly if you've zoomed the map at all. If there's something more specific you want, happy to help more.

bmschmidt avatar Apr 12 '23 21:04 bmschmidt

There's no python way to export the image right now, but if you simply want to download a png there is an undocumented (which is to say, unstable--no guarantees this will work in 6 months) method you can use in a web browser. Note that right now this does not export labels, just a png of currently visible points.

1. Go to the page of the atlas map you're viewing.

2. Open the developer tools pane (command-option-i on Chrome in a mac)

3. paste into it the string `scatterplot.make_big_png()`

This downloads a png 3x the current screen resolution. It's pretty finicky though: for instance, it won't work properly if you've zoomed the map at all. If there's something more specific you want, happy to help more.

I can't export the gallery view as an image using your method

Careen-dev avatar May 11 '24 10:05 Careen-dev