On 8/28/07, Tom Haddon <[EMAIL PROTECTED]> wrote:
> fig.savefig(OUTPUTFILE)
savefig has it's own DPI ( so screen resolution and print resolution
can differ). So set the figsize in the Figure init method as before,
and then psas dpi to savefig
fig.savefig(blah, dpi=300)
JDH
---
Hi Folks,
I'm creating a basic graph as follows:
revnos = [ p['revno'] for p in data ]
durations = [ p['duration'] for p in data ]
majorFormatter = FormatStrFormatter('%d')
matplotlib.use('Cairo')
fig = Figure()
canvas = FigureCanvas(fig)
ax = fig.add_subplot(111)
ax.plot(revnos, durations, '-'