BookmarkSubscribeRSS Feed
Varrelle
Quartz | Level 8

 

Dear SAS community:

 

log gives the following error:

 

NOTE: The log axis cannot support zero or negative values for the axis from plot data or
due to default or assigned BASELINEINTERCEPT value. The axis type will be changed
to LINEAR.

 

I would like to plot z-axis on log scale. How can I fix this? None of my data points = 0.  Please see my embedded code for context.

 

Thanks.

data _3dtest;
x=1; y=1; z=5; output;
x=2; y=1; z=3; output;
x=1; y=2; z=2; output;
x=2; y=2; z=1; output;
run;

proc print data=_3dtest;
run;

proc template;
define statgraph _test_3d;
begingraph;
entrytitle 'Testing z-axis on log scale';
layout overlay3d/cube=false 
zaxisopts=(griddisplay=on type=log
logopts=(base=10 tickintervalstyle=logexpand)) rotate=130;
bihistogram3dparm x=x y=y z=z;
endlayout;
endgraph;
end;
run;

proc sgrender template=_test_3d data=_3dtest; run;
1 REPLY 1
Varrelle
Quartz | Level 8

I looked a bit closer at the documentation -- it appears that log axes are not permissible for this plot type.

 

Does anyone know of a work around?

 

Thanks

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1 reply
  • 1234 views
  • 0 likes
  • 1 in conversation