Desktop productivity for business analysts and programmers

Erro in axis statement in SAS EG 43?

Reply
Frequent Contributor
Posts: 79

Erro in axis statement in SAS EG 43?

Hi there, recetly I tried to plot data from electrochemical experiments where the y-axis was haveing datavalues in currents with the units amperes. However as the values themselves were nA the representation was as 1.0e-9 and the like. I tried to scale the y-axis using an axis statement such as:

axis2 order=-1E-8 to 1E-8 by 0.2E-8

but much to surprise this produces an error in the output.

A test program to show it in EG43 is attached together with a jpg from the screen showing the faulty graph when using the axis statement.

Regards

Poul


error in EG43_1 with error.jpg
Attachment
Super User
Posts: 11,134

Re: Erro in axis statement in SAS EG 43?

your example code shows: 

axis2 order=-1E-8 to 1E-8 by 1E-8; The by step works as stated generating 3 ticks, 2 at extremes and on at 0.

axis2 order=-1E-8 to 1E-8 by 0.2E-8; Is incorrect as it uses malformed scientific notation.

try 2E-9 for the step.

Frequent Contributor
Posts: 79

Re: Erro in axis statement in SAS EG 43?

Thanks for adresser this. I am sorry for the confusion between text and pciture. However the use of

axis2 order=-1E-8 to 1E-8 by 2E-9;

DOES produce a faulty graph in EG43. See attached program and snapshot below:

Regards Poulerror in EG43 using axis statement.jpg

Attachment
Ask a Question
Discussion stats
  • 2 replies
  • 146 views
  • 0 likes
  • 2 in conversation