The automated translation of this page is provided by a general purpose third party translator tool. MathWorks does not warrant, and disclaims all liability for, the accuracy, suitability, or fitness for purpose of the translation. Before saving the figure, consider the file format you want to use. You can save the figure as either a bitmap image or a vector graphics file. Bitmap images contain a pixel-based representation of the figure. This type of format is widely used by web browsers and other applications that display graphics. However, bitmap images do not scale well. You cannot modify individual graphics objects, such as lines and text, in other graphics applications. Supported bitmap image formats include PNG and JPEG. Vector graphics files store commands that redraw the figure. This type of format scales well, but can result in a large file. Also, vector graphics files might not produce the correct 3-D arrangement of objects in certain cases. Some applications support extensive editing of vector graphics formats, but some applications support only resizing the graphic. In general, try to make all the necessary changes while your figure is still in MATLAB®. Supported vector graphics formats include PDF, EPS, and SVG. To save a figure, use either the saveas or print function. For example, save a bar chart as a PNG file. Use gcf to save the current figure. If you want additional control over the saved output, such as setting the resolution or controlling the renderer, use the print function to save the figure instead. Note: Details of saved and printed figures can differ from the figure on the display. To get output that is more consistent with the display, see Save Figure Preserving Background Color and Save Figure at Specific Size and Resolution. If you want to edit a figure in another application, save it as a vector graphics file, such as PDF or EPS. Use either the saveas or print function to save the figure. saveas saves the bar chart as BarChartFile.eps. For a black and white EPS file, use the ‘eps’ format instead. For a full list of supported file formats, see File Format Options. Customizing your figure in MATLAB before you save it can eliminate the need to use another application for editing. To customize the figure programmatically, set properties of the graphics objects. Typically, graphics functions return output arguments that you can use to access and modify graphics objects. For example, assign the chart line objects returned from the plot function to a variable and set their LineWidth property. If you do not return the graphics objects as output arguments, you can use findobj to find objects with certain properties. For example, find all objects in the current figure with a Type property set to ‘line’. Then, set their LineWidth property. To customize the figure interactively, use either the Plot Tools or the Export Setup dialog. For more information on the Plot Tools, see Customize Graph Using Plot Tools. For more information on the Export Setup dialog, see Customize Figure Interactively Before Saving. To import a figure into a Microsoft® application, such as Word or PowerPoint®, click Insert >, Picture >, From File in the application. Then, navigate to your saved file. To add a figure to a LaTeX document, first save the figure using an EPS format. For example, saveas(gcf,’BarChart’,’epsc’). Then, use the includegraphics element in the LaTeX document to include the file. For example: Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: . Source.