-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
675 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Indicator info meta-data | ||
|
||
|
||
## Model | ||
|
||
Info attributes are stored as dictionary items in the `info` attribute of an indicator when available, or else as regular attributes of the indicator. | ||
|
||
Most metadata attributes are treated as read-only except for `default_pane` which can be modifed by some primitives/modifiers ... | ||
|
||
|
||
|
||
## Retrieve metadata with `get_info` | ||
|
||
```python | ||
from mplchart.utils import get_info | ||
|
||
default_pane = get_info(indicator, 'default_pane') | ||
``` | ||
|
||
## Known attributes | ||
|
||
```python | ||
same_scale: bool # wether the output uses same scale as input | ||
defaul_pane: str # wich pane to use for a new scale | ||
overbought: float # overbought level | ||
oversold: float # oversold level | ||
yticks: tuple # force major ticks | ||
``` | ||
|
||
## Design Questions | ||
|
||
- Should we split main attributes like `same_scale`, `default_pane` from the other optional read-only attibutes ? | ||
- Should we have a `force_pane` uopdatable attribute to override `default_pane` read-only attribute. Main logic is in the `Chart.get_axes` method. |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters