~ubuntu-branches/ubuntu/trusty/python-gnuplot/trusty

« back to all changes in this revision

Viewing changes to build/lib/Gnuplot/gp.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2005-01-23 00:42:37 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050123004237-0rfjkhe4ii7ky637
Tags: 1.7-5
Fix mouse control in generated plot windows (closes: #291294).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: gp.py,v 2.9 2001/01/07 21:35:13 mhagger Exp $
2
 
 
3
 
# Copyright (C) 1998,1999 Michael Haggerty <mhagger@alum.mit.edu>
4
 
#
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.
15
 
 
16
 
"""gp -- a platform-independent interface to a gnuplot process.
17
 
 
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.
25
 
 
26
 
See gp_unix.py for most documentation about the facilities of the
27
 
gp_*.py modules.
28
 
 
29
 
"""
30
 
 
31
 
__cvs_version__ = '$Revision: 2.9 $'
32
 
 
33
 
import sys
34
 
 
35
 
# Low-level communication with gnuplot is platform-dependent.  Import
36
 
# the appropriate implementation of GnuplotProcess based on the
37
 
# platform:
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
42
 
else:
43
 
    from gp_unix import GnuplotOpts, GnuplotProcess, test_persist
44
 
 
45