Axis prototype. :param title: Title of the axis. The title will be placed on top of the axis. :type title: str
| 132 | return table |
| 133 | |
| 134 | class axis(object): |
| 135 | """ |
| 136 | Axis prototype. |
| 137 | |
| 138 | :param title: Title of the axis. The title will be placed on top of the axis. |
| 139 | :type title: str |
| 140 | """ |
| 141 | |
| 142 | def __init__(self, title): |
| 143 | self.title = title |
| 144 | """ |
| 145 | Title (*str*) of the axis, will be placed on top of the axis |
| 146 | """ |
| 147 | |
| 148 | self.xLabel = False |
| 149 | """ |
| 150 | Label (*str*) for the x-axis, e.g. 'frequency [Hz]'. Defaults to False. |
| 151 | """ |
| 152 | |
| 153 | self.yLabel = False |
| 154 | """ |
| 155 | Label (*str*) for the x-axis, e.g. 'voltage [V]'. Defaults to False. |
| 156 | """ |
| 157 | |
| 158 | self.xScale = 'lin' |
| 159 | """ |
| 160 | Scale (*str*) for the x-axis can be 'lin' or 'log'. Defaults to 'lin'. |
| 161 | """ |
| 162 | |
| 163 | self.yScale = 'lin' |
| 164 | """ |
| 165 | Scale (*str*) for the y-axis can be 'lin' or 'log'. Defaults to 'lin'. |
| 166 | """ |
| 167 | |
| 168 | self.xLim = [] |
| 169 | """ |
| 170 | Limits (*list*) for the x-scale: [<xMin>, <xMax>]. Defaults to []. |
| 171 | """ |
| 172 | |
| 173 | self.yLim = [] |
| 174 | """ |
| 175 | Limits (*list*) for the y-scale: [<yMin>, <yMax>]. Defaults to []. |
| 176 | """ |
| 177 | |
| 178 | self.traces = [] |
| 179 | """ |
| 180 | List with **SLiCAPplots.trace** objects to be plotted on this axis: |
| 181 | [<trace1>(,<trace2>,...,<traceN>)]. Defaults to []. |
| 182 | """ |
| 183 | |
| 184 | self.text = [0, 0, ''] |
| 185 | """ |
| 186 | Text (*[int, int, str]*) with relative plot position: [<xPos>, <yPos>, <text>]. |
| 187 | Defaults to [0, 0, '']. |
| 188 | """ |
| 189 | |
| 190 | self.polar = False |
| 191 | """ |
no outgoing calls
no test coverage detected