fix scatter plot color bar median problem