Why do Y-axis limits get ignored on channels? | General | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Why do Y-axis limits get ignored on channels?
No permission to create posts
January 15, 2019
8:19 pm
Avatar
jkenny23
New Member
Members
Forum Posts: 3
Member Since:
January 15, 2019
sp_UserOfflineSmall Offline

I'm trying to set good limits for the Y-axis on my publicly viewable channels, but the limits are ignored, and worse still aren't even logical. For example on this channel: https://thingspeak.com/channels/570759 the field 1 plot goes from 2500 to 4500, which is close to what I want (2600 to 4300 would be preferred), but in order to get that range and granularity I needed to change the Y-axis limits to 2900 min to 4010 max, totally unrelated to the real Y-axis limits. If I set the Y-axis limits to 2500 to 4500, the plot goes from 2000 to 5000. Pretty maddening. Is there any logic to how this works and why can't we just set the limits exactly as instructed?

January 17, 2019
2:20 pm
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 754
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

Using the charts API, I can get what you need I think:
https://thingspeak.com/channels/570759/charts/1?bgcolor=%23ffffff&color=%23d62020&days=1&dynamic=true&results=800&type=line&yaxismax=4300&yaxismin=2600&height=1000&width=1000
Does that work for you?

The charts used in the channel view have some defaults that set the limits automatically in some cases, possibly based on tick values, etc. You can overcome this by creating a separate MATLAB visualization to plot the data using the MATLAB plot() command, or any one of the other plotting functions.
https://www.mathworks.com/products/matlab/plot-gallery.html

I will submit your feedback to the tracking system here for possible change in a future release. We appreciate your feedback on what you like and don't like about the site.

January 21, 2019
6:49 pm
Avatar
jkenny23
New Member
Members
Forum Posts: 3
Member Since:
January 15, 2019
sp_UserOfflineSmall Offline

cstapels said

Using the charts API, I can get what you need I think:
https://thingspeak.com/channels/570759/charts/1?bgcolor=%23ffffff&color=%23d62020&days=1&dynamic=true&results=800&type=line&yaxismax=4300&yaxismin=2600&height=1000&width=1000
Does that work for you?

The charts used in the channel view have some defaults that set the limits automatically in some cases, possibly based on tick values, etc. You can overcome this by creating a separate MATLAB visualization to plot the data using the MATLAB plot() command, or any one of the other plotting functions.
https://www.mathworks.com/products/matlab/plot-gallery.html

I will submit your feedback to the tracking system here for possible change in a future release. We appreciate your feedback on what you like and don't like about the site.  

Thanks, very helpful, didn't know about the charts API before, and it looks like it has a lot more control. Appreciate you submitting feedback on the channel view also.

January 22, 2019
6:38 am
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 754
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

Glad to help. The charts API has more control but these will not show up in your channel view. You will also get a lot more control if you create a MATLAB visualization with MATLAB plots. You can create a new MATLAB visualization from your channel view page or from the apps tab at the top.

February 1, 2019
5:35 pm
Avatar
jkenny23
New Member
Members
Forum Posts: 3
Member Since:
January 15, 2019
sp_UserOfflineSmall Offline

Actually, I just did some more testing, and it still isn't taking the limits literally, it still does a bit of auto-scaling. With 4300 max Y limit, it actually uses 4400. Much closer than the charts on the thingspeak channel view, but still not perfect. I can't use Matlab plots because I want it to auto-update.

February 4, 2019
11:47 am
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 754
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

That makes sense that it would be similar because it uses the same charts engine in the background, but hopefully you can get a little more control just by being explicit about settings. I understand the desire for auto update.

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
29 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

Fathima22, jefflam1994, harrydawson, markpaul7931, sgarsvk2rdx, Win Win

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457