flaport / fdtd

A 3D electromagnetic FDTD simulator written in Python with optional GPU support
https://fdtd.readthedocs.io
MIT License
454 stars 116 forks source link

Colorbar in grid.visualize #32

Closed GenB31415 closed 2 years ago

GenB31415 commented 2 years ago

Hi @flaport, is it possible to insert the colorbar to grid.visualize(...) figure? Thanks

pingpongballz commented 2 years ago

I think this can be achieved by setting show = False in grid.visualize, then declaring a colorbar in matplotlib. Then call plt.show()

flaport commented 2 years ago

Indeed 🙂