I've search the manuals thouroughly but cannont find out how to instruct eviews (v.7) via code to lable the x-axis in the format shown in the attached file
currently i'm using this code
s02cuc01.datelabel format(mm) interval(m,1)
which only gives me the months as 01, 02, 03 etc... and does not place the year center and below the axis
Date Formats
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
Date Formats
- Attachments
-
- test.pdf
- (10.67 KiB) Downloaded 361 times
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Date Formats
Not sure on the year part, but the format to get month names is format("MON")
Re: Date Formats
thanks Gareth - I needed the "" (!?) guess somethings are meant to be read literally
but the year things is still complexing me more so because of the following.
when done manually, the way the year value is placed below the bottom axis is to activate the "two row date label" option (check box at the bottom of the axis dialogue box)
now i found the code for that - called "duallevel" but it doesn't seem to work. The check box is checked (i discover) but greyed out because when i specify the "Mon" format E-views seems to understand that this is a custom date format and thus disables the two row date label option...
here's my code
s02cuc01.axis(b) duallevel
s02cuc01.datelabel format("Mon") interval(m,1)
thanks for your help
wes
p.s. apologies if my questions are a little too specific ~ i use eview for both analysis and presentation.
but the year things is still complexing me more so because of the following.
when done manually, the way the year value is placed below the bottom axis is to activate the "two row date label" option (check box at the bottom of the axis dialogue box)
now i found the code for that - called "duallevel" but it doesn't seem to work. The check box is checked (i discover) but greyed out because when i specify the "Mon" format E-views seems to understand that this is a custom date format and thus disables the two row date label option...
here's my code
s02cuc01.axis(b) duallevel
s02cuc01.datelabel format("Mon") interval(m,1)
thanks for your help
wes
p.s. apologies if my questions are a little too specific ~ i use eview for both analysis and presentation.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Date Formats
Let us get back to you
-
EViews Pamela
- EViews Developer
- Posts: 54
- Joined: Wed Sep 17, 2008 2:52 pm
Re: Date Formats
You're right - EViews interprets your date format as Custom because it has come through the command line, and therefore disables the dual level checkbox. We will improve this, so that EViews interprets the date format you entered and determines which item(s) in the dialog it is equivalent to. If it is an understandable format, it will not be considered custom, and the checkbox should remain enabled.
In the meantime (and possibly for an even better solution), I'd suggest that you experiment with changing your global settings. The same dialog page in the global settings (Options/Graphic defaults/Axes & Scaling/Obs/Date axis) offers a "Date Formats for Auto Labeling" button. If you set your month settings here to "Mon", your graphs may be automatically generated with your desired labels.
In the meantime (and possibly for an even better solution), I'd suggest that you experiment with changing your global settings. The same dialog page in the global settings (Options/Graphic defaults/Axes & Scaling/Obs/Date axis) offers a "Date Formats for Auto Labeling" button. If you set your month settings here to "Mon", your graphs may be automatically generated with your desired labels.
Re: Date Formats
Thank you Pamela :O)
the finalized outputs of my e-views work are formatted according to predefined templates i've created, so i'll take your advice and change the global defaults on those templates and call it a day !
cheers
Wes
the finalized outputs of my e-views work are formatted according to predefined templates i've created, so i'll take your advice and change the global defaults on those templates and call it a day !
cheers
Wes
Who is online
Users browsing this forum: No registered users and 1 guest
