Matplotlib Secondary y-Axis || Add another y-axis with Matplotlib twinx || Matplotlib Tips

Поділитися
Вставка
  • Опубліковано 5 жов 2024

КОМЕНТАРІ • 45

  • @youcefyahiaoui1465
    @youcefyahiaoui1465 2 роки тому +2

    Kimberly, I think you should be given a noble price of teaching. I love your way of driving the concepts home, your energy and your enthusiasm. You're the best.

  • @salmansiddiqui9502
    @salmansiddiqui9502 3 місяці тому

    Thank you. I initially came to learn how `twinx` works, but I ended up learning a lot of other helpful things as well. I'm subscribing 🙂.

  • @sandfly2830
    @sandfly2830 3 роки тому +1

    Extraordinary!!! I love how you explain everything concisely. Thank you very much for the video ❤️

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому +1

      So glad you enjoyed the video and found it concise -- cheers! 😄

  • @nicholasrice1748
    @nicholasrice1748 Рік тому

    Was hung up on the legend overlapping for a bit, thanks

  • @vitorribeirosa
    @vitorribeirosa Рік тому

    Neat!!!!
    Thank you so much for sharing this content.
    It really made my life easier here.
    Cheers!!!!

  • @nilakanthasahoo798
    @nilakanthasahoo798 Рік тому

    Thanks it helped!
    w.r.t time = 6:43
    Just adding another tip for someone in future (maybe myself :D)
    Rather than using 'labelcolor' in ax.tickparams(), you could use 'colors' to set the ticks along with the label to the same color instead of the default black
    Cheers!

  • @ksawerylejczak6975
    @ksawerylejczak6975 3 роки тому +1

    Your videos are the best I've ever seen in this field, but I have a question:
    have You thought about making videos which showing plotly library?
    It would be amazing in Your performance. Cheers :)

    • @KimberlyFessel
      @KimberlyFessel  2 роки тому +1

      Oh thanks so much! 😄Yes, I have been considering tackling the Plotly library for quite some time. Hopefully I will get to it soon!

  • @heliumbite91
    @heliumbite91 3 роки тому

    Thank you for the clear and precise tutorials!

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому

      Most welcome - it's amazing all the things that Matplotlib can do!

  • @vijaygusain119
    @vijaygusain119 3 роки тому

    Beautifully explained by a beautiful lady👏

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому

      💁 Thanks very much -- glad to hear you enjoyed my explanation!

  • @antonleshchuk5908
    @antonleshchuk5908 2 роки тому

    Many thanks for this tutorial!

  • @joseantonioubeira295
    @joseantonioubeira295 3 роки тому

    Excellent video ! Very clear and informative as always.. thank you so much for this Tips series !

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому

      Most welcome! Glad you enjoyed this video and series 😄

  • @davidjackson7675
    @davidjackson7675 Рік тому

    Thanks , that was interesting.

  • @renatocorreaarrieche
    @renatocorreaarrieche Рік тому

    Amazing video!

  • @jullienbeaufondcamacho2055
    @jullienbeaufondcamacho2055 8 місяців тому

    Super nice explanation

    • @KimberlyFessel
      @KimberlyFessel  8 місяців тому

      Thanks very much! Glad you liked it 😊

  • @maheshnaik8388
    @maheshnaik8388 2 роки тому

    very informative,,,

  • @vfx7t
    @vfx7t 2 роки тому

    Thank you !

  • @sashaaries21
    @sashaaries21 Рік тому

    So helpful. Thank you.

  • @bvatbdsubfigv
    @bvatbdsubfigv 3 роки тому

    Really great tutorial!📈

  • @houriabraikia417
    @houriabraikia417 3 роки тому

    Hello, can you please do a video about bias and variance, you have a good way of explanation.
    Thank you :)

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому +1

      Great idea! I will add this to my list of potential video topics. 😄

  • @jas0609
    @jas0609 3 роки тому

    Thank you so much! This is a big help!

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому

      Awesome - and thank YOU for asking this question!! 😄

  • @anggipermanaharianja6122
    @anggipermanaharianja6122 2 роки тому

    this is very useful one!

  • @victoralcantar8004
    @victoralcantar8004 3 роки тому

    Great information, thanks.

  • @ahsanulhaq6064
    @ahsanulhaq6064 2 роки тому

    great video
    keep it up 👍

  • @MM-jx3rw
    @MM-jx3rw Рік тому

    Kimberly, is there a way to connect the data points of the spines to each other? For example, if I have a data of 10 rows and 4 columns. In which each column is a separate y axis with its own scale while each row is a single observation, is there a way to connect the data points of a single observation with a line even though they have separate y axis?

  • @ahsanulhaq6064
    @ahsanulhaq6064 2 роки тому

    can you make a video or update code at your Github for how to split single y-axis in two portions۔ for example plot X and its square on the same axis with partition

  • @ThaFuzzwood
    @ThaFuzzwood 3 роки тому

    How do you prevent the figure from expanding horizontally when using twinx? I set my figure dimensions in the main figure, let's say 8.4 by 6.2 centimeters. The first figure is added as a subplot, and the twinx is added to this subplot. Without the twinx, the figure nicely scales to 8.4 to 6.2 cm as desired. When adding the twinx, the figure expands by at least 1 extra cm.

    • @KimberlyFessel
      @KimberlyFessel  2 роки тому

      You're right - the figure size will be a bit different with the new axis since you have added axis tick markers. One thing that can help a bit is adding a line of code at the end of your figure: plt.tight_layout()

  • @ndeye4599
    @ndeye4599 Рік тому

    Hii mam could you show the samething in a subplot?

  • @Niconico2
    @Niconico2 3 роки тому

    Thanks for this Video, but why the line does not start at the x = 0 | y = 0
    when you define the variable x and y with linespace(0,100,1000), the 0 is included as a x[0] and y[0] but i can not udnestand why when i plot it the line start after a space, i know it is a 0,0 in the chart, but how can i fix this?.
    Is my question clear? haha
    Thx!

    • @Niconico2
      @Niconico2 3 роки тому

      Fixed with
      axes.set_xlim([0,x.max()])
      axes.set_ylim([0,z.max()])
      but i dont know if that is the idea.

  • @felicytatomaszewska
    @felicytatomaszewska 3 роки тому

    Great :)