Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I printed out a diagram from MATLAB and it's rotated 90 degrees clockwise from where it should be.

Is there software that can help me fix this and rotate an SVG file?

I tried tweaking the SVG manually using a <g transform='rotate 90'> element around the whole thing, but it doesn't handle the translation or bounding box correctly and I can't figure out how to get it right.

share|improve this question
up vote 9 down vote accepted

Download and install Inkscape, and then open the SVG file with Inkscape!


For my example, this will be our graphic:


Now, to rotate the graphic 90 degrees clockwise, we can perform the following:

  1. Edit > Select All

    select all


  2. Object > Group



  3. Object > Transform > Rotate




  4. Object > Ungroup



  5. File > Save

share|improve this answer
that worked -- thank you! (already had inkscape; I didn't think it could handle svg automatically generated by other programs) – Jason S Apr 9 '12 at 20:13
Well, if the SVG files are to specification, then Inkscape should be able to work with them! :) – iglvzx Apr 9 '12 at 20:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .