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

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





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

Register Lost password?
sp_Feed sp_TopicIcon
Formatting X-axis labels in thinkSpeakPlot
Avatar
Llaves
New Member
Forum Posts: 1
sp_UserOfflineSmall Offline
1
November 6, 2017 - 1:16 am
sp_Permalink sp_Print

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.

Avatar
cstapels

Gold
Forum Posts: 126
sp_UserOfflineSmall Offline
2
November 7, 2017 - 5:43 pm
sp_Permalink sp_Print

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:
18 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

dannymm1

KamorkasOr

GRV2903

Jusikaclaiz

Raymondpoers

ScottDus

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee