formatting x-axis | MATLAB IoT Analytics | 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
No permission to create posts
August 9, 2019
1:30 pm
Avatar
obod0002

Silver
Members
Forum Posts: 19
Member Since:
March 13, 2019
sp_UserOfflineSmall Offline

searched a lot but I didn't manage to get it right:

I'm using plot to draw the graphs.
The x-axis is formatted automatically.

Unfortunately only three labels are displayed (three months).
As there's a lot of space inbetween those, I'd like to display a bit more, e.g. 1st of month, 14th of month or similar.

But how can I do that?

August 21, 2019
11:12 am
Avatar
cstapels
Moderator
Members


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

try using something similar to these:
xlim(datetime(2014,[7 8],[12 23]))
xtickformat('dd-MMM-yyyy')

More helpful hints here:
https://www.mathworks.com/help/matlab/matlab_prog/plot-dates-and-durations.html

Forum Timezone: America/New_York

Most Users Ever Online: 166

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