jrkerns / pylinac

An image analysis library for medical physics
https://pylinac.readthedocs.io/en/latest/
MIT License
153 stars 98 forks source link

Vertical and horizontal profiles swapped on FlatSym plot #192

Closed alanphys closed 5 years ago

alanphys commented 5 years ago

Describe the bug The vertical and horizontal profiles appear to be swapped on the plotted image, i.e the horizontal profile appears at the vertical profile offset and vice versa.

To Reproduce Steps to reproduce the behavior: In python console from pylinac import FlatSym fs = FlatSym.from_demo_image() fs.analyze("varian", "varian", 0.7, 0.2) fs.plot()

Expected behavior The vertical and horizontal profiles are not where I expect them to be.

Screenshots See attached images. Figure_1.png is uncorrected behaviour Figure_2.png is if I swap the "horizontal" and "vertical" dictionary labels in lines 312 and 313 of FlatSym.py Figure_1 Figure_2

Additional context I'll add a pull request if this is indeed the case.

Regards Alan

jrkerns commented 5 years ago

Fixed in #193