How to create a 2-D line plot with static axis? | ThingSpeak Apps | 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
How to create a 2-D line plot with static axis?
No permission to create posts
September 17, 2018
12:42 pm
Avatar
Onezing
New Member
Members
Forum Posts: 4
Member Since:
September 12, 2018
sp_UserOfflineSmall Offline

Hello,
I used MATLAB Visualizations to create 2-D line plot, I insert channel ID, field ID, read key and everything was be fine.
But, the chart it's no static, I can move axis to up and down, left, right but I don't want it. I would to all axis will be static.
Could anyone help me with this problem? What I must add to default generated code, to get it?
Thanks for help.

September 25, 2018
9:01 am
Avatar
cstapels
Moderator
Members


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

Try replacing thingSpeakPlot() with just plot(). That will provide a static plot. Please let us know if that works for you.

October 22, 2018
3:38 pm
Avatar
Onezing
New Member
Members
Forum Posts: 4
Member Since:
September 12, 2018
sp_UserOfflineSmall Offline

cstapels said

Try replacing thingSpeakPlot() with just plot(). That will provide a static plot. Please let us know if that works for you.  

I do it, but then shows error:
Undefined function or variable 'Plot'.

October 23, 2018
9:26 pm
Avatar
cstapels
Moderator
Members


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

MATLAB is case sensitive. Try plot(x,y) instead of Plot().

If you find an example, you can usually copy and paste the code.
This one shows how to use the template code, but you can just copy and paste from the grey boxes. You will need to change the variable names though.
https://www.mathworks.com/help/thingspeak/Plot-Temperature-and-Wind-Speed-on-Two-Different-Axes.html

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
21 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:

qkpham, SANGAMNATH B, swatiiot, kalyanigaware16@gmail.com, Romi, Drakan01

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457