Hi,
Is it at all possible to have figimage draw the image OVER the top of
the plot area? Currently I can only get it to draw underneath — even
if I set the frame alpha to zero, it is obscured by the grid. This can
be seen from the test code below:
---- testplot.py ----
#!/usr/bin/python
import numpy as np
import matplotlib.pyplot as plt
Z = np.arange(10000.0)
Z.shape = 100,100
Z[:,50:] = 1.
dpi = 80.0
width = 600
height = 480
data = zip(*[(x, x**2) for x in range(0, 100)])
fig = plt.figure()
ax1 = fig.add_axes([0.12,0.1,0.83,0.85])
plt.plot(data[0], data[1])
# This doesn't help, the grid still gets in the way...
ax1.get_frame().set_alpha(0)
ax1.grid(True, color='0.78', linestyle='-', lw=((1.0/dpi)*72))
logo_fig = fig.figimage(Z, 100, 100)
fig.set_size_inches(width/dpi,height/dpi)
fig.set_dpi(dpi)
fig.savefig("test.png", dpi=dpi)
----
So far, my best workaround is to use transform_point(...) to work out
the position that I want, and run imagemagick in a subprocess when I'm
done. I'd appreciate any help.
Cheers,
Jason
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users