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

#49 ability to plot requirements curves #112

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

#49 ability to plot requirements curves #112

wants to merge 6 commits into from

Conversation

msimet
Copy link
Owner

@msimet msimet commented Jun 22, 2018

This PR adds the functionality of plotting requirements curves in calls to the plot() method of the CorrelationFunctionSysTests and the ScatterPlotSysTests, with some control of how those new curves look, and adds unit tests for this functionality. I made some interface choices here that could use a second pair of eyes: for example, you can plot requirement curves for b-mode and e-modes in the CorrFuncSysTests, but not the imaginary parts of any correlation function that has them; also that this is not included in the legend (which would be difficult for the scatter plots, but easy for the correlation function plots).

Additionally, this PR fixes a bug relating to how versions of matplotlib report colors.

The unit tests more or less only tell you if the code runs, but if you want to see the plots, you can add .savefig() commands in those unit tests to examine what they look like.

Finally, I'll note that this PR should be merged (and possibly reviewed) after branch #98, since I needed to merge that functionality in here to get the unit tests to run at all!

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.

1 participant