Is there an easy way to set axis range in the plot? For instance, how to set an arbitrary X and Y ranges in your example:
Code: Select all
res.plot('burnup', ['absKeff', 'colKeff'])
Moderator: drewejohnson
Code: Select all
res.plot('burnup', ['absKeff', 'colKeff'])
Code: Select all
res.plot('burnup', ['absKeff', 'colKeff']).set_xlim([min,max])
res.plot('burnup', ['absKeff', 'colKeff']).set_ylim([min,max])
Code: Select all
fig=res.plot('burnup', ['absKeff', 'colKeff'])
fig.set_xlim([min,max])
fig.set_ylim([min,max])
fig.get_figure()
Code: Select all
ax = r.plot('burnup', ['absKeff', 'colKeff'])
ax.set_ylim(...)
ax.set_xlim(...)
Code: Select all
In [62]: serpentTools.__version__
Out[62]: '0.9.2'
Code: Select all
Python 3.7.5 (default, Nov 20 2019, 09:21:52)
IPython 5.8.0 -- An enhanced Interactive Python.
Code: Select all
fd=serpentTools.read("test_dep.m")
s=fd.materials['salt']
s.plot('burnup','adens',names=['U235','Pu239'])
Code: Select all
grep MAT_salt_BURNUP test_dep.m