1
# $Id: gp.py,v 2.9 2001/01/07 21:35:13 mhagger Exp $
3
# Copyright (C) 1998,1999 Michael Haggerty <mhagger@alum.mit.edu>
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 2 of the License, or
8
# (at your option) any later version. This program is distributed in
9
# the hope that it will be useful, but WITHOUT ANY WARRANTY; without
10
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
# PARTICULAR PURPOSE. See the GNU General Public License for more
12
# details; it is available at <http://www.fsf.org/copyleft/gpl.html>,
13
# or by writing to the Free Software Foundation, Inc., 59 Temple Place
14
# - Suite 330, Boston, MA 02111-1307, USA.
16
"""gp -- a platform-independent interface to a gnuplot process.
18
This file imports a low-level, platform-independent interface to the
19
gnuplot program. Which interface is imported depends on the platform.
20
There are variations of this file for Unix, the Macintosh, and for
21
Windows called gp_unix.py, gp_mac.py, and gp_win32.py, respectively.
22
Note that the end-user should use the more capable interface from
23
__init__.py (i.e., 'import Gnuplot') rather than the low-level
24
interface imported by this file.
26
See gp_unix.py for most documentation about the facilities of the
31
__cvs_version__ = '$Revision: 2.9 $'
35
# Low-level communication with gnuplot is platform-dependent. Import
36
# the appropriate implementation of GnuplotProcess based on the
38
if sys.platform == 'mac':
39
from gp_mac import GnuplotOpts, GnuplotProcess, test_persist
40
elif sys.platform == 'win32':
41
from gp_win32 import GnuplotOpts, GnuplotProcess, test_persist
43
from gp_unix import GnuplotOpts, GnuplotProcess, test_persist