connor-french / spaceprime

A python package to facilitate spatially explicit coalescent modeling in msprime
MIT License
2 stars 0 forks source link

Initialize the plot module #26

Closed connor-french closed 4 months ago

connor-french commented 4 months ago

Summary

This adds the plot_model, plot_landscape, and plot_timeseries functions to the package as part of the plot.py module.

Related Issue

Addresses #23 #22 #24 #1

Changes Made

Added the above listed functions and adds testing for the functions. This is also my first real implementation of testing.

Motivation and Context

These plotting functions are useful for visualizing models and validating that the model the user is creating is what they expect.

How Has This Been Tested?

Tests have been implemented to make sure plots are returned, any errors that should be raised do get raised, and that plots are using the correct data.

Checklist

Additional Notes