Home Products Support About SD Contact SD

dot

JAGUAR FAQs

Adding a Customized Logo to your Printed Plots

The following procedure shows how to add a logo to your printed plots. It can be an iterative process to properly size the logo for the grids on the plots.

  1. Create your logo

    The logo image can be scanned from an existing image or created using any number of drawing tools. The resulting file should be at 'tif' or 'gif' format. An easy conversion is to open an image file using PaintShop or PhotoShop and saving the file in 'gif' or 'tif' format with the 'Save As …' selection. This file can be named 'logo.gif'
    .

  2. Create the four PostScript grid files

    In order to properly size the logo files for the expected grids, you must first create the four grid files, each with a different number of grids (1, 2, 3 or 4) in the orientation selected in the 'Print Command …' window.

    1. Run an application, such as Random.
    2. Select Data Review.
    3. From the 'Print' button, select the 'Print Command …' window.
      • At the 'B/W Graphics:' command line, enter the new command ' mv $FILE /tmp '. This new command will cause the plot to be saved in a file in the /tmp directory instead of being sent to the printer.
      • Press 'Return' and 'Apply' and then quit the window.
    4. Place the mouse pointer inside the Data Review display,:
      • For single grids, press the '1' key and then press the 'Print' button.
      • For double grids, press the '2' key and then hold the 'Shift' key while pressing the 'Print' button.
      • For triple grids, press the '3' key and then hold the 'Shift' key while pressing the 'Print' button.
      • For quad grids, press the '4' key and then hold the 'Shift' key while pressing the 'Print' button.
    5. Quit Random.
    6. Open an Xterm window. We will now save the PostScript grid files into recognizable filenames. Enter the following commands:
      % cd /tmp (change to the /tmp directory)
      % ls -lt *.ps (look for the PostScript files in reverse chronological order)
      % mv <top filename> grid_4.ps (the last file created above was the quad plot)
      % mv <second filename> grid_3.ps (the triple plot was the next to last created above)
      % mv <third filename> grid_2.ps (the double plot was the second created above)
      % mv <fourth filename> grid_1.ps (the single plot was the first created above)


      NOTE: The PostScript filenames are generated by the system and can be tedious to copy! Here is a simple trick to copy extensive text INSIDE AN XTERM WINDOW. Place the mouse pointer at the beginning of the filename, press and hold the left mouse button, drag the mouse pointer across the text and then release the left mouse button. To paste the text at the command line, press the center mouse button. Therefore, to simplify the above commands, enter

      mv (position pointer, press/hold left mouse, drag, release, center mouse) grid_3.ps

      Now, check that the filenames are correct by viewing the grids with the utility, 'imagetool'.
      % imagetool grid_1.ps (should have one grid in window)
      % imagetool grid_2.ps (should have two grids in window)
      % imagetool grid_3.ps (should have three grids in window)
      % imagetool grid_4.ps (should have four grids in window)

      If the number of grids is incorrect, rename the files to agree with the displayed number of grids.

  3. Create the four PostScript logo files

    The four files that contain the logo position information are created from the 'logo.gif' or 'logo.tif' file.

    NOTE: This procedure uses a shareware program called 'xv'. You can download it from the anonymous ftp site 'ftp://ftp.cis.upenn.edu' Point your browser to the 'pub/xv' directory and download the xv version 3.10a compressed file 'xv-3.10a.tar.Z'. This file should be placed in the '/usr/local/bin' directory and then uncompressed with the 'zcat xv-3.10a.tar.Z | tar xvvf -' command.

    1. Open an Xterm window and enter the following commands:

      % xv
      • press 'Load' and load the 'logo.tif' or 'logo.gif' file.
      • press 'Save'
        Format: PostScript
        Colors: B/W Dithered (or Color)
        (single grid) (double grid) (triple grid) (quad grid)
        Save file: logo_1.ps logo_2.ps logo_3.ps logo_4.ps
        press 'Ok'
        Orientation: landscape portrait portrait landscape
        Position
        left: 0.1 0.1 0.1 0.1
        top: 0.1 0.1 0.1 0.1
        width/height 60% 50% 40% 50%
        press 'Ok'

    2. Open the Text Editor and load the new PostScript files (Workspace | Programs | Text Editor | File | Open)
      • Go to: /tmp, then select the new PostScript file
      • Use the 'Find' selection to locate the "showpage" line. Delete this line.
      • Use the 'Find' selection to locate the "%%Trailer" line. Delete this line.
      • Save the file.

    3. Check for the proper orientation of the logo on each of the four grid files. Open an Xterm window and enter the following commands.

      % cat logo_1.ps grid_1.ps > merge_1.ps

      % imagetool merge_1.ps

      NOTE: look critically at the position of the logo on the grid. If the logo is too large or too small or poorly positioned, go back to step 3. A. 2. And reposition the logo in the saved file.

      The other grids can be checked with the commands:

      % cat logo_2.ps grid_2.ps > merge_2.ps

      % imagetool merge_2.ps

      % cat logo_3.ps grid_3.ps > merge_3.ps

      % imagetool merge_3.ps

      % cat logo_4.ps grid_4.ps > merge_4.ps

      % imagetool merge_4.ps

      Now, check the printer margins and paper orientation with the following commands:

      % lp merge_1.ps

      % lp merge_2.ps

      % lp merge_3.ps

      % lp merge_4.ps
    4. When the logo PostScript files are properly created, copy them into the login '../vcs' directory with the following command:

      % cp logo_* /usr/home/vcs

  4. Create the script files

    The script files that automatically merge the logo file and the grid file are created from the existing script files in the login directory.


    % cp sd_logo_1 script_logo_1

    % cp sd_logo_23 script_logo_2

    % cp sd_logo_23 script_logo_3

    % cp sd_logo_4 script_logo_4

    Use the Text Editor (Workspace | Programs | Text Editor) to change the contents of each new script file to use the new PostScript logo file for the appropriate grid. For example, in the file 'script_logo_2', the command for two grids per page should read:

    cat $HOME/logo_2.ps $1 | lp -o nobanner; /bin/rm $1

  5. Print from the application

    To use the new script files, run an application, such as Random, and then open the 'Print Command' window from the 'Print' button on a grid display window. Enter the full UNIX path (starting with '/') to the proper script file name at the 'B/W Graphics:' command line. (Don't forget to press 'Return' and 'Apply') For example, for two grids per display window, the command line would be the following:
    B/W Graphics [v] /usr/home/vcs/script_logo_2

    Rather than typing a new script file command for each grid orientation, you may store the commands in the file '.mono_print_commands'. This file is located in the login '../vcs' directory. Just open the Text Editor and add the lines '/usr/home/vcs/script_logo_1' and '/usr/home/vcs/script_logo_2' and '/usr/home/vcs/script_logo_3' and '/usr/home/vcs/script_logo_4' to this file. Then use the [v] button to select the command from the menu rather than typing the command.


dot

Spectral Dynamics, Inc. 2730 Orchard Parkway, San Jose CA 95134-2012, tel: 408-678-3500, fax: 408-678-3580