Add flaxible y asix and fixed some bugs. Add clearing data.