-
Notifications
You must be signed in to change notification settings - Fork 382
Add links to blogpost from parent pages
Once your blogpost is over, we need to create screenshots of the inside images, and add links to the blogpost in the parent section.
-
create a screenshot of the plot you made in the post. On a Mac, you can do
ctrl + cmd + 4
to screenshot. The file will be save on your Desktop -
screenshot must be approx square, and at least 480x480
-
move the file
Screen...png
in the Python Graph Gallery folder:The-Python-Graph-Gallery/static/graph
-
clean the image with Image Magick:
- go to the img folder with your terminal
- run a shell script:
./script_reformat_img.sh my-img-name.png
-
the image name must fit the post name. If your post is
714-awesome-pie-chart.ipynb
, the image must be714-awesome-pie-chart.png
-
if you have several images in the post, you can create several screenshots and call them
714-awesome-pie-chart-1.png
,714-awesome-pie-chart-2.png
and so on.
If your post explains how to build a pie chart, you probably want to add it to the pie chart section of the gallery.
Find the pie-chart.js
file in the pages
folder. Adding the image should look like this:
<ChartImageContainer
imgName="pie-plot-matplotlib-basic-add-labels"
caption="Add and customize the labels"
linkTo="/pie-plot-matplotlib-basic"
/>