Open rylanlee opened 4 years ago
Thanks! Sorry I missed this earlier. Would you like to open a pull-request?
OK. Please give me some time to know well about github.
I'm a bit confused now. We sort the columns here: https://github.com/GLIMS-RGI/rgitools/blob/c5d50429b06ac220d8e82a6a7c81613902bd82e5/rgitools/funcs.py#L487
Where do you think that this line should be?
If there is a valley between glaciers distribution regions, the column of hypso_df in the example of glacier hypsometry will be out of order, which result in the yaxis of the figure in chaos.
In my opinion, add a step of sorting before the plot :
hypso_df = hypso_df.reindex(sorted(hypso_df.columns, key=int), axis=1)