Page History
...
Code Block |
---|
def __init__ ( self ):
# initialize data
self.address = "SxrEndstation-0|Princeton-0"
self.data = None
|
In each event, we add the image array returned from the getPrincetonValue function:
...
Code Block |
---|
def endjob( self, env ) : plt.imshow( self.data/self.countpass, origin='lower') plt.colorbar() plt.show() # save the full image to a png file plt.imsave(fname="pyana_princ_image.png",arr=self.data, origin='lower') |
Note that imsave saves the image only, pixel by pixel. If you want a view of the figure itself, lower resolution, you can save it from the interactive window you get from plt.show().
Overview
Content Tools