Ask Your Question

Revision history [back]

For graphing, associating custom x-values with each Y?

Hello, all. This is my first time posting here, as I am new with Sage and have only started learning it this semester for a math class. So far I really love it.

I'm pretty sure this is a very basic question, but please bear with me. I have a set of Y-values in a given sequence that I would like to graph, which would normally not be a problem with "finance.TimeSeries," but I want to associate a custom set of X-values with the Y-values to be used in the graphing, and not x=o up to however far away my last Y-value is. For ex., I have Y's = [1, 2, 4, 6], and would like to graph [(3, 1), (2, 2), (12, 4), (5, 6)], instead of [(0, 1), (1, 2), (2, 4), (3, 6)].

Thanks to any replies in advance.