Page 4 of 19

Re: Matplotlib Plugin for Indigo 7 - New!

PostPosted: Wed Nov 23, 2016 1:22 pm
by Frakke
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:

Re: Matplotlib Plugin for Indigo 7 - New!

PostPosted: Wed Nov 23, 2016 1:33 pm
by richo
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.

Re: Matplotlib Plugin for Indigo 7 - New!

PostPosted: Wed Nov 23, 2016 1:38 pm
by Frakke
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!

Re: Matplotlib Plugin for Indigo 7 - New!

PostPosted: Wed Nov 23, 2016 1:57 pm
by DaveL17
Glad to hear that you've found a solution!

Re: Matplotlib Plugin for Indigo 7 - New!

PostPosted: Wed Nov 23, 2016 2:02 pm
by Frakke
Is there any way that I can say for example: every hour, or every half hour instead of "days"?

Regards

Re: Matplotlib Plugin for Indigo 7 - New!

PostPosted: Wed Nov 23, 2016 2:14 pm
by DaveL17
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.

Re: Matplotlib Plugin for Indigo 7 - New!

PostPosted: Wed Nov 23, 2016 2:22 pm
by Frakke
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 :)

Re: Matplotlib Plugin for Indigo 7 - New!

PostPosted: Wed Nov 23, 2016 3:00 pm
by Frakke
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

Re: Matplotlib Plugin for Indigo 7 - New!

PostPosted: Thu Nov 24, 2016 4:41 am
by DaveL17
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.

Re: Matplotlib Plugin for Indigo 7 - New!

PostPosted: Fri Nov 25, 2016 5:53 am
by Woetjes
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.

Re: Matplotlib Plugin for Indigo 7 - New!

PostPosted: Fri Nov 25, 2016 9:59 am
by DaveL17
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.)

Re: Matplotlib Plugin for Indigo 7 - New!

PostPosted: Sat Nov 26, 2016 11:08 am
by Woetjes
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!

Re: Matplotlib Plugin for Indigo 7 - New!

PostPosted: Sat Nov 26, 2016 2:09 pm
by DaveL17
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?

Re: Matplotlib Plugin for Indigo 7 - New!

PostPosted: Sun Nov 27, 2016 3:26 am
by Woetjes
Hi Dave - hex value #2b6866

Re: Matplotlib Plugin for Indigo 7 - New!

PostPosted: Sun Nov 27, 2016 6:46 am
by DaveL17
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.