comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Plot with X-Axis ticks as string
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Plot with X-Axis ticks as string [message #92622] Tue, 26 January 2016 04:58 Go to previous message
Kai is currently offline  Kai
Messages: 1
Registered: January 2016
Junior Member
Hello everyone!

I'd like to plot monthly values of a parameter. The months go from Arpil to November. How can I implement ticks at the x-axis which are simple strings, e.g. 'Apr', 'May' .....

So I plotted something and I tried to add a fitted x-axis to the plot as follows:

myplot_c1 = PLOT(parameters, NAME='Cluster',COLOR='red',XTEXT_COLOR='white', YSTYLE=2, XSTYLE=3, YTITLE='Parameter',MIN_VALUE=-1, MAX_VALUE=1, XTICKINTERVAL=1,YRANGE=[0.15,0.5])

xax = AXIS('X',LOCATION=[0,0.15],TICKVALUES=['Mar','Apr','May','Ju n','Jul','Aug','Sep','Oct'], MINOR=1, MAJOR=-1, TICKLEN=0.015,TICKFONT_SIZE=11,TICKINTERVAL=1)

Somehow the monthly ticks just won't appear.

Any suggestions?

Cheers,
Kai
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: assigning integer and string value to same variable one by one
Next Topic: Nice bridges

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:31:30 PDT 2025

Total time taken to generate the page: 0.00403 seconds