How to copy axes with colormap?

4 views (last 30 days)
Hiranth Shenal Fernando
Hiranth Shenal Fernando on 6 Feb 2019
I currently am working on a GUI that can export a plot to an image file using exportdlg. It takes the axes the plot is in and uses copyobj to copy the axes to an invisible figure for export. The system currently works for the most part but I have run into a problem with colormaps.
When using copyobj and exportdlg, the image file does not have my colormap applied at all but my axes shows the colormap applied in my gui.
How do I use copyobj or exportdlg to include my colormap?
  1 Comment
Hiranth Shenal Fernando
Hiranth Shenal Fernando on 7 Feb 2019
I can attach images to show what I mean if that helps?

Sign in to comment.

Answers (0)

Categories

Find more on Color and Styling in Help Center and File Exchange

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!