changing the axis of a plot in a way that the data series starts at x=0 at a point at one point on the y-axis and ends on the right end of the plot
15 views (last 30 days)
Show older comments
Locks on 29 Apr 2013
I have this code:
%datevc divides the date in different columns, first colum is the year,
%second the month and thrid the day
%Takes just the year (first column)
%takes every year just once
this works fine, but the problem I faces is that the time series (y=VIX) does not start at the left end of the plot but instead there is a space between the y-axis and the first point of the time series. I know that when there are normal values on the x-axis, I can change it, but I am not able to do it with dates, what do I need to do?
Jonathan Epperl on 2 May 2013
This is still not a working example, the variable VIXdate is obviously unknown to us...
So the dirty way again:
ytix = get(gca,'YTick');
More Answers (2)
Mel on 1 May 2013
You could also set just the x axis to be the same as your data:
Jonathan Epperl on 29 Apr 2013
Find more on Log Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!