Posted by: Chris Brew | August 16, 2013

Measuring SVG text in the IPython notebook.

I spent a little time learning how to use the IPython notebook to get reliable information about the height and width of SVG text. This is tricky enough that it is worth putting out, because I’m sure it is a common need. Here are before and after images of the text.


The point of this is to enable good display of linguistic objects such as trees and dependency graphs, similar to what Sebastian Riedel has done with WhatsWrongWithMyNLP. Watch this space. Currently, the results look good to me in the IPython notebook under Safari. Comments and advice more than welcome.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


%d bloggers like this: