[Top] [Prev] [Next] [Bottom]

1.2 Using the Python Graphics Interface

In order to use PyGraph, you first need to have Python installed on your system. If you do not have Python, you can obtain it free from the Python pages at http://www.python.org. You may need the help of your system administrator to install it on your machine. Once you have Python, you have to know at least a smattering of the language. The best way to do this is to download the excellent tutorial from the Python pages, sit down at your computer or terminal, and work your way through it.

Before using the Python Graphics Interface, you should set some environment variables as follows.

  1. Set your environment variable PORT_SERVEUR2 to 0.
  2. Start up Narcisse by typing in the command Narcisse &. It will take a few moments for the Narcisse GUI to open, then immediately afterwards it will be covered by an annoying window which you can eliminate by clicking its OK button.
  3. You will note that there is a server port number given on the GUI. Set your PORT_SERVEUR variable to this value.
  4. Narcisse has an annoying habit of saving everything it does to a multitude of files, and notifying you on the fly of all its computations. If you do a lot of graphics, these files can quickly fill up your quota. In addition, the running commentary on file writing and computation on the GUI is time-consuming and slows Narcisse down to a truly glacial pace. To avoid this, you need to turn off a number of options via the GUI before you begin. They are all under the STATE submenu of the FILE menu, and should be set as follows: set ``Socket compute'' to ``no,'' set ``File save'' to ``nothing,'' set ``Config save'' to ``no,'' and set ``Ihm compute'' to ``no.'' (``IHM'' are the French initials for ``GUI.'')

[Top] [Prev] [Next] [Bottom]


I am going to assume that you already have Narcisse installed on your system, and its directory path in your PATH variable.


We did tell you that Narcisse was French, didn't we?

Copyright © 1997,Regents of the University of California. All rights reserved.