Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Plotting number on graph
#1
Hi,

Below is a sample code which I plotted the graph, however I do not know how to plot number point on the graph.

Can anyone kindly advice? Thanks.

P.S. I research online and hardly see people plot number onto graph. Is there a reason?

my_data.plot(x='col1',y='col2',kind='line')
Reply
#2
Is this about Pandas and DataFrame's method .plot? Since DataFrame's plot method relies on
matplotlib, you need to use direct approach and add annotations to each point separately. Take a look at the following answer.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation Error when plotting a graph. Oshadha 3 3,640 Mar-14-2022, 06:47 PM
Last Post: deanhystad
  Plotting simple graph (AttributeError) Laplace12 0 1,369 Jul-28-2021, 10:58 AM
Last Post: Laplace12
  Graph not plotting Hass 1 1,954 Sep-14-2019, 09:52 AM
Last Post: luoheng
  Graph Plotting Help Talch 1 2,232 Aug-16-2018, 10:29 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020