Line chart - want to show value of last data point

I'm certain this is in an example somewhere but I can't seem to find it. If
someone can just point me to the example I'll take it from there. Thank
you!

I have a line chart. I just want to add text or callout box that shows the
last value in the line.

Thank you very much,
Chris

···


View this message in context: http://old.nabble.com/Line-chart---want-to-show-value-of-last-data-point-tp26505250p26505250.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Use "text" or "annotate", eg

http://matplotlib.sourceforge.net/examples/pylab_examples/annotation_demo.html
http://matplotlib.sourceforge.net/examples/pylab_examples/annotation_demo2.html

Let us know if you need any more help

JDH

···

On Tue, Nov 24, 2009 at 5:38 PM, thumperj <mrthumperwabbit@...287...> wrote:

I'm certain this is in an example somewhere but I can't seem to find it. If
someone can just point me to the example I'll take it from there. Thank
you!

I have a line chart. I just want to add text or callout box that shows the
last value in the line.

John Hunter-4 wrote:

I'm certain this is in an example somewhere but I can't seem to find it.
If
someone can just point me to the example I'll take it from there. Thank
you!

I have a line chart. I just want to add text or callout box that shows
the
last value in the line.

Use "text" or "annotate", eg

http://matplotlib.sourceforge.net/examples/pylab_examples/annotation_demo.html
http://matplotlib.sourceforge.net/examples/pylab_examples/annotation_demo2.html

Let us know if you need any more help

JDH

John, thank you. This was exactly what I needed. I now have annotations
all over the place.

One last question. My graph is updating constantly and I need to move
annotation around to highlite certain points as they appear. I can add new
annotations easily enough and they stick to the place where I put them. As
more data is added to the graph, the old annotations become irrelevant and I
need to remove them. How do I delete the ones I don't need anymore from the
graph? I could also just just modify the properties of the existing ones,
both the text and location, if I knew how to get at them, so to speak.

Can you point me the right way?

···

On Tue, Nov 24, 2009 at 5:38 PM, thumperj <mrthumperwabbit@...287...> > wrote:


View this message in context: http://old.nabble.com/Line-chart---want-to-show-value-of-last-data-point-tp26505250p26532286.html
Sent from the matplotlib - users mailing list archive at Nabble.com.