I have a short function as follows:
def drawChart(data,title):
P.title(title)
P.hist(data, bins=20, histtype='stepfilled')
P.xlabel("Relevance")
P.ylabel("Frequency")
P.savefig(title + '.pdf')
This creates a pdf of my histogram. However I make around 6 calls to this, and would ideally like to save them all as one document.
Now firstly how do I collate them all and return an object from the drawChart for this to happen?
I have seen people use figure here