-
Notifications
You must be signed in to change notification settings - Fork 1
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
Plotting - major steps towards final product #2
Conversation
Streamlined certain aspects of plotting and removed ability to modify x-tick location. More importantly, discovered ax.inset_axes([x_loc, y_loc, x_width, y_height], transform=ax.transData) that will allow floating y-axis for difference. At present, ready to implement floating axis.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to see this coming along. Some of this is a bit scientific, let me know if you have specific questions.
|
||
|
||
class Figure: | ||
def __init__(self, pliffy_data, plot_info, estimates, ax_ab): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it be ax_ab=None
?
|
||
def _plot_raw_data(self): | ||
if ( | ||
self.pliffy_data.design == "paired" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
constant, also would expect and
to be part of the ()
formatting?
def _create_diff_axis(self): | ||
pass | ||
|
||
def _plot_ab(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like you signaled what is "internal"
I have implemented the basic plotting for the two groups (mean, confidence intervals, raw data). I started a somewhat hacky version of the difference axis (right y-axis), but I was not happy with it. I did some googling and found this new functionality in Matplotlib which will allow me to create my floating y-axis rather simply. I am super stocked about this! It will require a bit of figuring out to get it lined up, but it will be worth it.
I am tacking the inset axis next, and hopefully once I have done that I will only have a few more tweaks to add.