how to add a % suffix in the axe's label

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

melamel
Posts: 30
Joined: Tue May 10, 2016 3:49 am

how to add a % suffix in the axe's label

Postby melamel » Thu May 12, 2016 8:00 am

Hi everyone! :)

I want to add % in the left axe's label and I used the capture command to have an idea about how to do it, it gave me the following command:

Code: Select all

my_graph.axis(l) suffix='%'
But I can't use this command in a program (because eviews interpretes what comes after the (') as a comment) and even if I replace the single quotes (') by (") it doesn't work.

Can you please help me ?

EViews Jason
EViews Developer
Posts: 870
Joined: Tue Sep 16, 2008 3:50 pm

Re: how to add a % suffix in the axe's label

Postby EViews Jason » Thu May 12, 2016 11:24 am

Use:

Code: Select all

mygraph.axis(l) format(suffix=%)


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests