Parameterizable rotation

I added simple support to rotate the graph.