*labels[1][:get_text]()*
Try the above. PyPlot hangs on my computer without drawing anything in it's window, so the text I received was just an empty string, but the corresponding function in python seemed to work.
*labels[1][:get_text]()*
Try the above. PyPlot hangs on my computer without drawing anything in it's window, so the text I received was just an empty string, but the corresponding function in python seemed to work.