BookmarkSubscribeRSS Feed
SASSLICK001
Obsidian | Level 7

Hello All


How to forcefully display the tickvalues in SAS GTL!

Im using the following  code but it only displays the following

2 3 6 10 24

xaxisopts=(offsetmin=0.05 offsetmax=0.05 label='Nominal Sampling Time (Hour)' type=linear

        linearopts=(viewmax=25 tickvaluelist=(0 0.25 0.5 1 1.5 2 2.5 3 4 6 8 10 12 24) tickvalueformat=display.))

Thanks

J

4 REPLIES 4
ballardw
Super User

Might help to show a few more details.

What format is associated with your x axis variable?

SASSLICK001
Obsidian | Level 7

proc format;

   value display

      0    = 'PD'

   0.25 = '0.25'

      0.5  = '0.5'

   1    = '1'

   1.5  = '1.5'

   2    = '2'

   2.5  = '2.5'

   3    = '3'

   4    = '4'

   6    = '6'

   8    = '8'

   10    = '10'

   12    = '12'

   24    = '24'

      ;

run;

DanH_sas
SAS Super FREQ

I agree with Ballardw. To give an exact answer, we would need to know things like your SAS version, what plot types are you using, and is there any TYPE set on the axis. The answer will probably come down to specifying TICKVALUEFITPOLICY=NONE in either the LINEAROPTS or the DSICRETEOPTS, depending on some of the factors mentioned. Other fit policies such as STAGGER might also be useful in this case.

Hope this helps!

Dan

SASSLICK001
Obsidian | Level 7

Dan

Type is set linear, I am using SAS 9.3 version!

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 4 replies
  • 972 views
  • 3 likes
  • 3 in conversation