msimet / Stile

Stile: the Systematics Tests In Lensing pipeline
BSD 3-Clause "New" or "Revised" License
9 stars 6 forks source link

Allowing kwargs in calls to WhiskerPlots and ScatterPlots #83

Open msimet opened 8 years ago

msimet commented 8 years ago

WhiskerPlots and ScatterPlots have a lot of great flexibility in their methods that control what the plots look like, but most of that flexibility doesn't appear in the __call__ methods themselves. It would be great to add a **kwargs line to the call and then pass that through to the child classes.

I think the easiest way to do this would be to have a dict of the expected kwargs when __call__ calls whiskerPlot() or scatterPlot(), then to update that dict with the kwargs from the call signature, and then just run, e.g., whiskerPlot (args, ..., **expected_kwargs_after_update). But there might be another way to do it too.