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
Introduce orientation to bar plot #94
Conversation
Introduce orientation to bar plot.
Thanks for contributing this PR! This looks like a good start. There are still a couple of things missing from the re-oriented import numpy as np
import pandas as pd
np.random.seed(42)
simple_df = pd.DataFrame((np.random.random((20, 10)) > 0.5), columns=range(0, 10)).replace(False, np.nan)
large_df = pd.DataFrame((np.random.random((250, 60)) > 0.5)).replace(False, np.nan)
import missingno as msno
import matplotlib.pyplot as plt
msno.dendrogram(simple_df) And the reoriented view ( Here is the standard view for And the reoriented view added in this PR ( The reoriented
If you fix these two issues, I'd be happy to merge this PR. This looks like a great feature! |
* Figure size is based on the orientations * axis-labels are fixed
Should be fixed. |
Fix for already-existing axis and figsize similar to dendrogram
Font size problem still requires some tinkering, but we are getting there. |
@sbrugman Hey, any update on this? |
My focus is somewhere else right now, not sure if I have time soon to fix the font size. |
Ok, the amount of work remaining seems pretty small, maybe I'll take up
finishing it sometime soon.
…On Wed, Sep 11, 2019, 3:29 PM Simon Brugman ***@***.***> wrote:
My focus is somewhere else right now, not sure if I have time soon to fix
the font size.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#94?email_source=notifications&email_token=AA2OIZJVBVCMH77A3DE32NDQJFWLPA5CNFSM4IGZQHSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6QCZYY#issuecomment-530590947>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA2OIZN7MDRRA3MNOLNZ5YDQJFWLPANCNFSM4IGZQHSA>
.
|
For whatever reason I can't replicate the font size behavior now. Looks fine, so I'll just merge this as is. I imagine you don't often submit PRs that take two years to merge. 😉 |
The dendrogram has an option to change the orientation from top-down to left-right. This is convenient when having a large amount of columns. The bar plot misses this option. To make the bar plot effective for large numbers of columns, it should have a similar behaviour.
This pull requests adds the basic functionality. The
figsize
is not yet adjusted, this should be added.