I am wondering if Dedalus allows changes in properties of the figures as in
Matplotlib. In particular, I tried to add the following red line in the excerpt code below to make the tick labels larger but it does not work. Also, I am wondering if one can change the font size for the axes titles easily. I tried various things through the method signatures for
plot_bot() and plot_bot_3d() but can't make it work.
So the goal is to change the properties of the tick/colorbar labels and axis titles.
Any suggestions for the attached code or easy alternative approaches would be appreciated.
with h5py.File(filename, mode='r') as file:
for index in range(start, start+count):
for n, task in enumerate(tasks):
# Build subfigure axes
i, j = divmod(n, ncols)
axes = mfig.add_axes(i, j, [0, 0, 1, 1])
# axes.tick_params(axis='both',labelsize=20)
# Call 3D plotting helper, slicing in time
dset = file['tasks'][task]
plot_tools.plot_bot_3d(dset, 0, index, axes=axes, title=task, even_scale=True)
# Add time title
title = title_func(file['scales/sim_time'][index])
title_height = 1 - 0.5 * mfig.margin.top / mfig.fig.y
fig.suptitle(title, x=0.48, y=title_height, ha='left')
# Save figure
savename = savename_func(file['scales/write_number'][index])
savepath = output.joinpath(savename)
fig.savefig(str(savepath), dpi=dpi)
fig.clear()
plt.close(fig)