X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 28 Jun 2013 02:41 PM by  anon
conflict TICKS / TICKFORMAT
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
28 Jun 2013 02:41 PM
    Hello, Does someone know if there is a way to use [xyz]TICKS and [xyz] TICKFORMAT contemporarily ? e.g. : axis, 1, yaxis=0, /save, yrange=[value1, value2], ystyle=1, ytickformat='(I)', yticks=4, yminor=5, color=140 with this code, my axis tick numbers are not controlled but yticks and instead of the 4-tick wanted I get as many ticks as integers that ytickformat can write. Without ytickformat, I have my 4 ticks but in decimal format. How can I get 4 integer ticks? Many thanks Fabien

    Berangere Casson



    New Member


    Posts:61
    New Member


    --
    01 Jul 2013 08:56 AM
    [xyz]tick controls the number of major tick intervals to draw for the axis. If you want to display 4 major ticks (so 3 intervals) you need to set this value to 3 (not 4). I made a test on IDL 8.2.3 and the commands below give the same result in terms of number of tick marks. plot,findgen(10) axis, 1, yaxis=0, /save, yrange=[0, 10], ystyle=1, yticks=3, $ yminor=5, color=140,ytickformat='(I)' plot,findgen(10) axis, 1, yaxis=0, /save, yrange=[0, 10], ystyle=1, yticks=3, $ yminor=5, color=140
    You are not authorized to post a reply.