|
486 | 486 | "lang": "fr" |
487 | 487 | }, |
488 | 488 | "source": [ |
489 | | - "* **Sauvegarde du graphique** - C'est possible de le sauvegarder dans le format de notre choix." |
| 489 | + "* **Sauvegarde du graphique** - C'est possible de le sauvegarder dans\n", |
| 490 | + " le [format de notre choix](https://altair-viz.github.io/user_guide/saving_charts.html)." |
490 | 491 | ] |
491 | 492 | }, |
492 | 493 | { |
|
496 | 497 | "lang": "en" |
497 | 498 | }, |
498 | 499 | "source": [ |
499 | | - "* **Saving the figure** -\n", |
500 | | - " It is possible to save the chart in the format of our choice." |
| 500 | + "* **Saving the figure** - It is possible to save the chart in the\n", |
| 501 | + " [format of our choice](https://altair-viz.github.io/user_guide/saving_charts.html)." |
501 | 502 | ] |
502 | 503 | }, |
503 | 504 | { |
|
533 | 534 | }, |
534 | 535 | "outputs": [], |
535 | 536 | "source": [ |
| 537 | + "# Autres formats : PDF (plus lourd), PNG, SVG\n", |
536 | 538 | "try:\n", |
537 | 539 | " graphique.save('poids_longueur.png')\n", |
| 540 | + " graphique.save('poids_longueur.svg')\n", |
538 | 541 | "except BaseException as err:\n", |
539 | 542 | " print('Erreur:', err)\n", |
540 | 543 | " print('-> Il vaut mieux utiliser le bouton (•••)')" |
|
549 | 552 | }, |
550 | 553 | "outputs": [], |
551 | 554 | "source": [ |
| 555 | + "# Other formats: PDF (heavier), PNG, SVG\n", |
552 | 556 | "try:\n", |
553 | 557 | " chart.save('weight_length.png')\n", |
| 558 | + " chart.save('weight_length.svg')\n", |
554 | 559 | "except BaseException as err:\n", |
555 | 560 | " print('Error:', err)\n", |
556 | 561 | " print('-> We better use the (•••) button')" |
|
0 commit comments