jayroxis / PINNs

PyTorch Implementation of Physics-informed Neural Networks
515 stars 128 forks source link

Unable to visualize data in test code #2

Closed michaeljehan closed 2 years ago

michaeljehan commented 3 years ago
Screen Shot 2021-10-18 at 4 11 53 PM

I am currently trying out the Burgers Identification (PyTorch) code, however, It was able to train, but I cannot visualize the result. Any suggestionn on how to fix it? Thanks

jayroxis commented 3 years ago

The visualization of text uses LaTex. Did you have it installed? If it doesn't work, you can try to remove the Tex rendering.

jayroxis commented 3 years ago

The latex rendering configuration can be found in line 22-23 at Utilities/plotting.py. Remove these two lines:

    "pgf.texsystem": "pdflatex",        # change this if using xetex or lautex
    "text.usetex": True,                # use LaTeX to write all text
soren-hub commented 2 years ago

@michaeljehan If you use version 3.1.2 of matplotlib the problem disappears.

pip install matplotlib==3.1.2