Matplotlib Plugin for Indigo 7 - New!

Posted on
Wed Nov 23, 2016 1:22 pm
Frakke offline
Posts: 97
Joined: May 05, 2016

Re: Matplotlib Plugin for Indigo 7 - New!

DaveL17 wrote:
@Frakke: Sorry, it was a long day yesterday.

Do you have a CSV Engine data element called 'None' that appears in the drop-down list? If so, please select and delete that element. Hopefully, that will get you going.

Dave


Hi Dave,

No problem, I did that, deleted the "none" and now i'm getting this error:
Started plugin "Matplotlib 0.2.00"
Matplotlib Critical Error new device: Check path to CSV file (max() arg is an empty sequence)
Matplotlib Critical Error ValueError: ordinal must be >= 1

See image:
Attachments
Screen Shot 2016-11-23 at 20.22.17.png
Screen Shot 2016-11-23 at 20.22.17.png (256.21 KiB) Viewed 3536 times

Posted on
Wed Nov 23, 2016 1:33 pm
richo offline
Posts: 158
Joined: Nov 25, 2014
Location: Pomorskie, Poland

Re: Matplotlib Plugin for Indigo 7 - New!

Hi,

to me it looks like there is a problem with chart definition device "new device". Check if you have selected proper CSV file in definition of i.ex. line 1 - Data source.
Attachments
Screen Shot 2016-11-23 at 20.29.52.png
Screen Shot 2016-11-23 at 20.29.52.png (129.65 KiB) Viewed 3532 times

Ryszard

Posted on
Wed Nov 23, 2016 1:38 pm
Frakke offline
Posts: 97
Joined: May 05, 2016

Re: Matplotlib Plugin for Indigo 7 - New!

richo wrote:
Hi,

to me it looks like there is a problem with chart definition device "new device". Check if you have selected proper CSV file in definition of i.ex. line 1 - Data source.


Indeed! That fixed it, thanks!

Posted on
Wed Nov 23, 2016 1:57 pm
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Matplotlib Plugin for Indigo 7 - New!

Glad to hear that you've found a solution!

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Wed Nov 23, 2016 2:02 pm
Frakke offline
Posts: 97
Joined: May 05, 2016

Re: Matplotlib Plugin for Indigo 7 - New!

Is there any way that I can say for example: every hour, or every half hour instead of "days"?

Regards
Attachments
PlotLuminanceBureau.png
PlotLuminanceBureau.png (15.95 KiB) Viewed 3514 times

Posted on
Wed Nov 23, 2016 2:14 pm
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Matplotlib Plugin for Indigo 7 - New!

Under the X Axis options for your chart, select a scale of Hourly and then set the Format to your linking.

I hadn't considered a half-hourly, but I will add it to the list.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Wed Nov 23, 2016 2:22 pm
Frakke offline
Posts: 97
Joined: May 05, 2016

Re: Matplotlib Plugin for Indigo 7 - New!

DaveL17 wrote:
Under the X Axis options for your chart, select a scale of Hourly and then set the Format to your liking.

I hadn't considered a half-hourly, but I will add it to the list.


Okay, I'll already set it up like that, but maybe there isn't enough data yet :)

Posted on
Wed Nov 23, 2016 3:00 pm
Frakke offline
Posts: 97
Joined: May 05, 2016

Re: Matplotlib Plugin for Indigo 7 - New!

When is data pushed into the csv file? It seems to be every 15 minutes? Is there any way to change this, when for example the luminance or temperature of a device changes --> put it into the csv file?

Regards

Posted on
Thu Nov 24, 2016 4:41 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Matplotlib Plugin for Indigo 7 - New!

Frakke wrote:
When is data pushed into the csv file? It seems to be every 15 minutes? Is there any way to change this, when for example the luminance or temperature of a device changes --> put it into the csv file?

Regards

Within the plugin configuration menu, select the Refresh Interval drop-down list. You can set the interval between once per minute and once per day. This controls both the frequency that data are saved and the frequency of chart refreshes.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Fri Nov 25, 2016 5:53 am
Woetjes offline
Posts: 117
Joined: Apr 04, 2016
Location: Belgium

