You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the easiest way would be to edit the input data so that they will be displayed in the order you want, rather than adding an option/changing the code.
How you do it would depend on the kind of object you are passing -- for a (non-grouped) dataframe, the order is given by the order of the columns, so you would need to reorder the columns as you like:
For grouped dataframes, rather than using the by argument):
fig, axes=joypy.joyplot(iris, by="Name")
the simplest way is to pass a grouped dataframe with the groups in the desired order. This can be done by first reordering the values in the dataframe, and then grouping with sort=False:
Currently the axes are ordered from low to high from top to bottom respectively. Is there a way to reverse this order? Or specify a custom order?
if you reverse
data
on line 390:for i, group in enumerate(data[::-1]):
And reverse
labels
on line 444:_setup_axis(a, global_x_range, col_name=labels[::-1][i], grid=ygrid)
It will reverse the order. But this seems a bit hacky, maybe there is a better way to do it?
The text was updated successfully, but these errors were encountered: