
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
1K+ Views
To fill a polygon with a custom hatch in matplotlib, we can override the matplotlib.hatch.Shapes class.StepsSet the figure size and adjust the padding between and around the subplots.Make a hatch shape using polygon class and get the path.Override the custom hatch shape class, with shape_vertices, shape_codes, etc.Create a new figure ... Read More

Rishikesh Kumar Rishi
2K+ Views
To create curved edges with NetworkX in Python3, we can use connectionstyle="arc3, rad=0.4".StepsSet the figure size and adjust the padding between and around the subplots.Initialize a graph with edges, name, and graph attributes.Add nodes to the created graph.Add edges from one node to another.Draw the graph G with Matplotlib, with ... Read More

Rishikesh Kumar Rishi
1K+ Views
To create a diverging stacked bar chart in Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Initialize a variable N to get the number of indices.Get menMeans, womenMeans, menStd and womenStd tuple.Initialize the width of bars.Create a figure and ... Read More

Rishikesh Kumar Rishi
4K+ Views
To use Matplotlib to plot PySpark SQL results, we can take the following steps−Set the figure size and adjust the padding between and around the subplots.Get the instance that is the main Entry Point for Spark functionality.Get the instance of a variant of Spark SQL that integrates with the data ... Read More

Rishikesh Kumar Rishi
549 Views
To manipulate figures while a script is running in Python, we can take the following steps −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.Get the current axis, ax, and show the current figure.Manipulate the ... Read More

Rishikesh Kumar Rishi
844 Views
To plot a kernel density plot of dates in Pandas using Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create a Pandas dataframe.Format the Pandas date column.Plot the Pandas date as kernel density estimate class by name.Set xtick labels ... Read More

Rishikesh Kumar Rishi
450 Views
To get the length of a single unit on an axis in Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create x and y data points using numpy.Create a new figure or activate an existing figure using figure() method.Add ... Read More

Rishikesh Kumar Rishi
1K+ Views
To redraw an image using python's Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create a new figure or activate an existing figure.Get the current axis using gca() method.Show the current figure.Iterate in the range of 20 and redraw ... Read More

Rishikesh Kumar Rishi
750 Views
To color the intersection of circles/patches in Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create a and b points.Get the left, right and middle area from the two points, a and b.Get the current axes using gca() methodAdd ... Read More

Rishikesh Kumar Rishi
4K+ Views
To change the DPI of a Pandas DataFrame plot, we can use rcParams to set the dot per inch.StepsSet the figure size and adjust the padding between and around the subplots.Set the DPI values in .rcParams["figure.dpi"] = 120Create a Pandas dataframe to make a plot.Plot the dataframe.To display the figure, ... Read More