Why is this plot deleted?
古いコメントを表示
As soon as I get to set(gca) the plot disappears. If I continue I get the date formatted tick labels but I don't show any plot. Thanks
plot(matrix(:,1),matrix(:,7));
axis tight
xlabel('Date');
ylabel('PnL');
set(gca,'xtick',linspace(733645,736117,50)); % label 10 ticks using start/end
datetick('x',2,'keepticks'); %convert serial number to date
ax=gca; % get current axis
ax.XTickLabelRotation=45; % rotate ticks 45 degrees
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Line Plots についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!