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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Same script to compute and replot spectra #135
Comments
What about we couple it with pypdfplot 馃榿? |
I had forgotten about this amazing library ! (you should post it on Reddit btw, you are the living proof that it worked for RADIS ! :) ). It sounds a bit trickier than the simple implementation I suggested above, and will answer a slightly different need. But it also bring new opportunities : one could actually share a Spectrum under .pdf, and just have to rename it to .py to be able to access the script and replot it ! Btw, could pypdfplot support .svg ? Because Word does, and that would be a perfect alternative to Origin. Should I open an Issue there ? |
Nice idea, but it seems that you already implemented it in radis.database ? |
[ regarding pypdfplot: go ahead and open an issue! although chances are slim... I will make a reddit post when I finish the matplotlib backend so you can use it by just calling plt.savefif() ] One way to save plots for later that could be useful is pickling the matplotlib figure:
Of course this is just for short term fix, because the spectrumfactory object would be lost in this case. |
See arunavabasu-03/radis-app#619 (comment) for new requirements |
馃幆 Describe what you'd like
Ever happened that you computed a spectrum, plotted it, then need to re-plot it few months later and therefore need to recompute it ? What if the spectrum took several minutes to compute ?
We could have a similar feature for calc_spectrum that automatically saves to a file, and retrieves from the file if it's there already.
馃挕 Possible implementations
Edit : there is already a "save_to" parameter in calc_spectrum.
Questions :
Tip : you can vote for New Features on https://feathub.com/radis/radis
The text was updated successfully, but these errors were encountered: