Keyboard shortcut for a figure's Edit->Copy figure option

30 次查看(过去 30 天)
In a new figure, there is the Edit->Copy figure option which copies figure to clipboard, I am assuming in the format specified in the dialog box that opens up when going to Edit->copy options...
The default is "Preserve information (metafiule if possible)"
  1. Is there a keyboard shortcut for "Edit->Copy Figure" at all? Can I assign one?
  2. I mainly want to copy figure using the default setting, but sometimes I would like to copy figure as bitmap. Is thera a way to switch between the two settings from keyboard without having to go to "Edit->copy options..." everytime?
An ideal solution for me would look like this:
ctrl+C => copy figure (using default option)
clrt+shift+C => copy figure as bitmap
If there is a workaround I can do from matlab command line that is also acceptable, but I must be able to paste it using just ctrl+V without having to do anything more complicated.
I am using MATLAB Version: 9.11.0.1873467 (R2021b) Update 3

回答(1 个)

T.Nikhil kumar
T.Nikhil kumar 2024-5-15
Hello Mahaju,
I get that you are looking for keyboard shortcuts for "Edit->Copy Figure" and "Edit->copy options..." options to copy a figure.
For "Edit->Copy Figure", you can use a combination of keys as a shortcut instead of opening the ‘Edit’ menu to directly copy the figure.
Alt+E, F, Enter – you can use these keys in this order to copy the figure via keyboard.
I do not think there are some keyboard shortcuts to switch the copy formats. But you can use a combination of keys to open the “copy options” preferences from the figure and then select the clipboard format interactively. This could decrease the complexity for this workflow.
The combination is Alt+E, O in that order to open the “copy options” preferences panel. You can then select “bitmap” or “Preserve Information” formats.
Hope this helps you!

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by