-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing ax
ignores axis and uses entire plot
#15
Comments
Yeah, passing an axis is only half-working at the moment, I didn't fully implement it. You can get something working by passing a list of axis with the same length of the data you want to plot -- in this example, I'm passing two dataframes with 3 columns each, and for each function call, I'm passing the 3 axes where the plot will be drawn. f, axes = plt.subplots(3,2)
first_column = [axes[i][0] for i in range(3)]
second_column = [axes[i][1] for i in range(3)]
joypy.joyplot(df[["Monday","Tuesday","Wednesday"]], ax=first_column)
joypy.joyplot(df[["Thursday", "Friday", "Saturday"]], ax=second_column) This does work, in a way; however, the ticks on the x axis will be off, like this: Indeed the x ticks are those of the second plot, that are applied to the whole fig. |
When I do the following:
I expect to get two of the same plot, side by side. Instead, I get one plot that takes up the entire figure. So it appears
joyplot
is ignoring theAxis
being passed in.Versions:
The text was updated successfully, but these errors were encountered: