Skip to content
Snippets Groups Projects
Commit 43e205ed authored by Paul Lasky's avatar Paul Lasky Committed by Gregory Ashton
Browse files

Fix logo tutorial

parent 349d7f1a
No related branches found
No related tags found
No related merge requests found
examples/logo/B.png

28.4 KiB

examples/logo/I.png

22.8 KiB

examples/logo/L.png

29.7 KiB

examples/logo/Y.png

37.6 KiB

examples/logo/a.jpg

12.5 KiB

examples/logo/k.jpg

12.5 KiB

examples/logo/p.jpg

9.83 KiB

......@@ -14,8 +14,8 @@ class Likelihood(bilby.Likelihood):
return -1 / (self.interp(self.parameters['x'], self.parameters['y'])[0])
for letter in ['t', 'u', 'p', 'a', 'k']:
img = 1 - io.imread('{}.jpg'.format(letter), as_grey=True)[::-1, :]
for letter in ['B', 'I', 'L', 'Y']:
img = 1 - io.imread('{}.png'.format(letter), as_grey=True)[::-1, :]
x = np.arange(img.shape[0])
y = np.arange(img.shape[1])
interp = si.interpolate.interp2d(x, y, img.T)
......@@ -29,4 +29,4 @@ for letter in ['t', 'u', 'p', 'a', 'k']:
result = bilby.run_sampler(
likelihood=likelihood, priors=priors, sampler='nestle', npoints=5000,
label=letter)
fig = result.plot_corner(quantiles=None, smooth1d=4)
fig = result.plot_corner(quantiles=None)
examples/logo/t.jpg

11 KiB

examples/logo/u.jpg

11.7 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment