Commit 68fb53b
authored
refactor: add dataclass support pairplot configurations (#1631)
* refactor(plot): define plotting configuration dataclasses
* refactor(plot): refactor plotting functions and add dataclasses to plotting function arguments
* refactor(plot): move plotting helper functions to separate file
* refactor(plot): Remove MPlKwargs dataclass and update FigKwargs usage
* refactor(plot): add KwargsType for function annotation
* refactor(plot): add docstrings to base classes and remove setting color to mpl kwargs by default
* docs(plot): add docstrings to plotting functions
* docs(plot): update plotting tutorial
* add license header
* docs(plot): update pairplot and mariginal pairplot docstrings
* chore: update variable name
* chore: update Kwargs variable name to Options
* plot(FigOptions): remove nested dataclasses and add docstring
* plot: update dictinary usage of fig_kwargs options to use dataclass fields
* docs(plot): update plotting functionality tutorial
* docs: include migration note for plotting functionality
* chore: include plotting dataclasses in init file
* plot: add plotting style validation
* chore: fix error message
* chore: update color selection logic to avoid index error
* test: add plotting dataclass tests
* chore: check for mismatching pairplot arguments
* chore: rename test functions1 parent 4d1dc5f commit 68fb53b
File tree
7 files changed
+1134
-545
lines changed- docs/advanced_tutorials
- sbi
- analysis
- utils
- tests
7 files changed
+1134
-545
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | 82 | | |
| 83 | + | |
85 | 84 | | |
| 85 | + | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
22 | 33 | | |
23 | 34 | | |
24 | 35 | | |
| |||
0 commit comments