Python Forum
suggest specific tutorial - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: suggest specific tutorial (/thread-11747.html)

Pages: 1 2


suggest specific tutorial - SchroedingersLion - Jul-24-2018

Greetings guys,

I am new here and new to Python. I am working at my Master thesis right now, which is in theoretical physics. We do lots of calculation intensive simulations using C++, but post processing and data visualisation is awful with that language.

I have heard about the enormous capabilities of Python in this field.
Usually, my simulations yield a .txt file with different columns of numbers. What I need is a method to create high quality scientific plots, with the ability to manipulate axis scaling, axis description, plot colour and so on.

Anything aside from that is not necessary for me for now.
So I would like you to give me your recommendations for tutorials I should work through in order to not waste time with stuff I will probably not need.
Like, what kind of basics do I need before I can start digging into the data visualisation stuff and what kind of tutorials would you recommend for these basics and for my specific needs?

Best regards,
SchroedingersLion


RE: suggest specific tutorial - Larz60+ - Jul-24-2018

Assuming that you can pick up the basics of python as you move forward in tutorials, I'd suggest:
first, take a look at what numpy has to offer: https://docs.scipy.org/doc/numpy/reference/routines.html

The basic tutorial is here:
https://docs.scipy.org/doc/numpy/user/quickstart.html

Then numpy: http://www.numpy.org/
tutorial here: https://docs.scipy.org/doc/numpy/user/quickstart.html

Then, you want to look at matplotlib: https://matplotlib.org/
tutorials here: https://matplotlib.org/resources/index.html


RE: suggest specific tutorial - SchroedingersLion - Jul-25-2018

Hello Larz,

thank your for the reply and the links!

So I assume matplotlib is used for plotting whereas numpy can be used to integrate my c++ code in it.

If I have limited time, is numpy really necessary? Can't I just use my output files of the c++ program to work with matplotlib?

Regards


RE: suggest specific tutorial - Larz60+ - Jul-25-2018

Quote:Can't I just use my output files of the c++ program to work with matplotlib?

you can, see: http://intermediate-and-advanced-software-carpentry.readthedocs.io/en/latest/c++-wrapping.html


RE: suggest specific tutorial - SchroedingersLion - Jul-25-2018

(Jul-25-2018, 11:55 AM)Larz60+ Wrote:
Quote:Can't I just use my output files of the c++ program to work with matplotlib?

you can, see: http://intermediate-and-advanced-software-carpentry.readthedocs.io/en/latest/c++-wrapping.html

It's not about wrapping, I am talking about just importing a data file, say a .txt file containing two columns of numbers, into matplotlib to plot?


RE: suggest specific tutorial - SchroedingersLion - Jul-25-2018

Also, the "basic tutorial" link you provided is once again a NumPy tutorial, not a python basics tutorial.

(Jul-24-2018, 07:29 PM)Larz60+ Wrote: Assuming that you can pick up the basics of python as you move forward in tutorials, I'd suggest:
first, take a look at what numpy has to offer: https://docs.scipy.org/doc/numpy/reference/routines.html

The basic tutorial is here:
https://docs.scipy.org/doc/numpy/user/quickstart.html

Then numpy: http://www.numpy.org/
tutorial here: https://docs.scipy.org/doc/numpy/user/quickstart.html

Then, you want to look at matplotlib: https://matplotlib.org/
tutorials here: https://matplotlib.org/resources/index.html



RE: suggest specific tutorial - Larz60+ - Jul-25-2018

Quote:Also, the "basic tutorial" link you provided is once again a NumPy tutorial, not a python basics tutorial.
Sorry, I got the impression that was what you were looking for.

I like: https://www.python-course.eu/python3_course.php


RE: suggest specific tutorial - dageci - Jul-26-2018

Hi,
if I understand you right. You have the data in a text file (csv or txt) and you want to visualize the data?
If so, maybe you can take a look on using a free Microsoft Power BI to do this.

Here is a youtube video:
https://www.youtube.com/watch?v=TMMOByVrgzY
or this one:
https://www.youtube.com/watch?v=BsXliHbOFDM


RE: suggest specific tutorial - buran - Jul-26-2018

(Jul-26-2018, 11:25 AM)dageci Wrote: Hi, if I understand you right. You have the data in a text file (csv or txt) and you want to visualize the data? If so, maybe you can take a look on using a free Microsoft Power BI to do this. Here is a youtube video: https://www.youtube.com/watch?v=TMMOByVrgzY or this one: https://www.youtube.com/watch?v=BsXliHbOFDM

@dageci: Being on python forum, people come asking for python solution. OP is clear in that respect.

@SchroedingersLion: for interactive graphs you may also look at Plotly and Dash
Plotly for Python
Dash by Plotly

First you need to decide on what tool/framework to use, then find appropriate tutorial for it...


RE: suggest specific tutorial - dageci - Jul-26-2018

Sorry buran,
I wanted to help OP with a quick solution if he just needs to get some graphs based on csv data.
But yes, you are right let's concentrate on Python.
Davor