- 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
Rishikesh Kumar Rishi has Published 1162 Articles
Rishikesh Kumar Rishi
4K+ Views
To specify different colors for different bars in a matplotlib histogram, we can take the following steps −StepsSet the figure size and adjust the padding between and around the subplots.Create a figure and a set of subplots.Plot a histogram with random data with 100 sample data.Iterate in the range of ... Read More
Rishikesh Kumar Rishi
904 Views
To fill a region with only hatch (no background color) in matplotlib, we can take the following steps −StepsSet the figure size and adjust the padding between and around the subplots.Initialize a variable n to store the number of sample data.Create a figure and a set of subplots.Plot the x ... Read More
Rishikesh Kumar Rishi
2K+ Views
To set a line color to orange, and specify line markers in matplotlib, we can take the following steps −StepsSet the figure size and adjust the padding between and around the subplots.Create x and y data points using numpy.Plot the x and y data points with the attributes color='orange' and ... Read More
Rishikesh Kumar Rishi
2K+ Views
To deal with NaN value while plotting a boxplot using Python, we can take the following steps −StepsSet the figure size and adjust the padding between and around the subplots.Initialize a variable N for data samples and for range.Next create the random spread, center's data, flier high and low, get ... Read More
Rishikesh Kumar Rishi
15K+ Views
To plot a smooth line with matplotlib, we can take the following steps −StepsSet the figure size and adjust the padding between and around the subplots.Create a list of data points, x and y.Plot the x and y data points.Create x_new and bspline data points for smooth line.Get y_new data ... Read More
Rishikesh Kumar Rishi
2K+ Views
In 3D computer graphics, a voxel represents a value on a regular grid in three-dimensional space. We can say a voxel is a 3D equivalent of a pixel that is used in 2D. A pixel is a square inside of a 2D image with a position in a 2D grid ... Read More
Rishikesh Kumar Rishi
706 Views
To avoid line color repetition in matplotlib.pyplot we can take the following steps −StepsSet the figure size and adjust the padding between and around the subplots.Create x and y data points using numpy.Plot the x and y data points using plot() method.In the plot() method, use a unique hexadecimal value ... Read More
Rishikesh Kumar Rishi
4K+ Views
To visualize values on logarithmic scale on matplotlib, we can use yscale('log').StepsImport matplotlib nd numpy.Set the figure size and adjust the padding between and around the subplots.Create x and y data points using numpy.Use yscale('log') to visualize the values on a logarithmic scale.Plot x and y data points using plot ... Read More
Rishikesh Kumar Rishi
2K+ Views
To plot multiple horizontal bars in one chart with matplotlib, we can take the following steps −StepsImport the libraries pandas, matplotlib, and numpy.Set the figure size and adjust the padding between and around the subplots.Create an array for horizontal bar's position.Initialize a variable width for bar's width.Create a horizontal bar ... Read More
Rishikesh Kumar Rishi
2K+ Views
To shift the colorbar position to right in matplotlib, we can take the following steps −StepsImport numpy and matplotlib.Set the figure size and adjust the padding between and around the subplots.Initialize a variable N to store the number of sample data.Create x and y data points using numpy.Create a scatter ... Read More