X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 31 Jul 2007 08:31 PM by  anon
Number of plot ticks limited to 59, any hack around it?
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
31 Jul 2007 08:31 PM
    I've discovered that the number of ticks on an x-y plot is limited to 59. When I explicitly enter a number greater than this (xticks=60), I received the error: "Value of number of ticks is out of allowed range." If the LABEL_DATE command is used to automatically determined the number of ticks, the plot is simply created with only 59 ticks. Is there any way to hack around this limit and display a plot that has more than 59 ticks? (up to 5000 ticks would be preferable for my application.) Thanks.

    Deleted User



    New Member


    Posts:
    New Member


    --
    31 Jul 2007 08:31 PM
    5000 ticks? How many pixels and pixels/cm are there in your visualization? I cannot imagine how this should look. Nevertheless, 59 "tick intervals" is the maximum that can be created with IDL Direct Graphics keywords. I think your only two options, then, are to: 1) Implement your plot using IDL Direct Graphics. The IDLgrAxis 'MAJOR' property does not have the limit set on it that its X/Y/ZTICKS cousin in IDL Direct Graphics has. 2) Implement your ticks in IDL Direct Graphics with a loop through PLOTS and XYOUTS calls. That is, you would have to abandon using IDL's time-saving axis keywords and you would have to draw the lines and their labels yourself. That is actually not a huge programming job once you figure out the math formula for calculating optimal starting coordinates. James Jones ITT Technical Support
    You are not authorized to post a reply.