python - Display png template in Matplotlib graphs -


i producing 300+ graphs, 1 per page. when displaying these graphs include border template office uses our figures (ie single line border information block in bottom right corner). have template in .png. hoping draw onto each figure , draw graphs on template:

draw template:

fig = plt.figure(cnt_fig) ax2 = fig.add_subplot(111) im = plt.imread('test.png') ax2.imdraw(im) 

then plot graphs:

ax = fig.add_subplot(111) ax.plot(x,y) 

the issue having of graphs have "non-linear axes" , error: warnings.warn("images not supported on non-linear axes.")

any ideas?


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -