Closed HDeBoever closed 6 years ago
Hi Henri,
Yes, that should be no problem. I'm not sure what you try to accomplish, but the following information might be useful:
You can remove the first line in the notebook:
%matplotlib inline
in order to let the notebook use the default GUI backend, which produces interactive windows rather than inline plots. You can also choose another GUI backend by changing inline to the backend of your preference. See http://ipython.readthedocs.io/en/stable/interactive/magics.html#magic-matplotlib for details.
You can download the notebook as ordinary Python file by selecting File > Download as > Python (.py) and run the Python file from the command line, outside the notebook environment. This will also produce interactive windows using the default GUI backend. See https://matplotlib.org/faq/usage_faq.html#what-is-a-backend for details on how to select your backend.
If you already have an interactive window and want to plot onto that window, you can use the ax argument in your plot call. See http://xarray.pydata.org/en/stable/plotting.html#adding-to-existing-axis for details.
Only if you are using faceted plots you won't be able to select an existing axis or figure window as this is not supported by the xarray plotting routines. But you can generate a faceted plot window and modify it afterwards. See http://xarray.pydata.org/en/stable/plotting.html#id4 for details.
We always welcome contributions from others. I see that you already made a fork from the repository. You can use the usual GitHub workflow to contribute your work to the main repository:
Good afternoon Bas.
My team and I were wondering if is was possible to plot output from the oceanwaves module directly to the screen without using ipnb, or jupyter notebooks as is being done in this example: https://github.com/openearth/oceanwaves-python/blob/master/notebooks/oceanwaves.ipynb
We are able to run the code locally and the print statements are indicating proper output for the above provided example, but we are unable to get plots. Is there any way we can contribute to the libraries, or that you could point us in the right direction regarding this issue? More specifically, is it possible to run the library outside ipython notebooks or jupyter notebooks?
Regards,
Henri De Boever