Refactor / plotHsspCurve try #1