Skip to content

Commit a36c6d2

Browse files
committed
Sauvegarde en format SVG
1 parent 5b8c8bc commit a36c6d2

File tree

5 files changed

+24
-9
lines changed

5 files changed

+24
-9
lines changed

en/05-altair.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@
259259
"lang": "en"
260260
},
261261
"source": [
262-
"* **Saving the figure** -\n",
263-
" It is possible to save the chart in the format of our choice."
262+
"* **Saving the figure** - It is possible to save the chart in the\n",
263+
" [format of our choice](https://altair-viz.github.io/user_guide/saving_charts.html)."
264264
]
265265
},
266266
{
@@ -284,8 +284,10 @@
284284
},
285285
"outputs": [],
286286
"source": [
287+
"# Other formats: PDF (heavier), PNG, SVG\n",
287288
"try:\n",
288289
" chart.save('weight_length.png')\n",
290+
" chart.save('weight_length.svg')\n",
289291
"except BaseException as err:\n",
290292
" print('Error:', err)\n",
291293
" print('-> We better use the (•••) button')"

fr/05-altair.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@
258258
"lang": "fr"
259259
},
260260
"source": [
261-
"* **Sauvegarde du graphique** - C'est possible de le sauvegarder dans le format de notre choix."
261+
"* **Sauvegarde du graphique** - C'est possible de le sauvegarder dans\n",
262+
" le [format de notre choix](https://altair-viz.github.io/user_guide/saving_charts.html)."
262263
]
263264
},
264265
{
@@ -282,8 +283,10 @@
282283
},
283284
"outputs": [],
284285
"source": [
286+
"# Autres formats : PDF (plus lourd), PNG, SVG\n",
285287
"try:\n",
286288
" graphique.save('poids_longueur.png')\n",
289+
" graphique.save('poids_longueur.svg')\n",
287290
"except BaseException as err:\n",
288291
" print('Erreur:', err)\n",
289292
" print('-> Il vaut mieux utiliser le bouton (•••)')"

solution-en/05-altair.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@
259259
"lang": "en"
260260
},
261261
"source": [
262-
"* **Saving the figure** -\n",
263-
" It is possible to save the chart in the format of our choice."
262+
"* **Saving the figure** - It is possible to save the chart in the\n",
263+
" [format of our choice](https://altair-viz.github.io/user_guide/saving_charts.html)."
264264
]
265265
},
266266
{
@@ -284,8 +284,10 @@
284284
},
285285
"outputs": [],
286286
"source": [
287+
"# Other formats: PDF (heavier), PNG, SVG\n",
287288
"try:\n",
288289
" chart.save('weight_length.png')\n",
290+
" chart.save('weight_length.svg')\n",
289291
"except BaseException as err:\n",
290292
" print('Error:', err)\n",
291293
" print('-> We better use the (•••) button')"

solution-fr/05-altair.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@
258258
"lang": "fr"
259259
},
260260
"source": [
261-
"* **Sauvegarde du graphique** - C'est possible de le sauvegarder dans le format de notre choix."
261+
"* **Sauvegarde du graphique** - C'est possible de le sauvegarder dans\n",
262+
" le [format de notre choix](https://altair-viz.github.io/user_guide/saving_charts.html)."
262263
]
263264
},
264265
{
@@ -282,8 +283,10 @@
282283
},
283284
"outputs": [],
284285
"source": [
286+
"# Autres formats : PDF (plus lourd), PNG, SVG\n",
285287
"try:\n",
286288
" graphique.save('poids_longueur.png')\n",
289+
" graphique.save('poids_longueur.svg')\n",
287290
"except BaseException as err:\n",
288291
" print('Erreur:', err)\n",
289292
" print('-> Il vaut mieux utiliser le bouton (•••)')"

src/05-altair.ipynb

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,8 @@
486486
"lang": "fr"
487487
},
488488
"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)."
490491
]
491492
},
492493
{
@@ -496,8 +497,8 @@
496497
"lang": "en"
497498
},
498499
"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)."
501502
]
502503
},
503504
{
@@ -533,8 +534,10 @@
533534
},
534535
"outputs": [],
535536
"source": [
537+
"# Autres formats : PDF (plus lourd), PNG, SVG\n",
536538
"try:\n",
537539
" graphique.save('poids_longueur.png')\n",
540+
" graphique.save('poids_longueur.svg')\n",
538541
"except BaseException as err:\n",
539542
" print('Erreur:', err)\n",
540543
" print('-> Il vaut mieux utiliser le bouton (•••)')"
@@ -549,8 +552,10 @@
549552
},
550553
"outputs": [],
551554
"source": [
555+
"# Other formats: PDF (heavier), PNG, SVG\n",
552556
"try:\n",
553557
" chart.save('weight_length.png')\n",
558+
" chart.save('weight_length.svg')\n",
554559
"except BaseException as err:\n",
555560
" print('Error:', err)\n",
556561
" print('-> We better use the (•••) button')"

0 commit comments

Comments
 (0)