I’ve been unable to save the plots from the VMAT tests. I’ve tried save_analyzed_image and save_plots to no avail. Any help is appreciated.
Hi,
please try the following code (it worked for me):
import pylinac
mydrgs = pylinac.vmat.DRGS.from_demo_images()
mydrgs.analyze()
mydrgs._save_analyzed_subimage("test.png", pylinac.vmat.ImageType.OPEN, show_text=True)
as far as I can see there is no public method to save the images, but it seems you can use the private method from the code above for the individual images.
The three image types are:
- ImageType.OPEN
- ImageType.DMLC
- ImageType.PROFILE
hope that helps
regards
Thomas
Thank you so much. Will give that a try.