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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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