ideal_gases.py
def animate(angle, save_angle=30, save_fig=False):
    """Rotates the plot and optionally saves the plot periodically.

    Parameters
    ----------
    angle : int
        rotation angle
    save_angle : int, optional
        the angle interval between each save, by default 30
    save_fig : bool, optional
        if the plot should be saved or not, by default False
    """
    ax = plt.gca()  # gca = get current axis
    ax.view_init(30, angle)

    if (angle % save_angle == 0) and save_fig:
        pathlib.Path('images').mkdir(parents=False, exist_ok=True)
        plt.savefig('images/pvt_plot_{}.png'.format(angle),
                    bbox_inches='tight')
Rotates the plot and optionally saves the plot periodically.

    Parameters
    ----------
    angle : int
        rotation angle
    save_angle : int, optional
        the angle interval between each save, by default 30
    save_fig : bool, optional
        if the plot should be saved or not, by default False
    
Rotates the plot and optionally saves the plot periodically.
Parameters

angle : int
rotation angle
save_angle : int, optional
the angle interval between each save, by default 30
save_fig : bool, optional
if the plot should be saved or not, by default False
Rotates the plot and optionally saves the plot periodically . Parameters angle : int rotation angle save_angle : int optional the angle interval between each save by default 30 save_fig : bool optional if the plot should be saved or not by default False
def animate(angle, save_angle=30, save_fig=False):
    ax = plt.gca()  
    ax.view_init(30, angle)
    if (angle % save_angle == 0) and save_fig:
        pathlib.Path('images').mkdir(parents=False, exist_ok=True)
        plt.savefig('images/pvt_plot_{}.png'.format(angle),
                    bbox_inches='tight')
def animate ( angle , save_angle = 30 , save_fig = False ) : ax = plt . gca ( ) ax . view_init ( 30 , angle ) if ( angle % save_angle == 0 ) and save_fig : pathlib . Path ( 'images' ) . mkdir ( parents = False , exist_ok = True ) plt . savefig ( 'images/pvt_plot_{}.png' . format ( angle ) , bbox_inches = 'tight' )
Rotates the plot and optionally saves the plot periodically.
Rotates the plot and optionally saves the plot periodically .
"""Rotates the plot and optionally saves the plot periodically.

    Parameters
    ----------
    angle : int
        rotation angle
    save_angle : int, optional
        the angle interval between each save, by default 30
    save_fig : bool, optional
        if the plot should be saved or not, by default False
    """ # gca = get current axis
angle
save_angle
save_fig