plotting
plotting ¶
SingleAxisFigure
dataclass
¶
Data class storing a matlab figure and axis. The stored tag data in this class is so-far unused.
Attributes:
| Name | Type | Description |
|---|---|---|
ax |
Axes
|
Matplotlib axis to which data will be plotted |
fig |
Figure
|
Matplotlib figure. |
tag |
Tag
|
Figure tag. Not yet used. |
__del__ ¶
apply_format ¶
apply_format(format2d: Format2D)
Applies format to figure and axes labels and limits
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
format2d
|
Format2D
|
format information to apply to the single axis figure |
required |
Source code in src/trendify/api/plotting/plotting.py
new
classmethod
¶
new(tag: Tag)
Creates new figure and axis. Returns new instance of this class.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tag
|
Tag
|
tag (not yet used) |
required |
Returns:
| Type | Description |
|---|---|
Type[Self]
|
New single axis figure |
Source code in src/trendify/api/plotting/plotting.py
savefig ¶
Wrapper on matplotlib savefig method. Saves figure to given path with given dpi resolution.
Returns:
| Type | Description |
|---|---|
Self
|
Returns self |