Plot to Bitmap

Plot lines (and text) directly into a bitmap, including filled polygons.

You are now following this Submission

"Plot to Bitmap" allows the user to directly plot lines, text and filled polygons into an image, thus without taking a screen-shot (getframe).

This function is also useful if you want to convert a few coordinates describing a region contour into a bitmap of the region.

Cite As

Dirk-Jan Kroon (2026). Plot to Bitmap (https://se.mathworks.com/matlabcentral/fileexchange/23468-plot-to-bitmap), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: contest clock

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.3.0.0

Replace for-loop by arrayfun. Allow multiple marker-colors.

1.2.0.0

Fixed small gap bug, by rounding values of input coordinates

1.1.0.0

Add Font sizes, and fixed missing capital "Y"

1.0.0.0