 Hello, this is Hans van der Kwas senior lecturer at IHE Delft Institute for Water Education. In this video I'm going to demonstrate how to use the data plotly plugin to generate pie charts for subcatchments and how to use the data plotly plugin in the print layout to generate an atlas which for each page we will have a map of a subcatchment and the pie chart with the land cover distribution belonging to that subcatchment. Let's first check our data that we previously calculated in a previous video I've demonstrated it. We have in the column dm we have the numbers of the subcatchments, 0 to 4, we have the percentage of land cover and we have the land cover types named there. Let's go to the data plotly plugin, we choose the pie chart, the correct layer and I'm going to use here the feature subset method because I can simply select here that it has to use dm equals 0, so 0 out of the four basins to generate the graph. So the grouping field is land cover and the y field is the percentage. Then I'm going to set the plot title, land cover, distribution, subcatchment, 0 in this case. I want the horizontal legend and the title of the legend is land cover. We keep the rest as default and I click create plot and there we have the plot, can move the legend a bit closer. That's of course a lot of work to do that for each catchment separately but fortunately in the print layout we can generate this automatically. So I'm going to create a new print layout, I have to give it a title called land cover atlas and there we have the print layout, scale the paper a bit and first I'm going to draw the map on the paper, leave a bit of space for a title for the graph, legend and some other items. We go to the atlas tab, we click generate atlas, we then choose this catch polygons layer because we're going to create a map for each dn from that polygon layer, keep the rest as default and then I'm going to change the item properties of the map to be controlled by the atlas and I keep the defaults there for now, I click the atlas button and I can see now that it moves through the different subcatchments, so that's for the map. We want the same for the graph, so click here the data plotly button and I create a bit of space on the paper and then the item properties, I choose setup plot and then we get the similar dialogue as we had before, choose pie chart, choose the corine layer. For the feature subset it's important to link it to the atlas, so click edit, choose field and values, choose the dn equals and then we use a variable which is called atlas page name, so then the dn will be equal to the dn that is chosen for the atlas page and we link it of course to map 1 and it keeps things at default but here I choose land cover as the grouping field and the percentage for the y field, so here we can change some settings for the plot title and the legend title with land cover and then we click update plot, there we have our graph and the map and I would like to see a frame around the map, I'm going to add a title, I'm going to call it land cover in subcatchment and I make it variable, so I'm going to add that atlas page name again, so in this case because I'm a page 4 it's land cover in subcatchment 4, here's the title and we see that it's variable, if I move through the atlas and we see the graph also changing, add a scale bar and the legend change some settings there, I only want to see the legend based on what we see in the atlas feature, so if there are less classes it only shows those classes and then I added a bit the labels, add the source, change the font, choose the time new roman, italic and they add a north arrow, that's our map, our atlas so each page has the focus on a subcatchment and the corresponding pie chart generated automatically, now I can export it as a PDF, let's call it land cover atlas, I want it completely as vectors, it's vector data, I remove some other things and I don't want it to be simplified, it's already quite a simple map so I can keep it like that and then we can click on the link, it goes to the place where it's stored and then I can open it in a PDF viewer and there it is, five pages with five different subcatchments with a graph and the corresponding legend, all automatically generated, grid functionality which was financed by the way by crowdfunding and really useful as you can see, for updates on videos please subscribe to my YouTube channel for more free materials have a look at GISopenCourseWare.org which has all kinds of tutorials from the IHE OpenCourseWare website