- compute more intermediate points to plot, or
- use an interpolation scheme (interp1 is one easy way)
Improving Presentation of a Graph
조회 수: 39 (최근 30일)
이전 댓글 표시
I have produced a graph running some simulations which I would like to use in Powerpoints and whose presentation and professionalism I would like to improve.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/229682/image.png)
There are few things I would like to change. Something is wrong with the resolution of the graph and the grid lines: I think this is due to the fact that I have printed and saved the graph as PNG image file: is there another type of file which I should save it as so the resolution and clarity is improved?
Secondly, the F_d/F_s on the y-axis needs to be in Maths font. Also, it seems like the analytic solutions I have plotted (corresponding to the coloured lines) have been drawn in a piecewise continuous way which interpolates in between the dots on the red curve, these dots correspond to the result from a numerical method. When you look at the graph you can see the curves are connected in a piecewise continuous way when they should just be smooth curves. Is there some way of fixing this? I can reproduce the relevant part of the code if necessary or can include more of the code if necessary.
figure
plot(KnA, expA, 'b')
hold
plot(KnA, slipS,'g')
fsz = 10; % Fontsize
alw = 1.5; % LineWidth
msz =10; % MarkerSize
plot(KnA,gradS,'.','MarkerSize',msz,'MarkerFaceColor','blue')
plot(KnA,G13An,'r')
grid on
box on
set(gca, 'FontSize', fsz, 'LineWidth', alw);
legend('Millikan exp. data' ,'Analytic-Basset','MFS-G13', 'Analytic-G13', 'Location', 'NorthEast');
xlabel('Kn')
ylabel('F_{d} / F_{s}')
print('Youngincl','-dpng','-r300');
댓글 수: 10
dpb
2019년 7월 14일
편집: dpb
2019년 7월 14일
I'm certainly no whizard, no...when I did thesis and writing for publication we were still typing w/ IBM Selectrics on publication mats... :)
Best I know personally is to direct you to the documentation link https://www.mathworks.com/help/matlab/printing-and-exporting.html
and browse from there. I do know that the File/SaveAs menu item and the function saveas both are limited in resolution and size, etc., ... while print has more options available that is probably where you need to be.
But, I've never had to deal with trying to actually publish any MATLAB work in serious journals; all my work has been as consultant to individual clients who really didn't care about format; "just the facts, Ma'am!", so I've no practical experience.
채택된 답변
Star Strider
2019년 7월 18일
If you want your plots to have a finer resolution with respect to ‘R’, define ‘Rv’ to have more points:
Rv = linspace(1, 10, 150);
Here it will have 150 points. You can specify any number of points you want with the third argument to linspace.
댓글 수: 0
추가 답변 (2개)
Yair Altman
2019년 7월 22일
Regarding output quality, esp. for EPS that you mentioned - many people found the export_fig utility useful for preparing publication-quality export of Matlab figures/charts. Under the hood export_fig uses the built-in print() function, but it makes numerous small tweaks to the inputs (figure/chart properties, and print() parameters) and output (post-processing of the EPS file) that improve the resulting output file.
댓글 수: 0
atharva aalok
2021년 10월 17일
Please refer the following Plotting Template:
The above is an easy to follow Beginner Friendly template.
The idea is to create Professional Standard Plots within seconds without a steep learning curve and with consistency.
It also offers a wide range of preset Color Codes (please refer the attached image for the Color Palatte)
Sample Plot:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/769886/image.png)
Color Palatte:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/769891/image.png)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Formatting and Annotation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!