Ask Your Question

Revision history [back]

(Posting as an answer rather than comment, for the formatting.) Here's how in SageMathCloud, which fully supports SageTex.

  1. Create a LaTeX document in SageMathCloud.

  2. Replace the contents by the following, and click save. Wait a little for sage/latex to automatically run. Done.

    \documentclass{article} \title{Sagetex Plot Example} \author{William Stein} \usepackage{sagetex} \begin{document} \maketitle

    \sageplot[width=.7\textwidth]{point([(0,0), (1,5), (5,2), (2,10), (10,4), (4,20), (20,8), (8,17), (17,16), (16,11), (11,9), (9,22), (22,18), (18,21), (21,13), (13,19), (19,3), (3,15), (15,6), (6,7), (7,12), (12,14), (14,1)])}

    \end{document}