How to control number of tics with xTick

User: "NilsWaap"
New Altair Community Member
Updated by NilsWaap
Hello commnity,
I would like to control the number of tics on my x- axis.
 

 I tried the command : set(gca,'XTick',0:t_sim)

and I also tried it with different handles to the axes and to the plot.

 

Best regards,

 

Nils

Find more posts tagged with

Sort by:
1 - 4 of 41
    User: "robertavarela"
    New Altair Community Member
    Updated by robertavarela

    Nils, hello!

     

    The explicit choice for the number of ticks will be available as of the next version (2019.3).

     

    Regards,

     

    Roberta

    User: "NilsWaap"
    New Altair Community Member
    OP
    Updated by NilsWaap

    Nils, hello!

     

    The explicit choice for the number of ticks will be available as of the next version (2019.3).

     

    Regards,

     

    Roberta

    Thanks for you help!

    User: "manoj kandukuri"
    Altair Employee
    Updated by manoj kandukuri

    Hi Nils,

    you can use  'set(gca,'xtick',7)' where 7 is number of ticks you want to have between the limits [0:t_sim]. 

     

    hope this helps :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />

     

    thanks,

    Manoj kandukuri

     

    User: "robertavarela"
    New Altair Community Member
    Updated by robertavarela

    Hello,

     

    My bad! In fact a number like this may be given to set up the #ticks, but what will be out pretty soon is the customization of tick values like Nils perhaps wants - currently these values are not possible to be changed.

     

    Regards,

     

    Roberta