Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standalone plotting functions #51

Open
ahmed-f-alrefaie opened this issue Feb 14, 2025 · 0 comments
Open

Standalone plotting functions #51

ahmed-f-alrefaie opened this issue Feb 14, 2025 · 0 comments

Comments

@ahmed-f-alrefaie
Copy link
Contributor

ahmed-f-alrefaie commented Feb 14, 2025

The TauREx plotter is a little big on the tooth and I think it would be worth moving a lot of the functions into standalone plotting functions that people can use outside of the HDF5 format. I'm using a notebook but I am having to reimplement the functions in Plotter to use them directly in the notebook

Proposal

There should be a taurex.plot module that contains useful plotting functions. For example:

import taurex.plot as tplot

fig, ax = plt.subplots()

im = tplot.plot_optical_depth(ax, tau, pressure, wavelengths)

plt.show()

Which would plot the optical depth with wavelengths and pressures:

Image

This is the optical depth without the contribtution.
To do this we could write a seperate function and combine it with the optical depth:

tplot.plot_optical_depth(ax1, tau, pressure, wavelengths)
tplot.plot_depth_contrib(ax2, tau, pressure)

Again we could introduce additional arguments to matplotlib via kwargs etc for colormaps, titles, wavelength/pressure ranges, units etc etc.

This would significantly simplify the Plotter class as well .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant