Matplotlib Cursor -- How to Add a Cursor and Annotate Your Plot

Matplotlib Cursor -- How to Add a Cursor and Annotate Your Plot

Finxter

3 года назад

11,179 Просмотров

This article explains how to insert a cursor to your plot, how to customize it and how to store the values that you selected on the plot window. In lots of situations we may want to select and store the coordinates of specific points in our graph; is it just for assessing their value or because we may want to use some specific values for successive processing of the data. As you will see, this is not a difficult task, but it will add a lot of value to your plots. We will also see how to pop in a small frame containing the coordinates of the selected point, every time we click on it.



Full Tutorial: https://blog.finxter.com/matplotlib-cursor/
Email Academy: https://blog.finxter.com/email-academy/

►► Do you want to thrive as a self-employed Python freelancer controlling your own time, income, and work schedule?
Check out our Python freelancer course: https://blog.finxter.com/become-python-freelancer-course/

⁉️ Do you have a question? Leave a comment and we will answer as soon as possible!

⏰ Subscribe to the channel, never miss a new video!
►► https://www.youtube.com/channel/UCRlWL2q80BnI4sA5ISrz9uw

🐍 Did you know? Finxter is one of the top 10 Python Blogs on the internet!

• Some articles you should read: https://blog.finxter.com/category/computer-science/
• How many of these tricky Python puzzles can you solve? https://www.finxter.com

🚀 More about Python & Freelancing:
• Finxter Email Academy (100% FREE): https://blog.finxter.com/email-academy/
• Finxter Python Freelancer Webinar: https://blog.finxter.com/webinar-freelancer/
• Leaving the Rat Race with Python (Book): https://blog.finxter.com/book-leaving-the-rat-race-with-python/

#finxter #python

Do you want to thrive as a self-employed Python freelancer controlling your own time, income, and work schedule? Check out our Python freelancer resources:

Finxter Python Freelancer Course:
https://blog.finxter.com/become-python-freelancer-course/

Finxter Python Freelancer Webinar:
https://blog.finxter.com/webinar-freelancer/

Leaving the Rat Race with Python (Book):
https://blog.finxter.com/book-leaving-the-rat-race-with-python/

Тэги:

#Python
Ссылки и html тэги не поддерживаются


Комментарии:

Rama Morva
Rama Morva - 24.09.2023 20:55

Is there a way to enable a zoom in and zoom out event on these plots?
And thank you for this great video

Ответить
Srihari vaila
Srihari vaila - 19.06.2022 14:32

Hey I have a question
If I click on the graph that particular coordinates of graph has to be stored in a variable how can I do that.

Ответить
Anthony Chung
Anthony Chung - 12.08.2021 17:14

I did the exactly same code and plot , but i coundnt get the cursor on Co Lab ? I got the same exp curve only

Ответить
Operation Darth Storm
Operation Darth Storm - 30.07.2021 19:40

i tried this in jupyter notebook and it did nothing. do you know why?

Ответить
ThomasHaberkorn
ThomasHaberkorn - 01.04.2021 11:35

great series of videos! One more to round it up: Is it possible to create a 'data cursor' to display like CSV values near the mouse location? would be a very useful add-on in my opinion. thanks

Ответить
mb7 b
mb7 b - 19.01.2021 16:25

Thank you

Ответить