Matplotlib.pyplot.loglog() function in Python Last Updated : 06 Jul, 2021 Comments Improve Suggest changes Like Article Like Report Prerequisites: Matplotlib Matplotlib is a comprehensive library for creating interactive, static and animated visualizations in python. Using general-purpose GUI toolkits like wxPython, SciPy, Tkinter or SciPy, it provides an object-oriented API for embedding plots into applications. Matplotlib.pyplot is a collection of functions that makes Matplotlib work like MATLAB. Here, we will be exploring loglog() function of Matplotlib.pyplot. It is used to plot a log scale over both x and y-axis. Syntax: loglog(X,Y) Where, X and Y refer to x and y coordinates respectively. Other function used is linespace(). It returns evenly spaced numbers over a specified interval. Syntax: np.linspace(start, stop, num, endpoint, retstep, dtype, axis) Where, Start : The starting value of sequence from where you want to show the line, or we can say starting point of lineStop : It is the end value of the sequence at where the line stops, unless 'endpoint' is set to False.Num : Number of samples to generate. Must be non-negative. By default, it is 50.Endpoint : It works same as stop. If it is True then stop is the last sample else stop is excluded from the sequence.Retstep : If True, return ('samples', 'step'), where `step` is the spacing between samples.Dtype : The type of the output array.Axis : The axis in the result to store the samples and it is relevant only if start or stop are array-like Example : Without loglog() Python # importing required modules import matplotlib.pyplot as plt import numpy as np # inputs to plot using loglog plot x_input = np.linspace(0, 10, 50000) y_input = x_input**8 # plotting the value of x_input and y_input using plot function plt.plot(x_input, y_input) Output: Example : With loglog() Python3 # importing required modules import matplotlib.pyplot as plt import numpy as np # inputs to plot using loglog plot x_input = np.linspace(0, 10, 50000) y_input = x_input**8 # plotting the value of x_input and y_input using loglog plot plt.loglog(x_input, y_input) Output: Comment More infoAdvertise with us Next Article Matplotlib.pyplot.loglog() function in Python T tushardhiman1999 Follow Improve Article Tags : Technical Scripter Python Technical Scripter 2020 Python-matplotlib Matplotlib Pyplot-class +1 More Practice Tags : python Similar Reads Matplotlib.pyplot.setp() function in Python Matplotlib is a library in Python and it is numerical â mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. There are various plots which can be used in Pyplot are Line Plot, Contour, Histogram, Scatter, 3D Plot, 2 min read Matplotlib.pyplot.hexbin() function in Python Matplotlib is a library in Python and it is numerical â mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. There are various plots which can be used in Pyplot are Line Plot, Contour, Histogram, Scatter, 3D Plot, 2 min read Matplotlib.pyplot.xscale() function in Python Matplotlib is a library in Python and it is numerical â mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. There are various plots which can be used in Pyplot are Line Plot, Contour, Histogram, Scatter, 3D Plot, 2 min read matplotlib.pyplot.semilogy() function in Python Matplotlib is the most popular and Python-ready package that is used for visualizing the data. We use matplotlib for plotting high-quality charts, graphs, and figures. matplotlib.pyplot.semilogy() Function The matplotlib.pyplot.semilogy() function in pyplot module of matplotlib library is used to ma 2 min read Matplotlib.pyplot.suptitle() function in Python Matplotlib is a library in Python and it is a mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. matplotlib.pyplot.suptitle() Function The suptitle() function in pyplot module of the matplotlib library is used to 3 min read Matplotlib.pyplot.plot_date() function in Python Matplotlib is a module package or library in Python which is used for data visualization. Pyplot is an interface to a Matplotlib module that provides a MATLAB-like interface. The matplotlib.pyplot.plot_date() function is like the regular plot() function, but it's tailored for showing data over dates 3 min read Matplotlib.pyplot.autumn() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. There are various plots which can be used in Pyplot are Line Plot, Contour, Histogram, Scatter, 3D Plot, 2 min read Matplotlib.pyplot.gci() in Python Matplotlib is a library in Python and it is numerical â mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. There are various plots which can be used in Pyplot are Line Plot, Contour, Histogram, Scatter, 3D Plot, 2 min read Matplotlib.pyplot.clim() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. There are various plots which can be used in Pyplot are Line Plot, Contour, Histogram, Scatter, 3D Plot, 2 min read Matplotlib.pyplot.bone() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. There are various plots which can be used in Pyplot are Line Plot, Contour, Histogram, Scatter, 3D Plot, 2 min read Like