The following script (using
matplotlib 1.3.1) should create a 1-row, 3 column subplot with only one panel. The figure is displayed with
show (which looks as desired) and also saved as a pdf using
savefig has squeezed the wide figure into the normal aspect ratio, which it should not do.
#!/usr/bin/env python import matplotlib matplotlib.use('Qt4Agg') from matplotlib.pyplot import * from numpy import * figure() mgr = get_current_fig_manager() mgr.window.setGeometry(0,0,800,200) subplot(1,3,1) x=linspace(0,2*pi,100) plot(x,sin(x)) savefig('test.pdf') show()