|
@@ 606-618 (lines=13) @@
|
| 603 |
|
for i, label in enumerate(knots_names): |
| 604 |
|
x, y = knots_jyears[label], knots_fluxes[label] |
| 605 |
|
|
| 606 |
|
if lineas[i] is not None: |
| 607 |
|
if len(x) > 0: |
| 608 |
|
lineas[i].set_xdata(x) |
| 609 |
|
lineas[i].set_ydata(y) |
| 610 |
|
else: |
| 611 |
|
lineas[i].remove() |
| 612 |
|
lineas[i] = None |
| 613 |
|
else: |
| 614 |
|
if len(x) > 0: |
| 615 |
|
if label == '' or label == 'None': # if it is unlabelled, do not connect it. |
| 616 |
|
lineas[i] = ax.plot(x, y, '.', linewidth=0.8, alpha=0.5, label=label, color='black')[0] |
| 617 |
|
else: |
| 618 |
|
lineas[i] = ax.plot(x, y, '.-', linewidth=0.8, alpha=0.5, label=label)[0] |
| 619 |
|
|
| 620 |
|
if textos[i] is not None: |
| 621 |
|
if len(x) > 0: |
|
@@ 329-341 (lines=13) @@
|
| 326 |
|
x = knots_X[label][idx] |
| 327 |
|
y = knots_Y[label][idx] |
| 328 |
|
|
| 329 |
|
if lineas[i] is not None: |
| 330 |
|
if len(x) > 0: |
| 331 |
|
lineas[i].set_xdata(x) |
| 332 |
|
lineas[i].set_ydata(y) |
| 333 |
|
else: |
| 334 |
|
lineas[i].remove() |
| 335 |
|
lineas[i] = None |
| 336 |
|
else: |
| 337 |
|
if len(x) > 0: |
| 338 |
|
if label == '' or label == 'None': # if it is unlabelled, do not connect it. |
| 339 |
|
lineas[i] = ax.plot(x, y, '.', linewidth=0.8, alpha=0.5, label=label, color='black')[0] |
| 340 |
|
else: |
| 341 |
|
lineas[i] = ax.plot(x, y, '.-', linewidth=0.8, alpha=0.5, label=label)[0] |
| 342 |
|
|
| 343 |
|
|
| 344 |
|
if textos[i] is not None: |