Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 5 down vote accepted

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

icon

For my example, this will be our graphic:

before

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

  1. Edit > Select All

    select all

    preview

  2. Object > Group

    group

    preview

  3. Object > Transform > Rotate

    transform

    rotate

    preview

  4. Object > Ungroup

    ungroup

    after

  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
1  
Well, if the SVG files are to specification, then Inkscape should be able to work with them! :) –  iglvzx Apr 9 '12 at 20:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.