epezent / implot

Immediate Mode Plotting
MIT License
4.65k stars 517 forks source link

Option to exclude weekends #403

Open tucna opened 2 years ago

tucna commented 2 years ago

I am using your wonderful library for my stock monitoring application and facing an unpleasant issue. For data which are quite dense, such as ticker every 5 minutes, there are huge gaps for weekends (when market is closed).

image

It would be great to have an option to plot them excluding empty values on x-axis.

image

I tried several things to emulate this, but nothing worked smoothly. Such as add an index to my data and plot based on that, which fixed the drawing issue but brought inconsistency with the x axis of course. I tried to feed my ticker labels according to correct date but there was in issue that custom tickers labels does not change with respect to zoom (which is doable I guess?). I also experimented with custom functions.

So, is it possible to do this somehow? If not, can it be considered as a feature request?

ozlb commented 2 years ago

https://github.com/epezent/implot/issues/156#issuecomment-741439860

tucna commented 2 years ago

#156 (comment)

Thank you but this doesn't seem related to ImPlot.

However, I can see from the thread that this feature is currently not supported.