# increase length of a \node option and change its color

I would like to increase the vertical length of a node in a way that it can also stretch outside of my image. Moreover, I need to choose different color for each line.

\documentclass{article}
\usepackage{graphicx} % more modern
\usepackage{tikz}
\usepackage{pgfplots}

\begin{document}
\begin{figure}
\vspace{0.5cm}
\centering
\begin {tikzpicture}
\begin {axis}[
title=LastFM,
width=\textwidth,
height=5cm,
grid=both,
ylabel=Distance,
xlabel=Days,
]
\node[coordinate,pin=above:{10}] at (axis cs:16,128.241958812239) {};
\node[coordinate,pin=above:{10}] at (axis cs:37,117.524465538032) {};
\end{axis}
\end{tikzpicture}
\label{fig}
\caption{My Results}
\end{figure}
\end{document}


Result:

-
Thanks buddy for your reply! However, I'm afraid to tell you that clip=false didn't change anything! Regarding my second question, I meant the two vertical lines that I indicated with label "10". I want each vertical lines to have different color, for instance the first vertical line in time 16 would have a green color and the second one in time 37 has a blue color and so on. If you take a quick glance at the following paper in page 2, I bet you'll get what I mean with all these words! helpful link! –  Yaser Kenesh Jan 27 '13 at 11:25

You can use different coordinate systems such as axis cs, axis coordinate cs: etc. Please check the manual for even more systems. Here is a slightly overkill solution to demonstrate different options. To be able to extend the drawing area the clipping action of the axes must be turned off for this solution via clip=false.

\documentclass{article}
\usepackage{pgfplots}

\begin{document}
\begin{figure}
\centering
\begin {tikzpicture}
\begin {axis}[
title=LastFM,
width=\textwidth,
height=5cm,
grid=both,
ylabel=Distance,
xlabel=Days,
clip=false
]
\draw[red,shorten <=-5mm] ({axis cs:16,120} |- {axis description cs:0,0}) -- ([yshift=5mm]{{axis cs:16,120} |- {axis description cs:0,1}}) node[above] {$10$};
\draw[green,shorten <=-5mm] ({axis cs:37,120} |- {axis description cs:0,0}) -- ([yshift=5mm]{{axis cs:37,120} |- {axis description cs:0,1}}) node[above] {$10$};