- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Plot parallel coordinates in Matplotlib
To plot parallel coordinates, we can take the following Steps −
Load dataset iris using Seaborn (Need internet).
Pass the loaded data into the parallel_coordinates() method, which will help in parallel plotting.
To display the figure, use the show() method.
Example
import matplotlib.pyplot as plt from pandas.plotting import parallel_coordinates import seaborn as sns plt.rcParams["figure.figsize"] = [7.50, 3.50] plt.rcParams["figure.autolayout"] = True data = sns.load_dataset('iris') parallel_coordinates(data, 'species', colormap=plt.get_cmap("Set2")) plt.show()
Output
- Related Articles
- Showing points coordinates in a plot in Python using Matplotlib
- How to make a quiver plot in polar coordinates using Matplotlib?
- How to plot bar graphs with same X coordinates side by side in Matplotlib?
- Plot scatter points using plot method in Matplotlib
- Plot animated text on the plot in Matplotlib
- Contour hatching in Matplotlib plot
- How to a plot stem plot in Matplotlib Python?
- Store mouse click event coordinates with Matplotlib
- How to get coordinates from the contour in matplotlib?
- Line plot with arrows in Matplotlib
- Annotate Time Series plot in Matplotlib
- Transparency for Poly3DCollection plot in Matplotlib
- Plot Matplotlib 3D plot_surface with contour plot projection
- How to make Matplotlib show all X coordinates?
- Plot curves in fivethirtyeight stylesheet in Matplotlib

Advertisements