Lines mark. !!! warning In the case of the Lines mark, scales for 'x' and 'y' **must** be provided. Data Attributes --------------- Attributes ---------- x: numpy.ndarray (default: []) abscissas of the data points (1d or 2d array) y: numpy.ndarray (defa
| 288 | |
| 289 | @register_mark('bqplot.Lines') |
| 290 | class Lines(Mark): |
| 291 | |
| 292 | """Lines mark. |
| 293 | |
| 294 | !!! warning |
| 295 | In the case of the Lines mark, scales for 'x' and 'y' **must** be provided. |
| 296 | |
| 297 | Data Attributes |
| 298 | --------------- |
| 299 | |
| 300 | Attributes |
| 301 | ---------- |
| 302 | x: numpy.ndarray (default: []) |
| 303 | abscissas of the data points (1d or 2d array) |
| 304 | y: numpy.ndarray (default: []) |
| 305 | ordinates of the data points (1d or 2d array) |
| 306 | color: numpy.ndarray (default: None) |
| 307 | colors of the different lines based on data. If it is [], then the |
| 308 | colors from the colors attribute are used. Each line has a single color |
| 309 | and if the size of colors is less than the number of lines, the |
| 310 | remaining lines are given the default colors. |
| 311 | |
| 312 | Style Attributes |
| 313 | ---------------- |
| 314 | |
| 315 | Attributes |
| 316 | ---------- |
| 317 | icon: string (class-level attribute) |
| 318 | Font-awesome icon for the respective mark |
| 319 | name: string (class-level attribute) |
| 320 | User-friendly name of the mark |
| 321 | colors: list of colors (default: CATEGORY10) |
| 322 | List of colors of the Lines. If the list is shorter than the number |
| 323 | of lines, the colors are reused. |
| 324 | close_path: bool (default: False) |
| 325 | Whether to close the paths or not. |
| 326 | fill: {'none', 'bottom', 'top', 'inside', 'between'} |
| 327 | Fill in the area defined by the curves |
| 328 | fill_colors: list of colors (default: []) |
| 329 | Fill colors for the areas. Defaults to stroke-colors when no |
| 330 | color provided |
| 331 | opacities: list of floats (default: []) |
| 332 | Opacity for the lines and patches. Defaults to 1 when the list is too |
| 333 | short, or the element of the list is set to None. |
| 334 | fill_opacities: list of floats (default: []) |
| 335 | Opacity for the areas. Defaults to 1 when the list is too |
| 336 | short, or the element of the list is set to None. |
| 337 | stroke_width: float (default: 2) |
| 338 | Stroke width of the Lines |
| 339 | labels_visibility: {'none', 'label'} |
| 340 | Visibility of the curve labels |
| 341 | curves_subset: list of integers or None (default: []) |
| 342 | If set to None, all the lines are displayed. Otherwise, only the items |
| 343 | in the list will have full opacity, while others will be faded. |
| 344 | line_style: {'solid', 'dashed', 'dotted', 'dash_dotted'} |
| 345 | Line style. |
| 346 | interpolation: {'linear', 'basis', 'basis-open', 'basis-closed', 'bundle', 'cardinal', 'cardinal-open', |
| 347 | 'cardinal-closed', 'monotone', 'step-before', 'step-after'} |
no test coverage detected
searching dependent graphs…