|
@@ 618-630 (lines=13) @@
|
| 615 |
|
for i, label in enumerate(knots_names): |
| 616 |
|
x, y = knots_jyears[label], knots_fluxes[label] |
| 617 |
|
|
| 618 |
|
if lineas[i] is not None: |
| 619 |
|
if len(x) > 0: |
| 620 |
|
lineas[i].set_xdata(x) |
| 621 |
|
lineas[i].set_ydata(y) |
| 622 |
|
else: |
| 623 |
|
lineas[i].remove() |
| 624 |
|
lineas[i] = None |
| 625 |
|
else: |
| 626 |
|
if len(x) > 0: |
| 627 |
|
if label == '' or label == 'None': # if it is unlabelled, do not connect it. |
| 628 |
|
lineas[i] = ax.plot(x, y, '.', linewidth=0.8, alpha=0.5, label=label, color='black')[0] |
| 629 |
|
else: |
| 630 |
|
lineas[i] = ax.plot(x, y, '.-', linewidth=0.8, alpha=0.5, label=label)[0] |
| 631 |
|
|
| 632 |
|
if textos[i] is not None: |
| 633 |
|
if len(x) > 0: |
|
@@ 334-346 (lines=13) @@
|
| 331 |
|
x = knots_X[label][idx] |
| 332 |
|
y = knots_Y[label][idx] |
| 333 |
|
|
| 334 |
|
if lineas[i] is not None: |
| 335 |
|
if len(x) > 0: |
| 336 |
|
lineas[i].set_xdata(x) |
| 337 |
|
lineas[i].set_ydata(y) |
| 338 |
|
else: |
| 339 |
|
lineas[i].remove() |
| 340 |
|
lineas[i] = None |
| 341 |
|
else: |
| 342 |
|
if len(x) > 0: |
| 343 |
|
if label == '' or label == 'None': # if it is unlabelled, do not connect it. |
| 344 |
|
lineas[i] = ax.plot(x, y, '.', linewidth=0.8, alpha=0.5, label=label, color='black')[0] |
| 345 |
|
else: |
| 346 |
|
lineas[i] = ax.plot(x, y, '.-', linewidth=0.8, alpha=0.5, label=label)[0] |
| 347 |
|
|
| 348 |
|
|
| 349 |
|
if textos[i] is not None: |