CORE-GATECH-GROUP / serpent-tools

A suite of parsers designed to make interacting with SERPENT output files simple and flawless
http://serpent-tools.readthedocs.io/en/latest/
MIT License
52 stars 33 forks source link

ENH Allow underlying results plot to be configured with keyword arguments #422

Closed drewejohnson closed 1 year ago

drewejohnson commented 4 years ago

Is your feature request related to a problem? Please describe. The ResultsReader has a very nice plot method, but I've found it to be frustrating to configure and tweak at times. Currently, there is no way to manually add markers, colors, tweak the draw style (line, steps, dashed, etc)

Describe the solution you'd like By allowing the user to pass arguments as keyword arguments through to ax.plot and ax.errorbar, we can easily allow this configuration

https://github.com/CORE-GATECH-GROUP/serpent-tools/blob/ee88bf4c2e17901aba2101daba53d384313e48d2/serpentTools/parsers/results.py#L852-L857

The patch should be merged into the main branch rather than develop since there's a lot going on currently with respect to 0.10.0 and #335, #400

Describe alternatives you've considered The workaround is to extract and plot the data on your own, but we can do a little better

This is related to #417, but a smaller, more focused issue