jamiewaese / ePlant

ePlant is a data visualization tool for integrating and exploring multiple levels of biological data.
MIT License
2 stars 1 forks source link

Align plant SVG diagrams to the top left corner. #36

Closed yuzhenmi closed 10 years ago

yuzhenmi commented 11 years ago

Jamie, can you format the SVGs so that they align with the top left corner of the screen? I know it already aligns when you open it in the browser, but that is because there is the viewBox attribute in the SVG file (in the svg tag), which Processing seems to ignore. The viewBox attribute acts as positional offset so that only a portion of the SVG is shown. Can you adjust it so that the absolute coordinates are aligned properly without the viewBox?

I've been manually adjusting the offsets in the species view, but since we're getting rid of hard coded stuff, I'd like to avoid having to adjust offsets for SVGs.

Thanks!

yuzhenmi commented 11 years ago

Nevermind! Fixed it with an online SVG editor. It was surprisingly easy!

jamiewaese commented 11 years ago

Which editor?

On Oct 21, 2013, at 8:34 PM, Hans Yu notifications@github.com wrote:

Nevermind! Fixed it with an online SVG editor. It was surprisingly easy!

— Reply to this email directly or view it on GitHub.

yuzhenmi commented 11 years ago

http://code.google.com/p/svg-edit/

jamiewaese commented 11 years ago

Here is a much smaller version of the Poplar SVG. I got it down to 7 kb. I'm not sure if it's positioned the way you need it.

Apparently I can't upload SVG's to GitHub. Here's a link to the file on my Dropbox:

https://www.dropbox.com/s/pckdoyxj5c1qen5/Poplar2.svg

yuzhenmi commented 11 years ago

It looks really strange. Seems like a lot of the details are not being rendered?

image

jamiewaese commented 11 years ago

Well, yeah. But it loads quick. I'll get someone to redraw it before we go live.

On 2013-10-29, at 1:43 PM, Hans Yu wrote:

It looks really strange. Seems like a lot of the details are not being rendered?

— Reply to this email directly or view it on GitHub.

yuzhenmi commented 11 years ago

Oh ok, sorry, thought the SVG was faulty since we lost so much detail :P