#! /usr/bin/env python
#############################################
# Add $AUTO_DIR/python to sys.path to import the Python modules defined by AUTO 07p.
import sys
sys.path.append('/home/aghor/auto-07p/python')

try:
    from auto.graphics import grapher_mpl as grapher
except ImportError:
    from auto.graphics import grapher
    print("Using plain TkInter for plotting. You can obtain better quality graphics")
    print("using matplotlib (http://matplotlib.sf.net).")

import matplotlib.pyplot as plt
import auto.graphics
from auto.graphics.plotter import *
from auto import parseB
from auto import parseS
from auto import parseC
from auto import AUTOutil
from auto import AUTOCommands as ac
#############################################
# method # 1: using parseB
# p_sh1_obj = parseB.parseB(); p_sh11_obj = parseB.parseB()
# b_sh1 = open('b.sh1', 'r')
# b_sh11 = open('b.sh11', 'r')
#
# p_sh1_obj.read(b_sh1)
# p_sh11_obj.read(b_sh11)
# fig = plt.figure()
# plt.plot(p_sh1_obj.branches[0]['r'], p_sh1_obj.branches[0]['L2-NORM U(1)'])
# plt.plot(p_sh11_obj.branches[0]['r'], p_sh11_obj.branches[0]['L2-NORM U(1)'])
# plt.show()
#############################################
# method # 2: using plotter module in auto
# fsh1 = plotter(bifurcation_diagram_filename="b.sh1", stability=True, \
# AUTO_plotter="hide")
# fsh11 = plotter(bifurcation_diagram_filename="b.sh11", stability=True,\
# AUTO_plotter="hide")
#
# grapher.GUIGrapher.generatePostscript(fsh1)
# grapher.GUIGrapher.generatePostscript(fsh11)

#############################################
# method # 3: merging sh1 and sh11
fshper = plotter(bifurcation_diagram_filename="b.shper", stability=False, \
AUTO_plotter="hide")
grapher.GUIGrapher.generatePostscript(fshper)
#############################################

d08813264685e002bee4a3371f65632c187fc0a2
<mask token>

<mask token>
sys.path.append('/home/aghor/auto-07p/python')
try:
    from auto.graphics import grapher_mpl as grapher
except ImportError:
    from auto.graphics import grapher
    print(
        'Using plain TkInter for plotting. You can obtain better quality graphics'
        )
    print('using matplotlib (http://matplotlib.sf.net).')
<mask token>
grapher.GUIGrapher.generatePostscript(fshper)

<mask token>
sys.path.append('/home/aghor/auto-07p/python')
try:
    from auto.graphics import grapher_mpl as grapher
except ImportError:
    from auto.graphics import grapher
    print(
        'Using plain TkInter for plotting. You can obtain better quality graphics'
        )
    print('using matplotlib (http://matplotlib.sf.net).')
<mask token>
fshper = plotter(bifurcation_diagram_filename='b.shper', stability=False,
    AUTO_plotter='hide')
grapher.GUIGrapher.generatePostscript(fshper)

import sys
sys.path.append('/home/aghor/auto-07p/python')
try:
    from auto.graphics import grapher_mpl as grapher
except ImportError:
    from auto.graphics import grapher
    print(
        'Using plain TkInter for plotting. You can obtain better quality graphics'
        )
    print('using matplotlib (http://matplotlib.sf.net).')
import matplotlib.pyplot as plt
import auto.graphics
from auto.graphics.plotter import *
from auto import parseB
from auto import parseS
from auto import parseC
from auto import AUTOutil
from auto import AUTOCommands as ac
fshper = plotter(bifurcation_diagram_filename='b.shper', stability=False,
    AUTO_plotter='hide')
grapher.GUIGrapher.generatePostscript(fshper)

#! /usr/bin/env python
#############################################
# Add $AUTO_DIR/python to sys.path to import the Python modules defined by AUTO 07p.
import sys
sys.path.append('/home/aghor/auto-07p/python')

try:
    from auto.graphics import grapher_mpl as grapher
except ImportError:
    from auto.graphics import grapher
    print("Using plain TkInter for plotting. You can obtain better quality graphics")
    print("using matplotlib (http://matplotlib.sf.net).")

import matplotlib.pyplot as plt
import auto.graphics
from auto.graphics.plotter import *
from auto import parseB
from auto import parseS
from auto import parseC
from auto import AUTOutil
from auto import AUTOCommands as ac
#############################################
# method # 1: using parseB
# p_sh1_obj = parseB.parseB(); p_sh11_obj = parseB.parseB()
# b_sh1 = open('b.sh1', 'r')
# b_sh11 = open('b.sh11', 'r')
#
# p_sh1_obj.read(b_sh1)
# p_sh11_obj.read(b_sh11)
# fig = plt.figure()
# plt.plot(p_sh1_obj.branches[0]['r'], p_sh1_obj.branches[0]['L2-NORM U(1)'])
# plt.plot(p_sh11_obj.branches[0]['r'], p_sh11_obj.branches[0]['L2-NORM U(1)'])
# plt.show()
#############################################
# method # 2: using plotter module in auto
# fsh1 = plotter(bifurcation_diagram_filename="b.sh1", stability=True, \
# AUTO_plotter="hide")
# fsh11 = plotter(bifurcation_diagram_filename="b.sh11", stability=True,\
# AUTO_plotter="hide")
#
# grapher.GUIGrapher.generatePostscript(fsh1)
# grapher.GUIGrapher.generatePostscript(fsh11)

#############################################
# method # 3: merging sh1 and sh11
fshper = plotter(bifurcation_diagram_filename="b.shper", stability=False, \
AUTO_plotter="hide")
grapher.GUIGrapher.generatePostscript(fshper)
#############################################
