1 00:00:00,450 --> 00:00:02,970 Well you've come a long way. 2 00:00:02,970 --> 00:00:08,520 Check out this we've created in the past few videos we have worked towards creating our own customized 3 00:00:08,520 --> 00:00:09,500 plot. 4 00:00:09,510 --> 00:00:15,120 Now of course the final step in a map plot lib workflow is to share this with someone else. 5 00:00:15,120 --> 00:00:21,600 Now of course if you've been working through your Jupiter notebook you may put some communication up 6 00:00:21,600 --> 00:00:30,470 here like you might create a sounds like this plot shows some information about the heart disease data 7 00:00:30,480 --> 00:00:36,600 set something like that of course you might go a little bit more in-depth than that to communicate your 8 00:00:36,600 --> 00:00:38,570 work and then you could share your notebook. 9 00:00:39,090 --> 00:00:43,290 But what if you didn't want to share notebooks are doing it like a presentation where you can't really 10 00:00:43,290 --> 00:00:47,040 just run through all the code and show someone what you've done. 11 00:00:47,040 --> 00:00:50,070 So what you may need to do is just export your figure. 12 00:00:50,190 --> 00:00:55,440 Now probably the easiest way to do this and it's the way I've done it in the past is just to save the 13 00:00:55,440 --> 00:00:58,190 image as you write click on it. 14 00:00:58,230 --> 00:01:05,920 You could save it to downloads or I could save it in my Schein learning course sample project. 15 00:01:06,100 --> 00:01:07,070 I'm gonna save it. 16 00:01:07,450 --> 00:01:08,520 When I go. 17 00:01:08,540 --> 00:01:15,010 Heart disease analysis plot. 18 00:01:15,130 --> 00:01:18,140 Let's see what happens is gonna be a format as a pen image. 19 00:01:18,420 --> 00:01:20,130 We'll click save. 20 00:01:20,180 --> 00:01:21,350 So that's going to download it. 21 00:01:21,360 --> 00:01:28,930 But then if we go back to here we can see here we've got heart disease analysis plot beautiful. 22 00:01:28,950 --> 00:01:32,090 So that's something that you could put into a keynote presentation. 23 00:01:32,100 --> 00:01:38,090 It's exactly what I've done to do this but I've just added some of my own custom drawings on the side 24 00:01:38,100 --> 00:01:38,470 here. 25 00:01:38,970 --> 00:01:43,560 So if you had to go into say a meeting or say a project presentation you need to show what you'd been 26 00:01:43,560 --> 00:01:48,620 working on in a visual format because that's often how most people will understand things pretty quickly. 27 00:01:48,630 --> 00:01:51,180 You can take something like this with you. 28 00:01:51,300 --> 00:01:57,450 Another way to do it via code is with the Save fig method. 29 00:01:57,480 --> 00:02:04,410 So again when we first created this up here we've created a fig a.k.a. a figure. 30 00:02:04,410 --> 00:02:08,350 So this figure is gonna be stored in Python memory at the moment. 31 00:02:08,400 --> 00:02:14,180 And so what you can do is call fig not save fig on this. 32 00:02:14,400 --> 00:02:26,090 And then we can go to heart disease analysis plot saved with Code Pink. 33 00:02:26,360 --> 00:02:31,640 So this is gonna save it with code so potentially in the future if you were creating a lot of these 34 00:02:31,640 --> 00:02:38,930 style plots you may put this code here instead of re typing it out all the time you may put something 35 00:02:38,930 --> 00:02:46,520 like this into a python function and that way you could put this line of code at the end of it to export 36 00:02:46,520 --> 00:02:50,270 your figure after the code is run after the function is being called. 37 00:02:50,300 --> 00:02:54,830 So let's see what happens if we call this fig not say fig it's not really going to output anything but 38 00:02:54,830 --> 00:03:02,660 if we go back to here we've got heart disease analysis plot saved with code Doc Pinky beautiful. 39 00:03:02,870 --> 00:03:09,170 And that is the default style so if you export it with save fig I believe PMG is the default style so 40 00:03:09,200 --> 00:03:11,620 you save the current figure. 41 00:03:11,750 --> 00:03:12,410 All right. 42 00:03:12,660 --> 00:03:16,140 So I think congratulations is in order. 43 00:03:16,170 --> 00:03:21,750 You've made it to the end of the map plot lib section we've come a very long way right from the top. 44 00:03:21,750 --> 00:03:24,630 If we go right back up let's see far out. 45 00:03:24,630 --> 00:03:26,020 We've covered a lot here. 46 00:03:26,140 --> 00:03:34,590 You've curated from creating an empty plot to making a full blown subplot with customization from a 47 00:03:34,590 --> 00:03:36,420 data set that we've manipulated. 48 00:03:36,420 --> 00:03:37,820 So that's a big step. 49 00:03:37,820 --> 00:03:42,600 If you've been following along if everything seems a little confusing at the moment don't worry this 50 00:03:42,600 --> 00:03:47,220 kind of work takes a little bit of practice a little bit of going through getting used to a little bit 51 00:03:47,220 --> 00:03:51,250 of rewriting code a little bit of making mistakes and making errors. 52 00:03:51,510 --> 00:03:56,460 But don't forget the best way to learn is to play around and practice on your own as a start. 53 00:03:56,460 --> 00:04:02,170 Maybe you could make a data frame with an umpire Ray and then start creating some plots of your own. 54 00:04:02,310 --> 00:04:04,760 And just get as creative as you can right. 55 00:04:04,770 --> 00:04:07,200 Try a different style try different data. 56 00:04:07,200 --> 00:04:08,840 Really the sky's the limit. 57 00:04:08,850 --> 00:04:13,460 In the meantime take a little break if you need and I'll see you in the next section.