# HG changeset patch
# User Sami Losoi <sami.losoi@gmail.com>
# Date 1262213154 -7200
# Node ID 31a14235a0f451c9babf4e7566ffcd0fa88f40b2
# Parent  cd7b6745ea4c368b731f11bf6bf399d70f8b8a54
[mq]: plot.patch

diff --git a/sage/plot/plot.py b/sage/plot/plot.py
--- a/sage/plot/plot.py
+++ b/sage/plot/plot.py
@@ -436,8 +436,42 @@
         self.__tick_label_color = (0, 0, 0)
         self.__axes_width = 0.8
         self.__objects = []
+      	self.__text = ("Hello", (0,0,0))
         self._extra_kwds = {}
 
+    def text(self, label):
+        """
+        Set text next to plot
+		
+        INPUT:
+		
+        - ``word`` - a string
+
+        EXAMPLES	
+
+        Put text to a plot
+
+        sage: var('x'); f = x**2; p = plot(f,x)
+        sage: p.text("hello", (0,0,0))
+		
+        """
+        text = str(label)
+        self.__text = label
+
+    def get_text(self):	
+        """
+        Get the current text.
+        
+        OUTPUT: either None if the text has not been set or string.
+        
+        EXAMPLES::
+
+        sage: p.get_text()
+        "eggs"
+	
+        """	
+        return self.__text
+
     def set_aspect_ratio(self, ratio):
         """
         Set the aspect ratio.
