Actions

MATLABFIGVIEWER: Difference between revisions

From BAWiki

imported>Nickelsen Levin
m (added plotts in postprocessor)
imported>Seiss Guntram
(Changes in specifying ylimval)
 
(4 intermediate revisions by 2 users not shown)
Line 2: Line 2:
|name_de=MATLABFIGVIEWER
|name_de=MATLABFIGVIEWER
|name=matlabfigviewer
|name=matlabfigviewer
|version=March 2016
|version=May 2019
|version_descr=March 2016
|version_descr=May 2019
|catchwords=
|catchwords=
Matlab<br />
Matlab<br />
Line 26: Line 26:
Additional optional arguments are the limits of the y-axis after passing the key word ylimval and the location of the legend after passing the key word legendlocation. If these key words are used matlabfigviewer will not open the figure files, but instead is changing the limits of the y-axis or the location of the legend and saving the figure in the given file, e.g.:
Additional optional arguments are the limits of the y-axis after passing the key word ylimval and the location of the legend after passing the key word legendlocation. If these key words are used matlabfigviewer will not open the figure files, but instead is changing the limits of the y-axis or the location of the legend and saving the figure in the given file, e.g.:


<code>matlabfigviewer Abbildung1.fig ylimval [-4 4]</code>
<code>matlabfigviewer Abbildung1.fig ylimval "[-4,4.5]"</code>


This command changes the limits of the y-axis to -4 to 4 without opening the file.
This command changes the limits of the y-axis to -4 to 4 without opening the file. Enclosing the ylimval content by double quotes is necessary at the command line, when specifing floating point values. The two limits are separated by comma and whitespaces are not allowed.


<code>matlabfigviewer *.fig legendlocation northwest</code>
<code>matlabfigviewer *.fig legendlocation northwest</code>
Line 34: Line 34:
This command works on all figures which end on .fig in the current directory and changes the legend location to northwest, i.e. top-left.
This command works on all figures which end on .fig in the current directory and changes the legend location to northwest, i.e. top-left.


<code>matlabfigviewer *.fig legendlocation northwest ylimval [-4 4]</code>
<code>matlabfigviewer *.fig legendlocation northwest ylimval "[-4,4.5]"</code>


In this command legendlocation and limits of the y-axis are changed simultaneously.
In this command legendlocation and limits of the y-axis are changed simultaneously.
Line 43: Line 43:


With the statement "none" it is therefore possible to turn the legend off.
With the statement "none" it is therefore possible to turn the legend off.
<code>matlabfigviewer  -nostop *.fig legendlocation northwest ylimval "[-4,4.5]"</code>
Giving flag  <code>'''-nostop'''</code> stops the application 5 seconds after the last  file is processed. Without this flag given, the application waits for user input, how much seconds it should wait before closing (e.g. because the user wants to have a short look over all open figures). During batch runs this is the preferred method to stop the application.
'''Remark''': If the application is called without arguments the file selection dialog opens and the user has to select a valid file of type *.fig.


|inputfiles=
|inputfiles=
Line 49: Line 55:
|outputfiles=
|outputfiles=
The displayed figure can be saved in all formats supported by Matlab (*.JPG,*.PNG,*.PDF,*.EPS,*.FIG,*.BMP,*.PCX,*.PBM,*.PGM,*.PPM,*.SVG,*.TIF).
The displayed figure can be saved in all formats supported by Matlab (*.JPG,*.PNG,*.PDF,*.EPS,*.FIG,*.BMP,*.PCX,*.PBM,*.PGM,*.PPM,*.SVG,*.TIF).
Printer protocol file matlabfigviewer.sdr


|methodology=
|methodology=
The matlab command openfig() is used for opening the given files.
The matlab command openfig() is used for opening the given files. Then all open figures can be processed interactively. If modifiers are specified, the modification is done and the file is saved. The modified figure then is closed.


