Module plottools.version

Version of plottools and other packages.

Functions

  • versions(): print python, numpy, pandas, matplotlib and plottools versions.
Expand source code
"""Version of plottools and other packages.

## Functions

- `versions()`: print python, numpy, pandas, matplotlib and plottools versions.
"""

import sys
import numpy as np
import matplotlib as mpl
try:
    import pandas as pd
    have_pandas = True
except ImportError:
    have_pandas = False


__pdoc__ = {}
__pdoc__['__version__'] = True
__pdoc__['__year__'] = True

__version__ = '1.0'
"""Version of the plottools package. """

__year__ = '2022'
"""Year of last changes to the plottools package. """


def versions():
    """Print python, numpy, pandas, matplotlib, and plottools versions.
    """
    print('python     version: %d.%d.%d' % (sys.version_info[:3]))
    print('numpy      version:', np.__version__)
    if have_pandas:
        print('pandas     version:', pd.__version__)
    print('matplotlib version:', mpl.__version__)
    print('plottools  version:', __version__)


if __name__ == "__main__":
    versions()

Global variables

var __version__

Version of the plottools package.

var __year__

Year of last changes to the plottools package.

Functions

def versions()

Print python, numpy, pandas, matplotlib, and plottools versions.

Expand source code
def versions():
    """Print python, numpy, pandas, matplotlib, and plottools versions.
    """
    print('python     version: %d.%d.%d' % (sys.version_info[:3]))
    print('numpy      version:', np.__version__)
    if have_pandas:
        print('pandas     version:', pd.__version__)
    print('matplotlib version:', mpl.__version__)
    print('plottools  version:', __version__)