1#!/usr/bin/env python 2 3# Copyright (C) 2012 Andrew Ross 4# Copyright (C) 2012-2016 Alan W. Irwin 5# 6# This file is part of PLplot. 7# 8# PLplot is free software; you can redistribute it and/or modify 9# it under the terms of the GNU Library General Public License as published 10# by the Free Software Foundation; version 2 of the License. 11# 12# PLplot is distributed in the hope that it will be useful, 13# but WITHOUT ANY WARRANTY; without even the implied warranty of 14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15# GNU Library General Public License for more details. 16# 17# You should have received a copy of the GNU Library General Public License 18# along with the file PLplot; if not, write to the Free Software 19# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 21 22# Run python plplot example 00 non-interactively. 23 24# Append to effective python path so that can find plplot modules. 25from plplot_python_start import * 26 27import sys 28import plplot as w 29 30# Parse and process command line arguments 31w.plparseopts(sys.argv, w.PL_PARSE_FULL) 32 33# Initialize plplot 34w.plinit() 35 36import x00 37x00.main(w) 38 39# Terminate plplot 40w.plend() 41