Copy plot or graphics content to clipboard
copygraphics(
copies the content of the
graphics object specified by obj
)obj
to the system clipboard. The graphics
object can be any type of axes, a figure, a standalone visualization, a tiled chart layout,
or a container within a figure. The clipboard content is available for pasting into other
applications and documents.
copygraphics(
specifies additional options for copying the content to the clipboard. For example,
obj
,Name,Value
)copygraphics(gca,'Resolution',300)
copies the contents of the current
axes to the clipboard as a 300-DPI image.
The copygraphics
function is not supported in MATLAB
Online™ or in web apps hosted on the MATLAB
Web App Server™.
Hovering over the Export button in the axes toolbar reveals a drop-down menu with options for
exporting content:
: Save the content as a tightly cropped image or
PDF.
: Copy the content as an image.
: Copy the content as a vector graphic.