Anyway to view animation curves made in code?

When you use the var curve = new animationCurve; in code, is there someway to view that curve with the animation editor, or other?

if you put it into a public variable that has the correct variable type you can potentially check it out at play time in the editor