0

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?

cerebrou
  • 5,353
  • 15
  • 48
  • 80
  • 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
  • 1
    You 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

0 Answers0