# -*- coding: utf-8 -*-
"""
Created on Thu Jul 29 11:55:44 2021

@author: FanE

Test the enviroments of SciPlot
https://github.com/garrettj403/SciencePlots/blob/master/examples/plot-examples.py
"""

import numpy as np
import matplotlib.pyplot as plt


def model(x, p):
    return x ** (2 * p + 1) / (1 + x ** (2 * p))


pparam = dict(xlabel='Voltage (mV)', ylabel='Current ($\mu$A)')

x = np.linspace(0.75, 1.25, 201)

with plt.style.context(['science']):
    fig, ax = plt.subplots()
    for p in [10, 15, 20, 30, 50, 100]:
        ax.plot(x, model(x, p), label=p)
    ax.legend(title='Order')
    ax.autoscale(tight=True)
    ax.set(**pparam)
    # plt.show()
    # fig.savefig('figures/fig1.pdf')
    fig.savefig('fig1.jpg', dpi=300)

44a4fcdf9c0a025a5887b8d7595089fe2074ca98
<mask token>


def model(x, p):
    return x ** (2 * p + 1) / (1 + x ** (2 * p))


<mask token>

<mask token>


def model(x, p):
    return x ** (2 * p + 1) / (1 + x ** (2 * p))


<mask token>
with plt.style.context(['science']):
    fig, ax = plt.subplots()
    for p in [10, 15, 20, 30, 50, 100]:
        ax.plot(x, model(x, p), label=p)
    ax.legend(title='Order')
    ax.autoscale(tight=True)
    ax.set(**pparam)
    fig.savefig('fig1.jpg', dpi=300)

<mask token>


def model(x, p):
    return x ** (2 * p + 1) / (1 + x ** (2 * p))


pparam = dict(xlabel='Voltage (mV)', ylabel='Current ($\\mu$A)')
x = np.linspace(0.75, 1.25, 201)
with plt.style.context(['science']):
    fig, ax = plt.subplots()
    for p in [10, 15, 20, 30, 50, 100]:
        ax.plot(x, model(x, p), label=p)
    ax.legend(title='Order')
    ax.autoscale(tight=True)
    ax.set(**pparam)
    fig.savefig('fig1.jpg', dpi=300)

<mask token>
import numpy as np
import matplotlib.pyplot as plt


def model(x, p):
    return x ** (2 * p + 1) / (1 + x ** (2 * p))


pparam = dict(xlabel='Voltage (mV)', ylabel='Current ($\\mu$A)')
x = np.linspace(0.75, 1.25, 201)
with plt.style.context(['science']):
    fig, ax = plt.subplots()
    for p in [10, 15, 20, 30, 50, 100]:
        ax.plot(x, model(x, p), label=p)
    ax.legend(title='Order')
    ax.autoscale(tight=True)
    ax.set(**pparam)
    fig.savefig('fig1.jpg', dpi=300)

# -*- coding: utf-8 -*-
"""
Created on Thu Jul 29 11:55:44 2021

@author: FanE

Test the enviroments of SciPlot
https://github.com/garrettj403/SciencePlots/blob/master/examples/plot-examples.py
"""

import numpy as np
import matplotlib.pyplot as plt


def model(x, p):
    return x ** (2 * p + 1) / (1 + x ** (2 * p))


pparam = dict(xlabel='Voltage (mV)', ylabel='Current ($\mu$A)')

x = np.linspace(0.75, 1.25, 201)

with plt.style.context(['science']):
    fig, ax = plt.subplots()
    for p in [10, 15, 20, 30, 50, 100]:
        ax.plot(x, model(x, p), label=p)
    ax.legend(title='Order')
    ax.autoscale(tight=True)
    ax.set(**pparam)
    # plt.show()
    # fig.savefig('figures/fig1.pdf')
    fig.savefig('fig1.jpg', dpi=300)
