Output png file with exact same pixels as image plot, and which also contains figure axes.
2 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Axis Labels in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!