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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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.