It should work if you add:
Scale.x_discrete(levels=["a", "b", "c"]) where ["a", "b", "c"] is a vector of the values in the order you'd like them to appear. On Tue, May 20, 2014, at 05:32 PM, Dan B wrote: Friends, I have a simple array that has counts (sorted descending) and names associated with each count (please see screenshot). When I plot a bar chart with name on the X axis, and count on the Y axis, the bars get automatically sorted alphabetically by the names on the Y axis. I would like to have the bars sorted ascending or descending by the Y axis (the count), essentially to match the order that I have in the array. Am I missing something simple? Thanks in advance! - - Dan Email had 1 attachment: * BarChartOrderingIssue.png * 76k (image/png)
