draw curve with switched axes