Hello, Is it possible to specify both an alpha level and a background color so that an entire saved image has a uniform transparency and color? For example, with matplotlib 1.0.0, this script yields the attached image:
from matplotlib.pyplot import figure, savefig, show
fig = figure()
ax = fig.add_subplot(111)
ax.plot([1,2,3])
fig.patch.set_alpha(0.5)
for ax in fig.axes:
ax.patch.set_alpha(0.5)
fig.patch.set_facecolor('red')
for ax in fig.axes:
ax.patch.set_facecolor('red')
savefig('test.png', facecolor='red')
In particular, the areas inside and outside the axes have different
transparency level and color. Perhaps I'm over/mis/ab-using the options
here?
Thanks for your great software and any help you can provide!
Sincerely,
Mitesh Patel
<<attachment: test.png>>
------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________ Matplotlib-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
