For some reason I have an unsorted table of data (just regarding to the first two columns) as following:
1 2 0.9
2 2 0.4
3 3 0.3
1 3 0.4
1 1 0.5
2 3 0.9
2 1 0.9
3 1 0.8
3 2 0.9
To plot this properly in python (with imshow at matplotlib) I need to sort the content as following:
1 1 ?
1 2 ?
1 3 ?
2 1 ?
2 2 ?
2 3 ?
3 1 ?
3 2 ?
3 3 ?
question mark is the related values for the third column.
In another hand, if somebody knows about how to use imshow to plot unsorted data tables that would be helpful too. Think about the following data table as a 3x3 table coordinated by the first two columns and the content of each components is indicated by the value of in the 3ed column by a color.