export multiline text as a single svg text object with matplotlib

The short answer is no.

The reason matplotlib does this is because SVG <text> elements don’t support automatic line wrapping. So anything that wants to output multi-line text has to calculate the line wrapping itself.

The in-development SVG 2 spec does support auto line-wrapping (see inline-size). But, as far as I am aware, no browsers support that feature yet.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top