|preprocessor=[[DISPLAY_PERCENTILES]] [[DISPLAY_HOVMOLLER]] [[PLOTTS]] [[QUICKPLOT]] [[TAYLORDIAGRAM]]
|preprocessor=[[DISPLAY_PERCENTILES]] [[MATLAB]] [[PLOTPROFILZEIT]] [[PLOTTS]] [[QUICKPLOT]] [[TAYLORDIAGRAM]]
|postprocessor=
|postprocessor=
|language=[[MATLAB]]
|language=[[MATLAB]]
|add_software= Linux: MATLAB Compiler Runtime MCR R2015a in directory /usr/local/MATLAB/R2015a
|add_software= Linux: MATLAB Compiler Runtime MCR R2015a in directory /usr/local/MATLAB/R2015a
|contact_original=[mailto:levin.nickelsen@baw.de L. Nickelsen]
|contact_original=[mailto:levin.nickelsen@baw.de L. Nickelsen]
|contact_maintenance=[mailto:levin.nickelsen@baw.de L. Nickelsen]
|contact_maintenance=[mailto:lguntram.seiss@baw.de G. Seiß]
|documentation=http://de.mathworks.com/help/matlab/ref/openfig.html <br /> See also under [[MATLAB]].
|documentation=http://de.mathworks.com/help/matlab/ref/openfig.html <br /> See also under [[MATLAB]].
}}
}}

Latest revision as of 08:32, 7 May 2019

Basic Information

Name of Program

matlabfigviewer

Version-Date

May 2019

Description-Date

May 2019

Catchwords

Matlab
'*.fig'
Figure
Plot
MATLAB

Acknowledgment: This project took advantage of netCDF software developed by UCAR/Unidata (www.unidata.ucar.edu/software/netcdf/).

Short Description of Functionality

The application matlabfigviewer allows to view files in Matlab figure format (*.fig) with no licensed Matlab installed. After opening the Matlab figure file it is possible to adjust plot size, line width, font size and the Renderer as well as to export the figure to different formats. Additionally, it is possible to zoom to details of the displayed figure and to individually extract values from the plot. The application matlabfigviewer is called via the console using the command matlabfigviewer and passing the matlab-figure-files as arguments, e.g.:

matlabfigviewer Figure1.fig

This command opens Figure1.fig for viewing.

matlabfigviewer *.fig

This command opens all figures which end on .fig in the current directory for viewing.

Additional optional arguments are the limits of the y-axis after passing the key word ylimval and the location of the legend after passing the key word legendlocation. If these key words are used matlabfigviewer will not open the figure files, but instead is changing the limits of the y-axis or the location of the legend and saving the figure in the given file, e.g.:

matlabfigviewer Abbildung1.fig ylimval "[-4,4.5]"

This command changes the limits of the y-axis to -4 to 4 without opening the file. Enclosing the ylimval content by double quotes is necessary at the command line, when specifing floating point values. The two limits are separated by comma and whitespaces are not allowed.

matlabfigviewer *.fig legendlocation northwest

This command works on all figures which end on .fig in the current directory and changes the legend location to northwest, i.e. top-left.

matlabfigviewer *.fig legendlocation northwest ylimval "[-4,4.5]"

In this command legendlocation and limits of the y-axis are changed simultaneously.

Possible statements for the legend location are the original matlab statements:

north, south, east, west, northeast, northwest, southeast, southwest, northoutside, southoutside, eastoutside, westoutside, northeastoutside, northwestoutside, southeastoutside, southwestoutside, best, bestoutside, none

With the statement "none" it is therefore possible to turn the legend off.

matlabfigviewer -nostop *.fig legendlocation northwest ylimval "[-4,4.5]"

Giving flag -nostop stops the application 5 seconds after the last file is processed. Without this flag given, the application waits for user input, how much seconds it should wait before closing (e.g. because the user wants to have a short look over all open figures). During batch runs this is the preferred method to stop the application.

Remark: If the application is called without arguments the file selection dialog opens and the user has to select a valid file of type *.fig.

Input-Files

All files in Matlab figure format (*.fig)

Output-Files

The displayed figure can be saved in all formats supported by Matlab (*.JPG,*.PNG,*.PDF,*.EPS,*.FIG,*.BMP,*.PCX,*.PBM,*.PGM,*.PPM,*.SVG,*.TIF).

Printer protocol file matlabfigviewer.sdr

Methodology

The matlab command openfig() is used for opening the given files. Then all open figures can be processed interactively. If modifiers are specified, the modification is done and the file is saved. The modified figure then is closed.

Program(s) to run before this Program

DISPLAY_PERCENTILES MATLAB PLOTPROFILZEIT PLOTTS QUICKPLOT TAYLORDIAGRAM

Program(s) to run after this Program

Additional Information

Language

MATLAB

Additional software

Linux: MATLAB Compiler Runtime MCR R2015a in directory /usr/local/MATLAB/R2015a

Original Version

L. Nickelsen

Maintenance

G. Seiß

Documentation/Literature

http://de.mathworks.com/help/matlab/ref/openfig.html
See also under MATLAB.


back to Program Descriptions


Overview