Пример #1
0
 def test_data_unforced_margin(self):
     # where you supply data and you want to build a grid covering it.
     bins, binedges, centregrid, edgegrid = ternary_grid(data=self.data)
Пример #2
0
 def test_data_forced_margin(self):
     # where you supply data and you want to build a grid covering it,
     # but enforce the margin (such that some data might fall outside the grid)
     bins, binedges, centregrid, edgegrid = ternary_grid(data=self.data,
                                                         force_margin=True)
Пример #3
0
 def test_default(self):
     # no data supplied, grid will cover ternary space up until some margin
     bins, binedges, centregrid, edgegrid = ternary_grid()