Visualization with Matplotlib

Histogram Histograms are one of the heavily used plots across functions as it gives a very good view of the distribution of data. Line Single line: Several Lines How do we add multiple lines in the same chart? Let us take it a bit further to plot multiple lines in the same chart. Bar Plot…

Continua a leggere →

Plot 3D Functions With Matplotlib and NumPy

Math is beautiful, and the software we have at our fingertips represents an invaluable way to explore that beauty. Never before have we been able to visualize and experiment with mathematical objects in such an accessible way. In this short tutorial I would like to break down the steps required to plot a function of…

Continua a leggere →

gnuplot for dummies…

At first glance, it might seem that Gnuplot is more difficult to use for plotting than MS Excel. But it only seems that way, the entry threshold is a little higher (you can’t use a mouse to click it, you need to read the documentation here), but in practice, it comes out much easier and…

Continua a leggere →

Basic Plotting with matplotlib

The Python ecosystem gives us the option of visualizing relationships between numbers via matplotlib, a plotting library (i.e., not part of core Python) which can produce quality figures. Inside the matplotlib package is the matplotlib.pyplot module, which is used to produce figures in a MATLAB-like environment. Here a simple example code for the matplotlib.pyplot module.…

Continua a leggere →

Basic data manipulation in Python…

In this post, we will deal with data from ECDC and we will explain basic data manipulation in Python with the Pandas package. In our day, data is everywhere in enormous size and depth. Data science is an emerging field that penetrates every aspect of our life and, lately, it has proved to be an…

Continua a leggere →

Python animations with Matplotlib

In Python, plotting graphs is straightforward — you can use powerful libraries like Matplotlib. It happens, however, that you need to visualize the trend over time of some variables – that is, you need to animate the graphs. Luckily, it’s just as easy to create animations as it is to create plots with Matplotlib. Matplotlib…

Continua a leggere →