We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c8ec30e + de6f8a4 commit cadb714Copy full SHA for cadb714
graphnics/plot.py
@@ -40,15 +40,15 @@ def __init__(self, G, fname, **kwargs):
40
fname (str): location and name for file
41
42
Example:
43
- >> G = make_Y_bifurcation(dim=3)
+ >> G = Y_bifurcation(dim=3)
44
>> for e in G.edges():
45
- >> G.edges()[e]['radius'] = 1
46
- >> V = FunctionSpace(G.mesh, 'CG', 1)
47
- >> f_i = interpolate(Expression('x[0]', degree=2))
48
- >> f_i.rename('f', '0.0')
49
- >> TubeFile(G, 'test.pvd') << f_i
+ >> G.edges()[e]['radius'] = 1
+ >> V = FunctionSpace(G.mesh, 'CG', 1)
+ >> f_i = interpolate(Expression('x[0]', degree=2), V)
+ >> f_i.rename('f', '0.0')
+ >> TubeFile(G, 'test.pvd') << f_i
50
"""
51
-
+ super().__init__(fname)
52
f_name, f_ext = os.path.splitext(fname)
53
assert f_ext == '.pvd', 'TubeFile must have .pvd file ending'
54
@@ -167,4 +167,4 @@ def __lshift__(self, func):
167
<Collection>\n"""
168
169
pvd_footer= """</Collection>
170
-</VTKFile>"""
+</VTKFile>"""
0 commit comments