Topics

Matplotlib

About this topic: Articles tagged __TAG__

Showing 124 articles

Topics

Articles

Showing 124 articles

How-tos How to Plot a Circle in Matplotlib We can plot a circle using patches circle, circle equation, and scatter plot in Matplotlib. How-tos How to Plot a 2D Heatmap With Matplotlib We can plot a 2D heatmap using imshow() function,seaborn library and pcolormesh() function. How-tos How to Display Multiple Images in One Figure Correctly in Matplotlib We can display multiple images in one figure in Matplotlib by using subplot in for loop to display every image. How-tos How to Manually Set the Size of the Bins in Matplotlib Histogram To manually set the size of the bins in Matplotlib we calculate the number of bins for required width and pass no. of bins as a parameter in hist2d() function. How-tos How to Change Space Between Subplots in Matplotlib We use tight_layout(), subplots_adjust() and subplot_tool() methods to change subplot size/space in Matplotlib. How-tos How to Connect Scatterplot Points With Line in Matplotlib We can connect scatterplot points with a line by calling show() after we have called both scatter() and plot(), calling plot() with the line and point attributes, and using the … How-tos How to Add Title to Subplots in Matplotlib We can add a title to subplots in matplotlib using set_title() and title.set_text() method. How-tos How to Hide Axis Text Ticks and/or Tick Labels in Matplotlib Different methods could hide axis text ticks and/or tick labels in Matplotlib like xaxis.set_visible(False), xaxis.set_ticks([]), xaxis.set_ticklabels([]), and setting the ticks … How-tos How to Draw Rectangle on Image in Matplotlib This how-to article introduces how to draw rectangle on image in Matplotlib. Rectangle patch should be added to the plot by add_patch method to draw the rectangle on image in … How-tos How to Create Different Subplot Sizes in Matplotlib This how-to article introduces how to create different subplots size in Matplotlib. How-tos How to Place Legend Outside the Plot in Matplotlib This tutorial introduces how to place legend outside the plot in Matplotlib. How-tos How to Set Tick Labels Font Size in Matplotlib This tutorial introduces how to set tick labels font size in Matplotlib. How-tos How to Rotate X-Axis Tick Label Text in Matplotlib This tutorial introduces how to rotate x-axis xtickslabel text in Matplotlib. How-tos How to Plot Horizontal and Vertical Line in Matplotlib This tutorial introduces how to plot horizontal and vertical line in Matplotlib. We introduce two methods that use different coordinates in Matplotlib. How-tos %matplotlib Notebook This post concentrates on explaining the different steps that are involved in creating a %matplotlib notebook graph in Python using the Matplotlib package. So, all detail about the … How-tos Differences Between cla(), clf() and close() Methods in Matplotlib This tutorial introduces the differences between methods: cla(), clf() and close(). matplotlib.pyplot.cla() method clears the current axes, matplotlib.pyplot.clf() method clears … How-tos twinx and twiny in Matplotlib This tutorial explains how we can create twin axes in Matplotlib with common X-axis or Y-axis using matplotlib.axes.Axes.twinx() and matplotlib.axes.Axes.twiny() in Python. How-tos Matplotlib.pyplot.specgram() in Python This tutorial explains how we can plot spectrograms in Python using the matplotlib.pyplot.specgram() and scipy.signal.spectrogram() methods. How-tos Matplotlib 3D Projection This tutorial explains how we can create 3d plots using the Matplotlib using the mplot3d package from the mpl_toolkits library. How-tos Color Cycle in Matplotlib In this demo tutorial, we introduce the color cycle and see how to get and set the color property with the help of the color cycle in Matplotlib. How-tos Matplotlib PyCharm In this article, we will learn installing Matplotlib in PyCharm IDE. We are also visualizing the data in line, bar, histogram, grid, and marker plots. How-tos No Handles With Labels Found to Put in Legend This article demonstrates how we can solve the warning (No handles with labels found to put in legend) when trying to plot something with Matplotlib. How-tos Magic Function Inline in Matplotlib In this demonstration we learn what is magic function then we see different magic functions available in Matplotlib after this we discuss the inline function. How-tos Interactive Sliders in Matplotlib How to use interactive Sliders in Matplotlib.

← All topics