Assume an unsorted array. What would be the best way to plot the values of the array in a sorted order with vertical labels corresponding to the magnitude and the horizontal labels being the index of the value in the original unsorted array?
Asked
Active
Viewed 59 times
0
-
Are you aware of numpy.sort and numpy.argsort? What did you try that didn't work out? – ImportanceOfBeingErnest Jun 25 '19 at 16:32
-
1You may get some hints on sorting data from [here](https://stackoverflow.com/questions/37414916/pythons-matplotlib-plotting-in-wrong-order), [here](https://stackoverflow.com/questions/49647875/how-to-prevent-alphabetical-sorting-for-python-bars-with-matplotlib) and [here](https://stackoverflow.com/questions/48413069/plot-x-axis-with-string-array-as-in-the-same-order-in-original-array-and-not-sor) – Sheldore Jun 25 '19 at 16:44