Output png file with exact same pixels as image plot, and which also contains figure axes.

2 次查看(过去 30 天)
I created a figure using the image function because I needed to access the individual pixels to color them directly. To the image was added axes and axes labels. I now want to output a png file that is true to the original pixels in the image, but contain the addition of the axes. I've tried print (using paper position), imwrite (problem keeping axis), getframe/frame2im/imwrite (lose resolution), and though I can get approximately correct results, I can't get exactly the same image down to the pixel resolution (seen when you zoom into the png file). Any ideas would be appreciated.
FYI, am trying to reproduce this plot using MATLAB

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Axis Labels 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by