plotynium.properties
plotynium.properties.CanvasProperties
Canvas properties which has default values for width, height and
margin values and has two extra attributes translate_x and
translate_y for canvas placement.
Source code in plotynium/properties.py
translate
property
Returns the translation value. For instance,
"translate(15, 12)" and if x and y values of the translation
equal zero, it returns None.
Returns:
| Type | Description |
|---|---|
str | None
|
Translation value |
set_translate
Sets the translation values
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
int
|
X translation value |
0
|
|
int
|
Y translation value |
0
|
plotynium.properties.LegendProperties
Legend properties which has default values for width, height and
margin values.
Source code in plotynium/properties.py
new
classmethod
new(width=240, height=50, margin_top=21, margin_left=15, margin_bottom=21, margin_right=15)
Returns legend properties given specific values.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
int
|
Width value |
240
|
|
int
|
Height value |
50
|
|
int
|
Margin top value |
21
|
|
int
|
Margin left value |
15
|
|
int
|
Margin bottom value |
21
|
|
int
|
Margin right value |
15
|
Returns:
| Type | Description |
|---|---|
LegendProperties
|
Legend properties filled with the given values |