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

Plotting - major steps towards final product #2

Merged
merged 6 commits into from
Aug 30, 2020
Merged

Conversation

MartinHeroux
Copy link
Owner

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.

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.
@MartinHeroux MartinHeroux merged commit c416d9d into master Aug 30, 2020
Copy link
Collaborator

@bbelderbos bbelderbos left a 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):
Copy link
Collaborator

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"
Copy link
Collaborator

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):
Copy link
Collaborator

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"

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