Matplotlib Legend Tutorial || matplotlib legend outside of graph || Matplotlib Tips

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024

Комментарии • 42

  • @Raiden_Amani
    @Raiden_Amani 5 месяцев назад +2

    Ive come here like 20 times now .😅🤣🤣... By far the most coherrent vidoe on legends I have ever encountered.

    • @KimberlyFessel
      @KimberlyFessel  5 месяцев назад

      Welcome back returning customer! 😆 Seriously though, very glad the video has helped you!

  • @BrunoAraujo-po2lm
    @BrunoAraujo-po2lm 3 года назад

    Amazing job as allways Kimberly! Pls never stop creating videos, it's the best didatic I've found on youtube until now.

    • @KimberlyFessel
      @KimberlyFessel  3 года назад

      Oh thank you! Really appreciate the support 😊

  • @empowercode
    @empowercode 3 года назад +3

    Hey Kimberly, nice to meet you! I just found your channel and subscribed, love what you're doing!
    I like how clear and detailed your explanations are as well as the depth of knowledge you have surrounding the topic! Since I run a tech education channel as well, I love to see fellow Content Creators sharing, educating, and inspiring a large global audience. I wish you the best of luck on your RUclips Journey, can't wait to see you succeed! Your content really stands out and you've put so much thought into your videos!
    Cheers, happy holidays, and keep up the great work!

    • @lade_edal
      @lade_edal 3 года назад +2

      She’s great. She explains in 5 minute what sines times takes hours digging around stack overflow and the wider interwebs and even then still not always get what you’re looking for.

    • @KimberlyFessel
      @KimberlyFessel  3 года назад

      Awesome -- nice to meet you, too! I truly do love creating RUclips videos, and I'm happy to meet other creators who have the same passion. Best of luck on your channel as well!

  • @ZerokCDM
    @ZerokCDM 15 дней назад

    Greetings from Argentina! Nice video, too much thanks

    • @KimberlyFessel
      @KimberlyFessel  15 дней назад

      Hello! 👋🏼 So glad you enjoyed it!

    • @ZerokCDM
      @ZerokCDM 15 дней назад +1

      ​@@KimberlyFessel Yeah, I'm coding some lines to help one of my teachers at the university. He has to use several data about economics (he has an economy PhD), like the exchange rate ARS-USD, investment rate, etc. And is so useful to automatize the data collecting ,as much as putting this data in graphs. I'll keep watching your videos

    • @KimberlyFessel
      @KimberlyFessel  14 дней назад

      @@ZerokCDM Interesting! Yes, automation is the way to go, and I always love a good graph! Thanks for watching, and feel free to reach out with questions along the way. Cheers! 😄

  • @levonmcgregor6113
    @levonmcgregor6113 3 месяца назад

    I am so very happy, thank you!

  • @syedmujahid9860
    @syedmujahid9860 Год назад

    very nice explaination in every single video

  • @SomeOne-rx2xw
    @SomeOne-rx2xw 2 года назад

    So well explained and in a very simple clear way! Thank you

  • @airgeaz3871
    @airgeaz3871 Год назад

    Well explained and very usefull i think taking you as personnal teacher
    quick and efficient

  • @anaszaggar8033
    @anaszaggar8033 Год назад

    Great work!

  • @Raiden_Amani
    @Raiden_Amani Год назад

    Your videos are golden. Thank you so much !!!

  • @yem.t.3930
    @yem.t.3930 3 года назад

    Thank you so so much! it is so comprehensive and concise

    • @KimberlyFessel
      @KimberlyFessel  3 года назад

      Most welcome! Glad to hear you found it helpful 😄

  • @swarnendusekharghosh9539
    @swarnendusekharghosh9539 3 года назад

    You are a saviour mam thankyou do keep posting :)

  • @orkaneryilmaz9561
    @orkaneryilmaz9561 3 года назад

    Great that you are doing your videos. Please do more of them. If you could do one or more tutorials for subplot and legends and stylings it would be excellent

    • @KimberlyFessel
      @KimberlyFessel  3 года назад

      Definitely will continue making videos! So many more fun topics to explore -- thanks!

  • @kudimaysey2459
    @kudimaysey2459 2 года назад

    thanks Kimberly

  • @nicksharafeddin7347
    @nicksharafeddin7347 3 года назад

    Perfect as always.
    Thank you.

  • @shauryaagrawal7825
    @shauryaagrawal7825 2 года назад

    well good...keep on ...

  • @Puma_178
    @Puma_178 2 года назад

    hi another great video, could you explain how to deal with legend in seaborn, iIcreated a plot and legend in on top of it in the middle and nothing form the seaborn website helped me to move it out

  • @bennguyen1313
    @bennguyen1313 8 месяцев назад

    Is there a way to put the legend on the left side (before the y spine)? I tried moving the figure to the right to make room, but still can't get the legend to appear at the left most part of the window!

  • @Blacklotus63
    @Blacklotus63 Год назад

    When I use 'plt.legend(bbox_to_anchor=(1,1))' to set the legend outside of the visualization, I'm unable to edit the legend using the fontsize and frameon functions. Is there a way to do this?

  • @geirha75
    @geirha75 3 года назад +1

    information on adding two or more legends to same plot would be appreciated

    • @KimberlyFessel
      @KimberlyFessel  3 года назад +1

      Good one! I'll be sure to add that to my second legend video 😄

  • @amiracemoney
    @amiracemoney 2 года назад

    Thanks. I have a question regarding Seaborn. When I tried violinplot it created the legend automatically, but when I used scatterplot it did not. Hopefully you can do a video on this scenario.

  • @nirlandossantosbenevenuto4229
    @nirlandossantosbenevenuto4229 2 года назад

    Great job. I'm facing the following problem: I have a dataframe and I've encoded the class feature using lable encoding, which I'm using to define the color each data will be plotted through plt.scatter. I've been strugling for hours trying to creat a legend for this graph, without success. Any comments on that?

  • @lade_edal
    @lade_edal 3 года назад

    Love you ♥️

  • @timon1355
    @timon1355 3 года назад

    how can we make legends for points or scatter plots?

    • @KimberlyFessel
      @KimberlyFessel  3 года назад

      Hi there - if you have made a scatter plot using plt.scatter(..., label="scatter points"), you should be able to make a legend for the dots like usual with plt.legend(). Here is one example of that from matplotlib: predictablynoisy.com/matplotlib/gallery/lines_bars_and_markers/scatter_symbol.html#sphx-glr-gallery-lines-bars-and-markers-scatter-symbol-py

  • @rupalipaul5933
    @rupalipaul5933 3 года назад

    How to use legend with 2 y axis?

    • @KimberlyFessel
      @KimberlyFessel  3 года назад

      Good question! If you have another axis for these data that is a "twinx", you can just add a legend for both axes (ax.legend() and then ax2.legend()). If I make another legend video, I'll included this... but for now, this post should help you out: stackoverflow.com/questions/5484922/secondary-axis-with-twinx-how-to-add-to-legend

  • @syedshaulhameed
    @syedshaulhameed 3 года назад

    how to add legends for subplot outside the plot

    • @KimberlyFessel
      @KimberlyFessel  3 года назад

      You can still use "bbox_to_anchor" to move the legend outside the figure, even with subplots! Check out the third example in this resource: matplotlib.org/stable/tutorials/intermediate/legend_guide.html