BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Snehal
Obsidian | Level 7

I am using log axis along with GPLOT by using axis statement options logbase=10  logstyle=expand. I would like to control the Y scale displayed as 1 10 100 1000 10000. I am trying to use order=(1 10 100 1000 10000) , but this is generating multiple warnings like below

 

WARNING: The intervals on the axis labeled "Analysis Value" are not evenly spaced.

WARNING: No minor tick marks will be drawn because major tick increments have been specified in uneven or unordered intervals.

 

How can I control the scale here.

 

update:

 

order= worked.

1 ACCEPTED SOLUTION

Accepted Solutions
Snehal
Obsidian | Level 7
4 REPLIES 4
PeterClemmensen
Tourmaline | Level 20

Are you restricted to using PROC GPLOT or is PROC SGPLOT acceptable?

Snehal
Obsidian | Level 7

GPLOT only, updating existing code

ballardw
Super User

@Snehal wrote:

I am using log axis along with GPLOT by using axis statement options logbase=10  logstyle=expand. I would like to control the Y scale displayed as 1 10 100 1000 10000. I am trying to use order=(1 10 100 1000 10000) , but this is generating multiple warnings like below

 

WARNING: The intervals on the axis labeled "Analysis Value" are not evenly spaced.

WARNING: No minor tick marks will be drawn because major tick increments have been specified in uneven or unordered intervals.

 

How can I control the scale here.

 

update:

 

order= worked.


The important question is "Did the graph get created as needed." Those warnings are exactly that, warnings. Sometimes people do not realize that default behavior for displayed tick marks will not have a uniform spacing. You get the exact same warning if using a date value and an order statement like order = ('01Jan2018'd to '01Dec2018'd by month) because months have different numbers of days and the ticks are not the same numeric interval apart.

 

With complete code such as the complete Axis, symbol and or pattern definitions and the Gplot code we might have other suggestions.

 

Though with most of the enhancements coming in the SG graphics procedures plus the control available in the Graphics Template Language that part of base SAS now it may be time to consider changing procedures.

Snehal
Obsidian | Level 7

order= worked

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
  • 4 replies
  • 1695 views
  • 1 like
  • 3 in conversation