Skip to content
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

fix(datasets) Fix the scale of value axis when plotting in absolute sizes #4255

Merged
merged 3 commits into from
Oct 3, 2024

Conversation

adam-narozniak
Copy link
Member

Issue

When using plot_comparison_label_distribution comparing the distributions with absolute value, the value axis is plotted independently, proving incorrect value interpretation (due to the inconsistent scale).
incorrect_scale

Proposal

Share the scale of the value axis in case of absolute values:
correct_y_scale

return {"sharex": False, "sharey": False}


def _set_tick_on_value_axes(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it make more sense to use the word disable_tick rather than set_tick?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't google it. Could you send a link to matplotlib docs of disable_tick?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, i mean the name of this function _set_tick_on_value_axes, but maybe i'm overthinking it

@jafermarq jafermarq enabled auto-merge (squash) October 3, 2024 21:33
@jafermarq jafermarq merged commit 52686d9 into main Oct 3, 2024
56 checks passed
@jafermarq jafermarq deleted the fds-fix-comparison-plotting branch October 3, 2024 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants