In [7]:
%reload_ext provomatic.extension
In [8]:
add_prov('http://example.com/provenance-example', url='http://localhost:8000/prov-o-matic-example-trail.ttl')
In [9]:
z = revive('z','http://provomatic.org/resource/z/3/e4da3b7fbbce2345d7772b0674a318d5')
Taken from http://matplotlib.org/examples/lines_bars_and_markers/fill_demo.html
In [2]:
import numpy as np
import matplotlib.pyplot as plt
In [3]:
%matplotlib inline
The below cell uses the value of the imported z to compute y (this differs from the original example). It will also automatically recognize x and y as new versions of the entities in the imported trace.
In [10]:
x = np.linspace(0, 1)
y = np.sin(z * np.pi * x ) * np.exp(-5 * x)
In [11]:
plt.fill(x, y, 'r')
plt.grid(True)
plt.show()
In [12]:
view_prov()
Out[12]:
In [ ]: