luciozambon / eGiga2m

eGiga2m is a web graphic data viewer.
GNU General Public License v3.0
1 stars 3 forks source link

log view #1

Closed PhilLAL closed 3 years ago

PhilLAL commented 4 years ago

Hi Lucio, I would be interested by a log display for some values, and specifying a min and max Y value like e-5 for 10^-5. I tried clicking on log box but it doesn't seem to work: Y values stay linear Is there anything to do to make it work? Regards

luciozambon commented 4 years ago

Have you tried to use decimal notation i.e. 0.00001 ?

PhilLAL commented 4 years ago

when doing this, the wheel seems to indefinitely turn without displaying anything

luciozambon commented 4 years ago

this looks like a timeout problem you can try to reduce the time interval and you could try to export to JSON format, that is the same content the client asks to the server in order to retrieve data

PhilLAL commented 4 years ago

JSON export works, but as soon as we enter a min or a max value, with log checked, no data is displayed.

luciozambon commented 4 years ago

I did some tests with vacuum pumps data, log scale and max and min set and it worked I try to figure where may be the error the max and min parameters are inserted in the data structur (chartConfig) passed to the chart library (HighCharts)

if (maxYArray[i-1]) chartConfig.yAxis[i-1].max = maxYArray[i-1];

probably the problem is a 0 that in log scale become minus infinity Do you get different results moving the time range so thin that only 2 or 3 samples are left? Can you change slightly the max and min value? You could try a newer version of highcharts

PhilLAL commented 4 years ago

I checked with a serie of 5 values, all are equal to 1.599999990276e-7. As soon as I define a min or max value, display is empty. I made a few tests in case there is a bug in my input or in the code, but result is the same:

screenshot

luciozambon commented 4 years ago

from the "export to png" button in the screenshot I deduce that you use Flot and not HighCharts so I need to debug a different part of the program

PhilLAL commented 4 years ago

Oh yes, I forgot to give this precision, sorry

luciozambon commented 4 years ago

It looks like a bug of Flot js I've tried a newer version without success The only idea I've right now is to inhibit to check at the same time Flot, max min and log; you must leave out one of them

PhilLAL commented 4 years ago

Thank you for your investigation. I would say we cannot use log with at least one definition of max/min.

Did you already wrote a bug report to flot.js ?

PhilLAL commented 3 years ago

Hi @luciozambon just a reminder to check if a bug report has been sent to flot.js

PhilLAL commented 3 years ago

I tried 1.16.3 version but without success for log scale display. My config is probably wrong, here it is:

luciozambon commented 3 years ago

In my setup it works, have you tried to expand the range using max and min?

[image: egiga_chartjs_logY.png]

On Thu, Nov 4, 2021 at 2:52 PM PhilIJC @.***> wrote:

I tried 1.16.3 version but without success for log scale display. My config is probably wrong, here it is:

  • Logarithmic
  • Decimation maxmin number of samples 1000 (default)
  • Select output [x] Chart.js [ ] Flot

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/luciozambon/eGiga2m/issues/1#issuecomment-960977357, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKQB6IPEP2MZL7Q2A5UDKLUKKF2VANCNFSM4TPXFKIQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

PhilLAL commented 3 years ago

I do not see the image, but here is my config and result: config display

luciozambon commented 3 years ago

In your chart equal intervals on Y axes are not equally spaced because it is a logarithmic scale It doesn't look like a logarithmic scale because you have a limited range, less than 2 decades. It should be much more evident with signals ranging 4 or more decades (i.e. the bigger point should be more than 10000 times the smaller one)

On Thu, Nov 4, 2021 at 3:59 PM PhilIJC @.***> wrote:

I do not see the image, but here is my config and result: [image: config] https://camo.githubusercontent.com/8b057ea43d7d43021b3eda6de9e576417714e664b9b15f15fbe2e87f95b991ef/68747470733a2f2f6f776e636c6f75642e6c616c2e696e3270332e66722f696e6465782e7068702f732f53735776574f4f7068646c487334362f646f776e6c6f6164 [image: display] https://camo.githubusercontent.com/95b9790764b4eec8d735ba0191d789385bee9fb4e4219b2cdcbcd94b14694308/68747470733a2f2f6f776e636c6f75642e6c616c2e696e3270332e66722f696e6465782e7068702f732f4b536b3445705871474d71383465552f646f776e6c6f6164

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/luciozambon/eGiga2m/issues/1#issuecomment-961116438, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKQB6MX5DRWIJBYJYLSWTDUKKNTTANCNFSM4TPXFKIQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

PhilLAL commented 3 years ago

Indeed, it seems to work. Thank you