using pchip and plotting references