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!
This PR adds the functionality of plotting requirements curves in calls to the
plot()
method of theCorrelationFunctionSysTest
s and theScatterPlotSysTest
s, 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!