matplotlib get and chan values of tick labels

Solutions on MaxInterview for matplotlib get and chan values of tick labels by the best coders in the world