In text processing, we may need to visualize some labeled data using scatter plots in matplotlib. In this tutorial, we will use an example to show you how to display them.
Color is an important part in matplotlib, in this tutorial, we will list some most used in plots.
If you plan to insert an image to latex, you can insert a pgf or eps image. In this tutorial, we will introduce how to use matplotlib to create a pgf file for latex.
Matplotlib plt.subplot() function can allow us to display some graphics in one figure. In this tutorial, we will introdue how to use this function by using some examples.
matplotlib.rcParams[‘lines.color’] allows us to change the color of the line in matplotlib. However, it has no affect on plot() function. In this tutorial, we will introduce how to fix this problem.
We can use matplotlib.rcParams[‘lines.linestyle’] to set the style of line in matplotlib. In this tutorial, we will list all the line styles to help matplotlib beginners to use.
matplotlib.rcParams is a matplotlib.RcParams object, it is a dictionary-like variable which store some rc settings in matplotlib. In this tutorial, we will introduce how to use it.
matplotlib.pyplot.imshow() can display data as an image file, we will use some examples to show you how to use this function correctly in this tutorial.
Stacked histogram is widely used in papers. In this tutorial, we will introduce how to create a stacked histogram using matplotlib in python.
Line chart is common used in data analysis field, it is easy to implement in python. In this tutorial, we will introduce python beginners to understand how to draw a line chart.