zakandrewking / escher

Build, share, and embed visualizations of metabolic pathways.
https://escher.github.io
Other
210 stars 78 forks source link

save svg #57

Closed jotech closed 10 years ago

jotech commented 10 years ago

What is the best way to save a map produced with escher & cobrapy as svg?

When I use escher.Builder(map_name=map).display_in_browser() to get the builder with the map, I can save it as svg but there are guides in it (circles which are used in the builder to move the reaction) and even the arrow indicating the direction of a further reaction. How can I avoid them?

zakandrewking commented 10 years ago

Hi @jotech. You can remove the blue and red circles (those are the ones, yes?) from the view menu by selecting Hide Control Points.

The direction arrow should not appear in the exported SVG file. I will try to recreate this problem.

jotech commented 10 years ago

Hi @zakandrewking. I selected the hide options, but they are still there together with the black circles. I uploaded the svg: http://s000.tinyupload.com/index.php?file_id=42702711946975075574

zakandrewking commented 10 years ago

Oh, ok. The black circles are supposed to be there. This is a stylistic issue. Currently, the only workaround is to run escher locally and edit the css files. Specifically this one:

https://github.com/zakandrewking/escher/blob/master/escher/css/builder-embed.css