Skip to content

Commit

Permalink
Add documentation for text
Browse files Browse the repository at this point in the history
  • Loading branch information
mvkma committed May 12, 2015
1 parent 2974005 commit b6fffd5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions doc/fun/text.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
text
====

.. function:: text(x::Real, y::Real, s::String; kvs...)

Add the text in ``s`` to the current plot at coordinates ``x`` and ``y``.

Example
-------

.. winston::

fplot(x -> x^2, [-4, 4])
text(-2, 10, "Hello World!")

0 comments on commit b6fffd5

Please sign in to comment.