Formatting X-axis labels in thinkSpeakPlot | 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
Formatting X-axis labels in thinkSpeakPlot
No permission to create posts
November 6, 2017
1:16 am
Avatar
Llaves
New Member
Members
Forum Posts: 1
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?

Thanks.

November 7, 2017
5:43 pm
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 410
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]));

xtickformat('MM/dd');

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
26 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

KeslarAboth, EnigmBioge, debbiepe18, MatthewmUb, cathrynww1, Slark

Administrators: Hans: 387, lee: 457