BookmarkSubscribeRSS Feed
PoulRavn
Obsidian | Level 7

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
2 REPLIES 2
ballardw
Super User

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.

PoulRavn
Obsidian | Level 7

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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 751 views
  • 0 likes
  • 2 in conversation