Rishikesh Kumar Rishi has Published 1162 Articles

Changing the color and marker of each point using Seaborn jointplot

Rishikesh Kumar Rishi

Rishikesh Kumar Rishi

Updated on 03-Jun-2021 12:38:49

836 Views

To change the color and marker of each point using Seaborn jointplot, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Load an example dataset from the online repository (requires Internet).Use jointplot() method to plot tips data.Use cla() method to clear ... Read More

How to put text at the corner of an equal aspect figure in Python/Matplotlib?

Rishikesh Kumar Rishi

Rishikesh Kumar Rishi

Updated on 03-Jun-2021 12:37:26

1K+ Views

To put text at the corner of an equal aspect figure in matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create a figure and a set of subplots, using subplots() method.Create x data points using numpy.Plot x on axis ... Read More

How can I add textures to my bars and wedges in Matplotlib?

Rishikesh Kumar Rishi

Rishikesh Kumar Rishi

Updated on 03-Jun-2021 12:35:22

408 Views

To add textures to bars and wedges 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.Add an axes to the figure as part of a subplot arrangement.Make a list ... Read More

How to plot cdf in Matplotlib in Python?

Rishikesh Kumar Rishi

Rishikesh Kumar Rishi

Updated on 03-Jun-2021 12:34:02

8K+ Views

To plot cdf in matplotlib in Python, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Initialize a variable N for the number of sample data.Create random data using numpy.Compute the histogram of a set of data with data and bins=10.Find ... Read More

How to adjust the branch lengths of a dendrogram in Matplotlib?

Rishikesh Kumar Rishi

Rishikesh Kumar Rishi

Updated on 03-Jun-2021 12:32:56

835 Views

To adjust the branch length of a dendrogram in Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Draw random samples (a and b) from a multivariate normal distribution.Join a sequence of arrays along an existing axis, using concatenate() method.Perform ... Read More

How to add bold annotated text in Matplotlib?

Rishikesh Kumar Rishi

Rishikesh Kumar Rishi

Updated on 03-Jun-2021 12:31:26

1K+ Views

To add bold annotated text in matplotlib, we can use LaTeX representation for labels.StepsSet the figure size and adjust the padding between and around the subplots.Create x and y data points using numpy.To set the label for each scattered point, make a list of labels.Plot xpoints, ypoints using scatter() method. ... Read More

How to plot half or quarter polar plots in Matplotlib?

Rishikesh Kumar Rishi

Rishikesh Kumar Rishi

Updated on 03-Jun-2021 12:29:13

972 Views

To plot half or quarter polar plots in 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 using figure() method.Add an axes to the figure as part of a subplot arrangement.For ... Read More

How to plot a point on 3D axes in Matplotlib?

Rishikesh Kumar Rishi

Rishikesh Kumar Rishi

Updated on 03-Jun-2021 12:27:54

5K+ Views

To plot a point on 3D axes in 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 using figure() method.Add an axes to the figure as part of a subplot arrangement, ... Read More

How to display a Dataframe next to a Plot in Jupyter Notebook?

Rishikesh Kumar Rishi

Rishikesh Kumar Rishi

Updated on 03-Jun-2021 12:25:18

1K+ Views

To display a dataframe next to a plot, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Make a Pandas dataframe with straight and square keys.Create a new figure or activate an existing figure using figure() method.Add a subplot to the ... Read More

Plotting histograms against classes in Pandas / Matplotlib

Rishikesh Kumar Rishi

Rishikesh Kumar Rishi

Updated on 03-Jun-2021 12:22:58

201 Views

To plot histograms against classes in Pandas/Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Make a potentially hetrogeneous tabular data using Pandas dataframe.Make a histogram from the DataFrame values.To display the figure, use show() method.Examplefrom matplotlib import pyplot as ... Read More

Advertisements