
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- 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 1156 Articles

Rishikesh Kumar Rishi
968 Views
To plot a color wheel based on a colormap using Python/Matplotlib, we can use the colorbar class and can use copper colormap.StepsSet the figure size and adjust the padding between and around the subplots.Create a new figure or activate an existing figure using figure() method.Add an axes to the figure ... Read More

Rishikesh Kumar Rishi
7K+ Views
To connect two points on a 3D scatter plot, we can take the following stepsSet the figure size and adjust the padding between and around the subplots.Create a new figure or activate an existing figure using figure() method.Add an axes to the current figure as a subplot arrangement.Create lists for ... Read More

Rishikesh Kumar Rishi
2K+ Views
We can plot statsmodels linear regression (OLS) with a non-linear curve but with linear data.StepsSet the figure size and adjust the padding between and around the subplots.To create a new one, we can use seed() method.Initialize the number of sample and sigma variables.Create linear data points x, X, beta, t_true, ... Read More

Rishikesh Kumar Rishi
707 Views
To control the alpha value on a 3D scatter plot using Python and Matplotlib, we can set the facecolor and edgecolors value.Set the figure size and adjust the padding between and around the subplots.Create a new figure or activate an existing figure using figure() method.Add an '~.axes.Axes' to the figure ... Read More

Rishikesh Kumar Rishi
25K+ Views
To show all X coordinates (or Y coordinates), we can use xticks() method (or yticks()).StepsSet the figure size and adjust the padding between and around the subplots.Create x and y data points using numpy.Set x=0 and y=0 margins on the axes.Plot x and y data points using plot() method.Use xticks() ... Read More

Rishikesh Kumar Rishi
2K+ Views
To customize the axis label in a Seaborn jointplot, we can take the following stepsSet the figure size and adjust the padding between and around the subplots.Create x and y data points using numpy.Use jointplot() method to plot a joint plot in Seaborn.To set the customized axis label, we can ... Read More

Rishikesh Kumar Rishi
3K+ Views
To decrease the density of x-ticks in Seaborn, we can use set_visible=False for odd positions.StepsSet the figure size and adjust the padding between and around the subplots.Create a dataframe with X-axis and Y-axis keys.Show the point estimates and confidence intervals with bars, using barplot() method.Iterate bar_plot.get_xticklabels() method. If index is ... Read More

Rishikesh Kumar Rishi
4K+ Views
To remove the space between subplots in matplotlib, we can use GridSpec(3, 3) class and add axes as a subplot arrangement.StepsSet the figure size and adjust the padding between and around the subplots.Add a grid layout to place subplots within a figure.Update the subplot parameters of the gridIterate in the ... Read More

Rishikesh Kumar Rishi
2K+ Views
A simple call to the imread method loads our image as a multi-dimensional NumPy array (one for each Red, Green, and Blue component, respectively) and imshow displays our image on the screen. Whereas, cv2 represents RGB images as multi-dimensional NumPy arrays, but in reverse order.StepsSet the figure size and adjust ... Read More

Rishikesh Kumar Rishi
4K+ Views
To make matplotlib scatterplots transparent as a group, we can change the alpha value in the scatter() method argument with a different group value.StepsSet the figure size and adjust the padding between and around the subplots.Make a method to return a grouped x and y points.Get group 1 and group ... Read More