This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
AreaStyle.py
89 lines (74 loc) · 2.8 KB
/
AreaStyle.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
from abaqusConstants import *
class AreaStyle:
"""The AreaStyle object is used to define how areas are to be filled when drawing XY-plot
objects.
AreaStyle objects are automatically created whenever an Area object is created.
AreaStyle objects can be created using the methods described below.
Notes
-----
This object can be accessed by:
.. code-block:: python
import visualization
session.charts[name].area.style
session.charts[name].gridArea.style
session.charts[name].legend.area.style
session.charts[name].tagAreaStyle
session.defaultChartOptions.areaStyle
session.defaultChartOptions.gridArea.style
session.defaultChartOptions.legend.area.style
session.defaultChartOptions.tagAreaStyle
session.defaultPlot.area.style
session.defaultPlot.title.area.style
session.xyPlots[name].area.style
session.xyPlots[name].charts[name].area.style
session.xyPlots[name].charts[name].gridArea.style
session.xyPlots[name].charts[name].legend.area.style
session.xyPlots[name].charts[name].tagAreaStyle
session.xyPlots[name].title.area.style
"""
def __init__(
self, color: str = "", fill: Boolean = ON, style: SymbolicConstant = SOLID
):
"""This method creates an AreaStyle.
Notes
-----
This function can be accessed by:
.. code-block:: python
session.AreaStyle
xyPlot.AreaStyle
Parameters
----------
color
A String specifying the color to be used when filling an area with this AreaStyle
object. The default value is "White".
fill
A Boolean specifying whether to fill the area when using this AreaStyle. The default
value is ON.
style
A SymbolicConstant specifying the area pattern style to be used when filling an area
using this AreaStyle. The default value is SOLID.
Returns
-------
An AreaStyle object.
Raises
------
ColorError
"""
pass
def setValues(
self, color: str = "", fill: Boolean = ON, style: SymbolicConstant = SOLID
):
"""This method modifies the AreaStyle object.
Parameters
----------
color
A String specifying the color to be used when filling an area with this AreaStyle
object. The default value is "White".
fill
A Boolean specifying whether to fill the area when using this AreaStyle. The default
value is ON.
style
A SymbolicConstant specifying the area pattern style to be used when filling an area
using this AreaStyle. The default value is SOLID.
"""
pass