answered 8 years ago
May I ask why you are not satisfied with using xmin and xmax keywords? Note that you can also pass them to save:
p.save("plot2.svg", xmin=-3, xmax=3)