Menu

Number of Ticks - X

2010-04-18
2012-09-07
  • Karel Smetana

    Karel Smetana - 2010-04-18

    I have data where axis x is in date format, but I need to set only 5 tick on
    axis x. When I set 5 tick on the axis x, date format is broken. There is shown
    number. How can I set it to display correctly the date format?

     
  • lbayuk

    lbayuk - 2010-04-18

    No, I don't see this. I can for example use SetXLabelFormat('time', '%H:%M')
    and SetNumXTicks(5) to get a limited number of time-labeled tick marks along
    X. There is nothing in PHPlot that I can see which would change the label
    format based on the tick limit. Can you provide more details, or a code
    example? Or perhaps I misunderstood when you say you need to set only 5 ticks
    on the X axis.

    The results will probably be better if you can use SetXTickIncrement() to set
    the interval to something reasonable for the time period.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.