Why does my code plot the same thing twice

10 ビュー (過去 30 日間)
Christoffer Sørensen
Christoffer Sørensen 2022 年 11 月 28 日
Im trying to plot some data but it seems like it plots my data twice for some reason. Attached is the plotting file, the data import file and some sample data.
Image of the resulting plot:
It worked with other data sets but for some reason i dont know why it plots everything twice in the same figure.
  6 件のコメント
Christoffer Sørensen
Christoffer Sørensen 2022 年 11 月 28 日
I think I found the issue. It was with the
t = title('FontSize',16,'interpreter','latex','string',titlestringbf);
I just removed
'string',titlestringbf
And input the string variable as the first input in the title function.
Christoffer Sørensen
Christoffer Sørensen 2022 年 11 月 28 日
@Jan Thank you for the helpful answers!

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by