finding of surface under a graph - python

I am a complete newby in python and data processing. So many apologies in advance, if my question will seem to you evident or stupid.
I need to treat the graphical data like this:
The goal is to measure the surface of the parts, like drawn here:
and to measure the heights of the parts like this:
Right now I have downloaded pandas, numpy and matplotlib libraries to work with graphics. Could someone tell me if I need some additional libraries to perform such an analysis?
And the main question: Does somebody know the ways to perform the treatment of the graphs, like described above? Is it feasible in python?
Thank you in advance and have a nice day!

Related

Statistical significance for spectral analysis in python

I am doing spectral analysis using Python 3.7.
I know there are several ways to use scipy in Python (scipy.signal.welch, scipy.signal.periodogram..)
And the picture that I made using it is as follows.
But what I want to do is test this statistical significance. Like Red dotted line in the figure below.
This picture is not the result of using Python. I want to know how to draw a picture like this through Python. Is there a simple way or tool to do it?
It would be helpful if you could attach a site with an example.

New to Python, wondering if creating a specific graphic is possible

I'm brand new to Python (as in I just started looking at it today). My only other coding experience is in Matlab and a little bit in R. I can't do what I want to in Matlab, so I'm wondering if Python is the tool I need. I want to make a graphic similar to what is seen here: https://www.cbc.ca/news/technology/charts-climate-change-bar-codes-1.4802293
I have a matrix of weather data which I would use to create the colour values. Is something like this possible in Python, and if so could someone help me with finding some resources to learn how to do so?
Thanks!
Well, it seems ur looking to get some good visualizations, i bet you could start with visualization packages in python. Like ggplot2 in R, python has matplotlib, and seaborn libraries which can greatly help you to achieve this. Below are some resources you can look at : For matplotlib follow this : https://matplotlib.org/gallery/index.html
and for seaborn : https://seaborn.pydata.org/examples/index.html
Hope this helps!

a Pythonic way to draw a bump chart

I have a csv file that contains data I want to represent using a bump chart (as an example )
http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0003nk
BUT I need to have some control over the formatting and would like to approach this in the most Pythonic way possible ( I am fairly new to Python using 3.5) so wonder if anyone could tell me which graphing package gives me the kind of control that would allow me to:
draw a bump chart
specify the font (Gill Sans)
specify the number of pixels per centimeter squared (about 10000)
If anyone has a package that is in the open source environment that would be the best fit for me I would be grateful.
SO I have accidently found my answer myself in the example I gave. A VERY splendid man called Pascal Schetalat has an EXCELLENT implementation in Python using Numpy and Pandas. Here is the link
http://nbviewer.ipython.org/gist/pascal-schetelat/8382651
thank YOU Pascal

Visual representation of a Ranking over time (image provided)

The graph below shows a ranking of countries at 10 different points. The cool thing with this graph is that it allows you to track changes in the ranking over time. I want to create create something similar, but I have no idea how it was created...
My guess is that it was created using some design tool like adobe indesign, but my hope is that there might be some other tools for obtaining such a graphic (maybe even a way to do it within Mathematica or Python?)?
Any ideas and/or suggestions on where to look would be much appreciated.
PS: In case I did not post this in the most appropriate of stackExchange's many forums--my apology.
it is called a bump chart, you can learn how to make it with python in this article
How to make a bump chart

Edges with Direction in pyqtgraph GraphItem

I am trying to visualize a Control Flow Graph in Python using pyqtgraph. I have the following two problems.
How can I visualize the edges with a direction?
How can I visualize a self edge?
I tried looking into the documentation, but couldn't find. Obviously, I didn't get time to read it all!
While pyqtgraph is awesome, for my use case I found a much better tool to do this.
graphviz is a nice tool to develop Control Flow Graphs quite conveniently, and has a large number of features for this particular problem.
For direction, you might add a pg.ArrowItem at the end of each line (although this could have poor performance for large networks), and for self connections, QtGui.QGraphicsEllipseItem combined with an arrow.

Categories