Matplotlib Tutorial 25 - customizing Matplotlib Legends

Опубликовано: 11 Июль 2015
на канале: sentdex
22,678
183

In this Matplotlib tutorial, we're going to be going over custom legends. We've covered the basics of adding a legend already.

The main issue with legends is typically that the legend gets in the way of data. There are a few options here. One option is to put the legend outside of the axis, but we have multiple subplots here and that would be pretty difficult. Instead, we'll make the legend a bit smaller, and then apply an alpha to it.

First, to have a legend, we need to add labels to our data that we want to show up on the legend.

sample code: http://pythonprogramming.net
http://hkinsley.com
  / sentdex  
http://sentdex.com
http://seaofbtc.com


На этой странице сайта вы можете посмотреть видео онлайн Matplotlib Tutorial 25 - customizing Matplotlib Legends длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь sentdex 11 Июль 2015, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 22,678 раз и оно понравилось 183 зрителям. Приятного просмотра!