Searching for Idea

Posted on
Sat Jul 28, 2018 6:49 am
Umtauscher offline
User avatar
Posts: 566
Joined: Oct 03, 2014
Location: Cologne, Germany

Searching for Idea

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
Attachments
Temp Plot intern-minute-S2.png
Plot of my window sensors, below are the open/close lines
Temp Plot intern-minute-S2.png (92.51 KiB) Viewed 2316 times

Posted on
Sat Jul 28, 2018 8:07 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Searching for Idea

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

Posted on
Sat Jul 28, 2018 8:23 am
Umtauscher offline
User avatar
Posts: 566
Joined: Oct 03, 2014
Location: Cologne, Germany

Re: Searching for Idea

Hi Karl,

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

Posted on
Sat Jul 28, 2018 9:40 am
Umtauscher offline
User avatar
Posts: 566
Joined: Oct 03, 2014
Location: Cologne, Germany

Re: Searching for Idea

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.
Attachments
Temp Plot intern-minute-S2.png
Temp Plot intern-minute-S2.png (94.73 KiB) Viewed 2281 times

Posted on
Sat Jul 28, 2018 1:37 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Searching for Idea

Could you post
Print plot config from menu.



Sent from my iPhone using Tapatalk

Posted on
Sat Jul 28, 2018 6:12 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Searching for Idea

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

Posted on
Sat Jul 28, 2018 9:44 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Searching for Idea

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

Posted on
Sun Jul 29, 2018 2:12 am
Umtauscher offline
User avatar
Posts: 566
Joined: Oct 03, 2014
Location: Cologne, Germany

Re: Searching for Idea

Thanks Karl, that really looks great!
Cheers

Wilhelm

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests