How to use the o2sclpy.plotter function in o2sclpy

To help you get started, we’ve selected a few o2sclpy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github awsteiner / o2scl / examples / plot / old / ex_nucmass_plot.py View on Github external
"""
Plot data from ex_nucmass
"""

import numpy as np
import matplotlib.pyplot as plot
import o2sclpy
import math

gc=o2sclpy.plotter()
gc.read('../ex_nucmass_table.o2')
gc.canvas_flag=1

Zgrid=range(1,121)
Ngrid=range(1,181)
sl=np.zeros(shape=(120,180))

labels=['Semi-empirical',
        'Moller et al. (1995)',
        'HFB 14',
        'HFB 21',
        'HFB 27',
        'AME (2003)',
        'Duflo and Zuker (1996)',
        'Koura et al. (2005)',
        'Dieperink et al. (2009)',

o2sclpy

Python extensions for O2scl

GPL-3.0
Latest version published 6 months ago

Package Health Score

53 / 100
Full package analysis

Popular o2sclpy functions

Similar packages