Curves disappear after plotting figures
1 回表示 (過去 30 日間)
古いコメントを表示
Hi there,
I have this code to generate a figure. It's good but when I took the figures as .eps into Overleaf , the curve disapear.
How to solve this issue? Or would you please suggest different format for curves that can't be change?
clear all;clc;close all;
figure;
clf('reset');
x=[1:30]; % iterations
plot(x,[70988.94682 69835.08324 66406.79131 65228.6096 88778.56708 73051.86185 83723.40479 79455.98876 66223.87698 60289.2238 81717.10057 86152.79791 60143.24545 71541.13635 80769.74795 71539.49279 79930.89652 71597.75861 66216.77599 100034.6847 78699.30314 86726.01683 80183.28653 87666.08688 69108.63603 73679.47239 61502.43864 70416.10087 72586.57568 77712.81465
], 'b:x',...
'LineWidth',4,...
'MarkerSize',12,...
'MarkerEdgeColor','b',...
'MarkerFaceColor',[0.5,0.5,0.5]); %N
hold on;
plot(x,[53301.94682 38835.08324 44406.79131 52228.6096 64478.56708 43051.86185 52223.40479 45555.98876 58223.87698 48889.2238 51117.10057 41152.79791 31243.24545 54441.13635 75669.74795 53339.49279 43330.89652 59977.75861 32116.77599 77334.6847 69991.30314 67226.01683 61883.28653 56661.08688 41008.63603 36779.47239 50022.43864 41166.10087 58862.57568 71122.81465], '--k*',...
'LineWidth',4,...
'MarkerSize',12,...
'MarkerEdgeColor','k',...
'MarkerFaceColor',[0.5,0.5,0.5]); % T
hold on;
plot(x,[33301.94682 18835.08324 14406.79131 22228.6096 44478.56708 23051.86185 32223.40479 15555.98876 28223.87698 18889.2238 31117.10057 21152.79791 11243.24545 34441.13635 35669.74795 23339.49279 13330.89652 29977.75861 12116.77599 47334.6847 39991.30314 27226.01683 21883.28653 16661.08688 11008.63603 26779 30022 11166 38862.57568 51122], '-.hr',...
'LineWidth',4,...
'MarkerSize',8,...
'MarkerEdgeColor','r',...
'MarkerFaceColor',[0.5,0.5,0.5]); % F
set(gca,'XMinorTick','on','YMinorTick','on');
grid on;
TextFontSize=25;
% LegendFontSize = 18;
set(0,'DefaultAxesFontName','Times',...
'DefaultLineLineWidth',25,...
'DefaultLineMarkerSize',25);
set(gca,'FontName','Times New Roman','FontSize',TextFontSize);
% set(gca,'FontSize',30);
set(gca,'FontSize',25);
xlabel('Global iterations')
ylabel({'B'},'FontSize',25)
legend('DREAM-FL',' LEARN','FARN','FontSize',20)
% Enlarge figure to full screen.
set(gcf, 'Units', 'Normalized', 'OuterPosition', [0, 0.04, 1, 0.96]);
% xlim([5 2000]);
% ylim([5 2000]);
%ylim([0.0 4]);
hold off;
採用された回答
Mandar
2023 年 1 月 25 日
I understand that you are converting figure to eps fromat to be called in other program, for example overleaf.
Refer to the following MATLAB answer link which discussed the potential workaround to the similar issue.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Spline Postprocessing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!