line labels?

Is there a way to programmatically write line labels, as in the
attached image? If it doesn't go through the list, basically I want a
label at the end of each of 10 or so lines in a plot.

Tx

fig_w_labels.jpg

Hi,
I’d do it the quick way:

str = […] # list of strings for the labels.
x[:] # abcisse vector
y[i][:] # list of ordinate vector (y[i][:] contains the data for the ith line)

for i in range(10):
text(x[-1], y[i][-1], str[i], horizontalalignement=‘left’)

David

2006/6/7, Webb Sprague <webb.sprague@…287…

···

:
Is there a way to programmatically write line labels, as in the
attached image? If it doesn’t go through the list, basically I want a

label at the end of each of 10 or so lines in a plot.

Tx


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users