Editing
Guide to madagascar programs
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==sfprep4plot== {| class="wikitable" align="center" cellspacing="0" border="1" ! colspan="4" style="background:#ffdead;" | Resamples a 2-D dataset to the desired picture resolution, with antialias |- ! colspan="4" | sfprep4plot inp= out= verb=n h=none w=none unit= ppi= prar=y |- | colspan="4" | Only one of the h and w parameters needs to be specified.<br>If prar=n, no action will be taken on the axis for which h/w was not specified<br>If prar=y and only one par (h or w) is specified, the picture will scale<br>along both axes until it is of the specified dimension. |- | ''int '' || '''h=none''' || || output height |- | ''string '' || '''inp=''' || || input file |- | ''string '' || '''out=''' || || output file |- | ''int '' || '''ppi=''' || || output resolution (px/in). Necessary when unit!=px |- | ''bool '' || '''prar=y''' || [y/n] || if y, PReserve Aspect Ratio of input |- | ''string '' || '''unit=''' || || unit of h and w. Can be: px(default), mm, cm, in |- | ''bool '' || '''verb=n''' || [y/n] || if y, print system commands, outputs |- | ''int '' || '''w=none''' || || output width |} For a figure that does not need the aspect ratio preserved, and needs to fill a 1280x1024 projector display: <pre> sfprep4plot inp=file1.rsf out=file2.rsf w=1280 h=1024 prar=n </pre> For a print figure that has to fit in a 6x8in box at a resolution of 250 dpi, preserving the aspect ratio: <pre> sfprep4plot inp=file1.rsf out=file2.rsf w=6 h=8 unit=in ppi=250 </pre> A comparison of images before and after the application of <tt>sfprep4plot</tt>, courtesy of Joachim Mispel, is shown below: [[Image:sf_prep4plot.jpg]]
Summary:
Please note that all contributions to Madagascar are considered to be released under the GNU Free Documentation License 1.3 or later (see
My wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
English
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Getting Madagascar
download
Installation
GitHub repository
SEGTeX
Introduction
Package overview
Tutorial
Hands-on tour
Reproducible documents
Hall of Fame
User Documentation
List of programs
Common programs
Popular programs
The RSF file format
Reproducibility with SCons
Developer documentation
Adding programs
Contributing programs
API demo: clipping data
API demo: explicit finite differences
Community
Conferences
User mailing list
Developer mailing list
GitHub organization
LinkedIn group
Development blog
Twitter
Slack
Tools
What links here
Related changes
Special pages
Page information