Cannot display images

Issue #16 on hold
Former user created an issue

draw_profile, draw_several_fields etc do not display any images. Tried t1.draw(), tried draw_several_fields(), tried u5.draw_profile(), script finished with scalar_mask_XY output, scalar_field_XY output, and scalar_source_XY output, no errors appeared. Used this example:

https://diffractio.readthedocs.io/en/latest/source/examples/optics/diffraction_slit.html#XY

Comments (2)

  1. LUIS MIGUEL SANCHEZ BREA repo owner

    Sorry for my late answer.

    If you are using a .py file, you need to include plt.show() when you want to display an image.

    If you are using a .ipynb file, images should display easily. If not, make me know.

    Luis Miguel

  2. Log in to comment