savefig Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: savefig.m
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: Peder Axensten (View more)

savefig script description:




Publisher review:
savefig - Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript. Usage: savefig(filename, fighandle, options) Saves a pdf, eps, png, jpeg, and/or tiff of the contents of the fighandle's (or current) figure. It saves an eps of the figure and the uses Ghostscript to convert to the other formats. The result is a cropped, clean picture. There are options for using rgb or cmyk colours, or grayscale. You can also choose the resolution. The advantage of savefig is that there is very little empty space around the figure in the resulting files, you can export to more than one format at once, and Ghostscript generates trouble-free files. If you find any errors, please let me know! (peder at axensten dot se) filename: File name without suffix. fighandle: (default: gcf) Integer handle to figure. options: (default: '-r300', '-soft', '-rgb') You can define your own defaults in a global variable savefig_defaults, if you want to, i.e. savefig_defaults= {'-r200','-gray'};. 'eps': Output in Encapsulated Post Script (no preview yet). 'pdf': Output in (Adobe) Portable Document Format. 'png': Output in Portable Network Graphics. 'jpeg': Output in Joint Photographic Experts Group format. 'tiff': Output in Tagged Image File Format (no compression: huge files!). '-rgb': Output in rgb colours. '-cmyk': Output in cmyk colours (not yet 'eps', 'png', and 'jpeg' -- '-rgb' is used). '-gray': Output in grayscale (not yet 'pdf' and 'eps' -- '-rgb' is used). '-r': Set resolution. '-soft': Enables anti-aliasing on pixel graphics (on by default). '-hard': No anti-aliasing on pixel graphics (saves bytes). '-crop': Removes points and line segments outside the viewing area -- permanently. Only use this on figures where many points and/or line segments are outside the area zoomed in to. This option will result in smaller vector files (has no effect on pixel files). '-dbg': Displays gs command line(s). EXAMPLE: savefig('nicefig', 'pdf', 'jpeg', '-cmyk', '-r250'); Saves the current figure to nicefig.pdf and nicefig.png, both in cmyk and at 250 dpi. REQUIREMENT: Ghostscript. Version 8.51 works, probably older versions too, but '-dEPSCrop' must be supported. I think version 7.32 or newer is ok. Requirements: · MATLAB Release: R13SP1 · Ghostscript
savefig is a Matlab script for Development Tools scripts design by Peder Axensten. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
savefig - Save *cropped* figures to pdf, eps, png, jpeg, and tiff through Ghostscript.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5