Re: Matplotlib Plugin for Indigo 7 - New!

A request for some enhancements :)

    Option to remove the rectangle (or change the color) around the graph
    Option to rename the legend names
    Option to specify value interval for X and Y axis
    Now, if you change a item list in the CSV engine, it will create a new CSV file and you lose all the previously created values. Maybe a possibility to change the name of the CVS file to the new defined name? Then we just need to change the file name into chart itself.

Great plugin btw - love it.

Posted on
Fri Nov 25, 2016 9:59 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Matplotlib Plugin for Indigo 7 - New!

Woetjes wrote:
A request for some enhancements :)

    Option to remove the rectangle (or change the color) around the graph
    Option to rename the legend names
    Option to specify value interval for X and Y axis
    Now, if you change a item list in the CSV engine, it will create a new CSV file and you lose all the previously created values. Maybe a possibility to change the name of the CVS file to the new defined name? Then we just need to change the file name into chart itself.

Great plugin btw - love it.

Glad to hear that you're finding the plugin useful, and I appreciate the suggestions!

Option to remove the rectangle (or change the color) around the graph
Presently, you can change the color - please see the Spine Color option in the plugin preferences. I don't know if I can make it transparent (I'll look into that at some point); however, if you set the spine color to be the same color as the background color or canvas color, you will effectively make it invisible. This will leave the tick marks unchanged so you'll have to change those too.

Option to rename the legend names
This is a good idea. Presently, the legend name comes from the header of the CSV file. The hacky solution is to edit the CSV file with a text editor and change the header text. The longer term solution is to add a setting to override the legend name. I'll add it to the list.

Option to specify value interval for X and Y axis
The X axis has a value interval setting--I presume you're looking for an interval that's not available? It's tricky with the X axis because the data are time-based and the interval requires a code segment that's not particularly intuitive. The Y axis interval is something that would be more straightforward and I'll add that to the list. At some point I need to think about a chart option where the X axis is not time based.

Maybe a possibility to change the name of the CVS file to the new defined name?
I'll look into the possibility of changing the filename within the CSV engine dialog. The hacky solution is to rename the CSV file in finder and then change the name in the CSV engine afterwards (at least this should work--I've haven't tried it.)

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sat Nov 26, 2016 11:08 am
Woetjes offline
Posts: 117
Joined: Apr 04, 2016
Location: Belgium

Re: Matplotlib Plugin for Indigo 7 - New!

Thanks Dave - didn't noticed you could change the spine color, that did the trick :)
Now when I wanted to change the 'tick' color to a custom hex value, I got the error message below:

Code: Select all
Traceback (most recent call last):
  File "plugin.py", line 677, in refreshTheCharts
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/__init__.py", line 790, in __setitem__
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/rcsetup.py", line 251, in validate_color
ValueError: custom does not look like a color arg

Any idea?

Thanks!

Posted on
Sat Nov 26, 2016 2:09 pm
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Matplotlib Plugin for Indigo 7 - New!

Woetjes wrote:
Thanks Dave - didn't noticed you could change the spine color, that did the trick :)
Now when I wanted to change the 'tick' color to a custom hex value, I got the error message below:

Code: Select all
Traceback (most recent call last):
  File "plugin.py", line 677, in refreshTheCharts
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/__init__.py", line 790, in __setitem__
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/rcsetup.py", line 251, in validate_color
ValueError: custom does not look like a color arg

Any idea?

Thanks!

Cool beans on the spines. What value are you trying to use for the ticks?

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sun Nov 27, 2016 3:26 am
Woetjes offline
Posts: 117
Joined: Apr 04, 2016
Location: Belgium

Re: Matplotlib Plugin for Indigo 7 - New!

Hi Dave - hex value #2b6866

Posted on
Sun Nov 27, 2016 6:46 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Matplotlib Plugin for Indigo 7 - New!

Woetjes wrote:
Hi Dave - hex value #2b6866

This was my bad. In addition to tick color, there were a couple others. I've uploaded a new version of the plugin that should take care of it.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Page 4 of 19 1, 2, 3, 4, 5, 6, 7 ... 19

Who is online

Users browsing this forum: No registered users and 1 guest