Add figsize parameter to get_patterns() for customizable plot sizes #37
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes Summary
Added
figsize
Parameter inget_patterns()
Method:figsize
to theget_patterns()
method, which allows the user to specify the size of the figure when plotting the missing data patterns.(10, 8)
, which can be overridden by the user.figsize
parameter to the_make_plot()
method.Modified
_make_plot()
Method to Acceptfigsize
:_make_plot()
method to accept thefigsize
parameter.figsize
is used when creating theplt.subplots
to determine the size of the plot.How It Works Now
When you call
get_patterns()
on an instance ofmdPatterns
, you can pass thefigsize
parameter to specify the size of the plot.The
figsize
is then used in the_make_plot()
method to create the plot with the desired dimensions.New Implementation
This change provides flexibility to the end user, allowing them to adjust the size of the plot, which helps in preventing issues like scrunched-up labels when dealing with datasets that have many columns or rows.