ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 05 Sep 2016 14:23:47 -0500How to make a 2D chart and use letters for labeling?http://ask.sagemath.org/question/34719/how-to-make-a-2d-chart-and-use-letters-for-labeling/ Hello,
I am new at using sage and I would like to know how to make a 2D chart and use letters for labeling?
The y axis is going to have numbers (wage), but the x axis needs to have months.
Thank youSun, 04 Sep 2016 17:32:31 -0500http://ask.sagemath.org/question/34719/how-to-make-a-2d-chart-and-use-letters-for-labeling/Answer by paulmasson for <p>Hello,</p>
<p>I am new at using sage and I would like to know how to make a 2D chart and use letters for labeling?
The y axis is going to have numbers (wage), but the x axis needs to have months.</p>
<p>Thank you</p>
http://ask.sagemath.org/question/34719/how-to-make-a-2d-chart-and-use-letters-for-labeling/?answer=34732#post-id-34732Here's one way to get what you want:
data = [[1,15],[2,19],[3,18],[4,22],[5,15]]
list_plot(data, plotjoined=True, ticks=[[1,2,3,4,5],1],
tick_formatter=[['Jan','Feb','Mar','Apr','May'],1])
And here's a live [example](http://sagecell.sagemath.org/?z=eJxLSSxJVLBViI421DE0jdWJNtIxtARSxjqGFkDKRMfICEiZguRieblyMotL4gty8ks0UoDadBRAzKz8zLzUFNuQotJUHYWSzOTsYluQYUY6xjomOkATDWN1eLkU4ACkIj4tvyg3saQktQioVN0rMU9dR90tNQlI-iYWAUnHgiIwu1IdpF0TAO76Loc=&lang=sage).Mon, 05 Sep 2016 14:23:47 -0500http://ask.sagemath.org/question/34719/how-to-make-a-2d-chart-and-use-letters-for-labeling/?answer=34732#post-id-34732