Page 1 of 1

Searching for Idea

PostPosted: Sat Jul 28, 2018 6:49 am
by Umtauscher
Hi Karl,

after a long time I finally reactivated you plugin. Thanks again for that!

It took me a long time to finally get it to work again - I had to manually delete the prefences file.

What I am working on at the moemnt is a polt of the temperatures on my windows, because the all have a temperatur sensor.
What I would like to add now, are lines that show, if a specific window is open or closed.
The average of the on/off state is the only thing I can get to work.
What bugs me is the sligt ramp tha I get during the time span in which the window is opened or closed. I would rather like to have a simple line, when it's open and noting when it's closed.
Is there any means to accomplish that? (I have a plot attached so you can see what I mean)
TIA
Wilhelm

Re: Searching for Idea

PostPosted: Sat Jul 28, 2018 8:07 am
by kw123
1. use measurement MAX not average. eg if the switch goes non/ off in the middle of the 5 minutes it will show 0.5 as average. using max it will show 1 or 0.
2. set Y right from to to 0.001 to 5, The 0.001 will cut off the line going down as the next point is out of plot range
4. for the lines: put the ON/off data lines to the the right scale, use solid line

then you should see interrupted lines(line when on, no line when off) roughly at 10% of the max scale ( if you use 0.0001:5 for y from to they would show up at ~ 20%)

if you have several on/off lines you can use multiply for each and set factor to 0. 8 0.9 1.0 1.1 etc they should then show up a little bit separate

hope that helps

Karl

Re: Searching for Idea

PostPosted: Sat Jul 28, 2018 8:23 am
by Umtauscher
Hi Karl,

thanks a lot. I will try that.
Have a nice weekend!
Wilhelm

Re: Searching for Idea

PostPosted: Sat Jul 28, 2018 9:40 am
by Umtauscher
unfortunately it seems that the plotting outside the scale doesn't suppress the vertical lines.
I have logged the data, they go from 0 to 1 or 0 to 1.1
I still have the vertical lines and the don't seem to be exactly vertical.

Re: Searching for Idea

PostPosted: Sat Jul 28, 2018 1:37 pm
by kw123
Could you post
Print plot config from menu.



Sent from my iPhone using Tapatalk

Searching for Idea

PostPosted: Sat Jul 28, 2018 6:12 pm
by kw123
ok found it ..
it works in gnu plot
in matplot i switched it off. now I need to understand why..

give a a minute to check why I did it :
Code: Select all
                                                        if theValue>  yMaxR or theValue <yMinR:
                                                            #theValue = None
                                                            theValue = max(yMinR,min(yMaxR,theValue))
None = do not show, is now the min/max point ..

Karl

Re: Searching for Idea

PostPosted: Sat Jul 28, 2018 9:44 pm
by kw123
ok posted a new version .48 (plugin store and GitHub)

it will suppress the line going from eg 1 to 0 with eg parameters
ymin = 0.001, ymax = 10 or 4 ...


but will draw lines where the yvalue is < -3.0 (30% below ymin) assuming that these are real values.

that should take care of the suppress line feature but would allow normal plot to show a line that goes well beyond y max/min

Karl

Re: Searching for Idea

PostPosted: Sun Jul 29, 2018 2:12 am
by Umtauscher
Thanks Karl, that really looks great!
Cheers

Wilhelm