vecrast

Version 1.4 (3.56 KB) by Theo Michelis
vecrast is a function that allows to save a figure with mixed vector and raster content

498 Downloads

Updated Fri, 25 Oct 2019 08:54:30 +0000

View License

vecrast is a function that allows to automatically save a figure with mixed vector and raster content. More specifically, two copies of the figure of interest are created, rasterFigure and vectorFigure. Patches, surfaces, contours, images, and lights are kept in rasterFigure but removed from vectorFigure. rasterFigure is then saved as a temporary .png image with the required resolution. The .png file is subsequently inserted into the vectorFigure, and the result is saved in a single vector file.

Cite As

Theo Michelis (2023). vecrast (https://www.mathworks.com/matlabcentral/fileexchange/64650-vecrast), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.4

- Fixed issues with caxis and zaxis on some figures
- Added svg exporting functionality
- Solved the issue with black lines on the raster image when using pcolor (issue with transparency)
- Updated example
- A few coding improvements

1.3.0.0

Integrated the comment of Bryan Lougheed.

1.2.0.0

Integrated the suggestions of Kerry and Bob DA.

1.1.0.0

Code simplification and minor updates based on the comments of Jonathan Kohler.

1.0.0.0

Snapshot