Formatting X-axis labels in thinkSpeakPlot | ThingSpeak Apps | Forum


Please consider registering

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
Formatting X-axis labels in thinkSpeakPlot
No permission to create posts
November 6, 2017
1:16 am

Forum Posts: 7
Member Since:
July 29, 2017
sp_UserOfflineSmall Offline

I have an app containing a plot, where the relevant part looks like:

days = <some datetime> + caldays(0:9);
thingSpeakPlot(days, transpose([lows; highs]));

the resulting plot has x-axis labels Thurs 26, Fri 27, Sat 29, Oct 29, Mon 30, Tue 31, November, Thur 02, Fri 03

Is there any way to force the labels to all be of the form mm/dd?


November 7, 2017
5:43 pm

Forum Posts: 867
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

You can use the wide array of MATLAB plotting functions with a MATLAB visualization app on ThingSpeak to set up your custom visualization. Learn more about MATLAB plotting functions with examples.  

For example, you can try using plot and xtickformat:

plot(days,transpose([lows; highs]));


Forum Timezone: America/New_York

Most Users Ever Online: 166

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

Team_mafia, icXu, emorphistechno, VTVMART, manimozhi, adamhebrew

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457