Matlab entry basics note 3*-drawing and graphics expansion

Matlab Chapter III expansion

Advanced 2D drawing

  • How to output more beautiful graphs with Matlab
    Insert picture description here

limx([]) limy([])It can be used to adjust the x, y of the display range;
grid onor grid offcontrolled switch Background form;

When ax=gca:

ax.XAxisLocation = 'origin'You can let the x-axis pass through the origin, use bottom or top to adjust the x-axis to another position; the
ax.XAxisLocation = 'origin'usage is the same as above, use left or right to adjust the y-axis to another position;

ax.Box = 'off'The contour can be closed, on the contrary, it can be opened by inputting'on'; the
ax.LineWidth = 1.5thickness of the coordinate axis can be adjusted;

Insert picture description here

You can also manually adjust the line thickness and font size in the Figure interface;

It is generally not recommended to save as or save directly, because the resolution is high, so the pictures will be compressed when importing Word to write papers, which will make the font smaller or unsightly;


It is recommended to use the export settings column: adjust the resolution to 300ppi, uniformly adjust the font size to 9-10 points, and adjust the output size to 13-14cm wide and 8.4-8.6cm high to match the size of A4 paper. You can also design your own Nice colors and line types to enrich your chart

Guess you like

Origin blog.csdn.net/RiptidePzh/article/details/112990139