Page 1 of 1

graph of monthly vars w/decimal year x-axis

Posted: Wed Aug 18, 2004 7:16 pm
by mike
I tried to do this but the graph came up empty when I tried to use decimal year as the graph's x-axis; it works fine using time (monthly ) as x-axis ?????? how can I graph monthly variables with x-axis showing 1960 .... 1970 .... 1980 ....

Posted: Thu Aug 19, 2004 7:31 am
by Administrator
The attached zip contains a model. I have calculated decimal year in two ways (using a time base function and calculating as a normal parameter).

There is also a custom graph within this model that has the x axis set to be "Decimal Year".

You can also change the time base in the vensim control panel, that way all graphs will show the decimal year.

Let us know how you get on.

Tony.

thank you; but I ran into a problem downloading

Posted: Fri Aug 20, 2004 5:40 pm
by mike
WinZip said "Cannot open file; it does not appear to be a valid archive; if you downloaded the file; try again " or something to that effect. Never encountered this before ? I tried downloading again to no avail. Regardless ; appreciate the guidance. If I can help; let me know. Regards, Mike

[Edited on 8-20-2004 by mike]

Posted: Fri Aug 20, 2004 6:26 pm
by Wilson
Create a new variable called YEAR, which has the equation:

YEAR = TIMEBASE(TIME, 0.08333)

You will then be able to select the X axis time unit as months or years from the control panel icon on the Time Axis tab.

You might also need to change INITIAL TIME to reflect the starting year equivalent.

Hope this helps

thank you

Posted: Fri Aug 20, 2004 7:01 pm
by mike
I forgot about the Control Panel setting. Appreciate the guidance! Good day. Mike