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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

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