This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
SymbolStyle.py
122 lines (105 loc) · 3.75 KB
/
SymbolStyle.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
from abaqusConstants import *
class SymbolStyle:
"""The SymbolStyle object is used to define the marker properties to be used when drawing
curves.
SymbolStyle objects can be created using the methods described below.
Notes
-----
This object can be accessed by:
.. code-block:: python
import visualization
session.charts[name].axes1[i].axisData.curves[i].symbolStyle
session.charts[name].axes2[i].axisData.curves[i].symbolStyle
session.charts[name].curves[name].symbolStyle
session.curves[name].symbolStyle
session.defaultChartOptions.defaultAxis1Options.axisData.curves[i].symbolStyle
session.defaultChartOptions.defaultAxis2Options.axisData.curves[i].symbolStyle
session.xyPlots[name].charts[name].axes1[i].axisData.curves[i].symbolStyle
session.xyPlots[name].charts[name].axes2[i].axisData.curves[i].symbolStyle
session.xyPlots[name].charts[name].curves[name].symbolStyle
session.xyPlots[name].curves[name].symbolStyle
"""
def __init__(
self,
color: str = "",
show: Boolean = ON,
marker: SymbolicConstant = FILLED_CIRCLE,
size: float = 2,
):
"""This method creates a SymbolStyle object.
Notes
-----
This function can be accessed by:
.. code-block:: python
session.SymbolStyle
xyPlot.SymbolStyle
Parameters
----------
color
A String specifying the color to be used when drawing a marker with this SymbolStyle
object. The default value is "White".
show
A Boolean specifying whether to draw the marker when using this SymbolStyle object. The
default value is ON.
marker
A SymbolicConstant specifying the marker type be used when drawing symbols using this
SymbolStyle object. Possible values are:
- FILLED_CIRCLE
- FILLED_SQUARE
- FILLED_DIAMOND
- FILLED_TRI
- HOLLOW_CIRCLE
- HOLLOW_SQUARE
- HOLLOW_DIAMOND
- HOLLOW_TRI
- CROSS
- XMARKER
- POINT
The default value is FILLED_CIRCLE.
size
A Float specifying the marker size to be used when drawing markers using this
SymbolStyle object. The default value is 2.0.
Returns
-------
A SymbolStyle object.
Raises
------
ColorError
"""
pass
def setValues(
self,
color: str = "",
show: Boolean = ON,
marker: SymbolicConstant = FILLED_CIRCLE,
size: float = 2,
):
"""This method modifies the SymbolStyle object.
Parameters
----------
color
A String specifying the color to be used when drawing a marker with this SymbolStyle
object. The default value is "White".
show
A Boolean specifying whether to draw the marker when using this SymbolStyle object. The
default value is ON.
marker
A SymbolicConstant specifying the marker type be used when drawing symbols using this
SymbolStyle object. Possible values are:
- FILLED_CIRCLE
- FILLED_SQUARE
- FILLED_DIAMOND
- FILLED_TRI
- HOLLOW_CIRCLE
- HOLLOW_SQUARE
- HOLLOW_DIAMOND
- HOLLOW_TRI
- CROSS
- XMARKER
- POINT
The default value is FILLED_CIRCLE.
size
A Float specifying the marker size to be used when drawing markers using this
SymbolStyle object. The default value is 2.0.
"""
pass