简体   繁体   中英

wxMathPlot with x-axis in milliseconds?

I'm working with Sensor HID device and wxWidgets host application respectively.

Process Flow:

1.Sensor sends float value with time-stamp(in milliseconds) for every few milliseconds to seconds.

2.Host application reads the data and represents it in a chart (x-axis as time and y-axis as float value).

I'm using the mpFXYVector and mpScaleX with mpX_TIME.

If the time-stamp is in milliseconds, x-axis time ticks are not coming properly.

Kindly help me to resolve this issue.

Regards,

Rajan.M

The issue is I've passed the time value in milliseconds directly instead of converting it to seconds!

Eg 45678 milliseconds to 45.678 seconds

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM