Make a hardcopy :

One of the important features of the igr client is to make a postscript file. (This file has almost publish quality.)

When pressing the File->Print in the igr menubar the Print Dialog appears.

The most useful selections in this dialog is landscape , portrait and File name:.
When the OK button is pressed the postscript file is created. .
The default file name is and the default location is the home directory of the user.

The Print Dialog determines the hardcopy file.

The options in the Print Dialog :

Which Data
This determines which plots are printed
This works when the data are plotted in a spectrogram. To decrease the size of the postscript file the user can select the resolution i dots pr inch. The default value is 300.
Resolution-time series
This works when the data are plotted as (default) time series (line plots). To decrease the size of the postscript file the user can select the resolution i dots pr inch. The default value is 1200.
Which Device
The default is to make a postscript file on your harddisk. It is also possible to send this file directly to a postscript printer.
Print as
The most useful here is usually color. However, if no color printer is available you have the b&w alt option to print each of the four plots in the panel as differnt dotted lines.
Here the user have the very useful option to select if the postscript plot should be in landscape or portrait.
File name:
If the file option (default) was selected above, this text line shows the file name of the postscript file. The default location is in your $HOME directory. The default file name is . The user is allowed to change the file name. The mouse cursor must (usually) be inside the line you are writing.
Title text
The user is allowed to write a title text at the top of the postscript plot. (Example might be: This is a nice data example.)
Print quantity names
The default is to plot a list of all quantity names and version numbers at the bottom of the postscript page. If you deselect this pusbutton this information is not printed at the bottom.
Equal panel size
This option is only possible to use when printing in the portrait mode. In this case the height of the y-axis are equal in all panels. This can be useful when comparing different plots. When one of the panels contains a spectrogram the size of the panels are not changed.
Print info
At the bottom of the plot is written (as default): 'ISDAT igr 4.50 user@hostname 2006-06-30 15:20:29.0 File:' It shows the version number of the igr client. The user name and computer are shown. The date and time shown her is the date and time the plot was made, (not the date and time of the data plot). The file name of the plot is also shown. This information is only written if this button is selected.
Plot borders
The border around each panel can be removed by unselecting this button.
File name: macro
The file name can interpret two macros:
$D$ expands to YYYY-MM-DD_ , the date of the start time.
$DT$ expands to YYYY-MM-DD_HHMM_hhmm_ . The HHMM is the hour and minute of the start time, and hhmm is the hour and minute of the end time.
When the OK button is pressed the postscript file is created. If the postscript file already exists, the igr postscript save verify window appears. If the file can be overwritten, the user presses the Yes button. When the file is created the Print Dialog window disappears.
When the Close button is pressed, the Print Dialog window disappears and no postcript file is made.
In this case the Print help window appears.
Error messages
In this line error messages when creating the postscript file is printed. The program checks if the output file is a directory. In this case no file is created. Error messages when printing directly to the printer are written in this line.

Printing directly to a printer:

When the printer button is pressed the data is transferred directly to the printer. The printer name is now written in the Printer name: text field. The Igr*printCommand: and Igr*printOption: in the resources.res file in the igr source code is used to configure the printer settings. (Recompile after changing the resources.res file.)

Editing the text in the postcript file:

If the user want to edit the text in the postcript file, this is possible in a text editor. The size, position, content and color of the text can be changed. Text can also be removed or added manually. (This might be useful if the user wants to include the postscript plot in a manuscript.) EXAMPLE:
0.000 0.000 0.000 setrgbcolor
/Times-Roman findfont 16.80 scalefont setfont

79.6 584.0 translate
0.847 0.607 scale
0.0 0.0 moveto (amplitude V)show

559.6 631.2 translate
90 rotate
0.0 0.0 moveto (File:
-90  rotate
-559.6 -631.2 translate

Times-Roman is the font in use, more selections of fonts might be available in a future release.

This example shows how the user can edit a text and break a line into many colors, it was originally
(SC1 SC2 SC3 SC4) show

(SC1 )show
1.000 0.000 0.000 setrgbcolor
( SC2)show
0.000 0.392 0.000 setrgbcolor
( SC3)show
0.804 0.000 0.804 setrgbcolor
( SC4)show

The postscript file is easy to convert to PDF with the command ps2pdf -sPAPERSIZE=a4 In this case the filename.pdf is created in PDF format.

The xv program can load the postscript files with xv -gsgeom 598x842 Then the file can be save in several image formats, e.g. PNG.

The convert program from ImageMagick can also be used to convert from postscript to various image formats. example: convert -density 300 -resize 30% filename.png

Or the pstoimg from LaTex2Html pstoimg -antialias -density 150 -type png -out filename.png filename.eps

Or use the inkscape program (best if it works) inkscape (set to 100% in right lower corner) save as (Cairo) png

Updated Nov. 21, 2013 by Bjørn Lybekk