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
Plotting to a new package? #980
Comments
Just a little bit of background: I think I have some time very soon to work to a GUI for logp,h diagrams and maybe some other calculations. I am not sure whether Python is the right language, but I am open for comments. Does anyone have experience to share? The questions are: (a) Python vs C++ for the calculations and (b) QT vs wxWidgets for the interface. Hints regarding the correct graph drawing facilities are also very welcome. Is there a competitor to matplotlib? Maybe in the C++ world? |
I don't use the plotting functionality in CoolProp myself, so take my comments with a grain of salt. I write bespoke plotting code on an as-needed basis. Largely this is because I find the API to be a bit awkward, and the API doesn't seem very stable. My $0.02:
|
I do not use the CoolProp plotting functions because they mix the data calculation and the plotting, so here a grain of salt to my comments as well. My choice would be Python3 and Qt for the GUI part. Matplotlib is very good software, I do not know anything comparable in the (C++) world. A library for the calculation of the plotdata would possibly be a good start, give a dataset and get data in return. Possibly save/retreive calculated data. Add saturation state for plotting or not in the wet area to calculated data. Calculation of points on the saturation lines and on Diagram edge values as begin or end of a line or line segment. This could take the performance advantages of C++. Purpose should be plotting, but not tied to a particular plot tool. |
Thank you for the inputs. For now, QT and Python is also my favourite combination and I have been playing with that already: I agree with @mayersre that the plotting code mixes calculations and drawing commmands, but I do think that this got better recently. There is Well, I am still undecided whether it is worth removing a big chunk of code from the plotting routines to create a pure calculation class or sub-package. Please let me know if any of you has a good idea regarding the architecture of separated calculation and plotting library. |
Feel free to use whatever part of the tkinter GUI you want |
Great, thanks for that. I am sure that you already found some good solutions for many problems and I really appreciate your offer. I will keep you posted. |
After a long break, development will continue at https://github.com/IPUdk/CoolPlot . It is going to be C++ and QT. |
Great news - looking forward to seeing what you are able to put together,
and to be able to learn from your experience in Qt
…On Wed, Mar 1, 2017 at 2:26 AM, Jorrit Wronski ***@***.***> wrote:
After a long break, development will continue at https://github.com/IPUdk/
CoolPlot . It is going to be C++ and QT.
I am going to update some of the CoolProp code and add an isoline tracer
to the C++ part and update the Python wrapper accordingly, see
IPUdk/CoolPlot#1 <https://github.com/IPUdk/CoolPlot/issues/1>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#980 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABxha3LqJQce9r5ob9CpkIqPSmIInws_ks5rhTnSgaJpZM4Hdz3D>
.
|
The plotting routines seem to be quite fragile and they cause a lot of errors. Maybe it is time to remove the plotting from CoolProp and create a new package just for that. In theory, the plotting is not related to the equations of state and it might make sense to decouple the code. Opinions anyone?
The text was updated successfully, but these errors were encountered: