MOONBOOKS
  • Notes
  • Projects
  • Courses
  • Videos
  • Datasets
  • Version
    • English
    • French
  • Sign-In
Join-Us
Notes Articles Jupyter PDF
Thumbnail 1

How To Create And Plot Time Series in Python ?

by Benjamin Marchant
Edited: Jan. 3, 2025, 12:51 a.m.
Tags: Python; Matplotlib; Pandas;

Public
Thumbnail 1

How to Create a Plot with Two Y-Axes Using Matplotlib ?

by Benjamin Marchant
Edited: Dec. 13, 2024, 10:05 p.m.
Tags: Matplotlib;

Public
Thumbnail 1

How to Plot a Heatmap Over Polar Regions in Python Using Cartopy and Matplotlib ?

by Benjamin Marchant
Edited: Sept. 19, 2024, 7:06 p.m.
Tags: Python; Matplotlib; Cartopy;

Public
Thumbnail 1

How to create a dendrogram in Python using scipy and matplotlib ?

by Benjamin Marchant
Edited: Sept. 7, 2024, 2:45 p.m.
Tags: Matplotlib;

Public
Thumbnail 1

How to Set Axis in Polar Coordinates in Matplotlib ?

by Benjamin Marchant
Edited: Sept. 6, 2024, 6:20 p.m.

Public
Thumbnail 1

How to Calculate and Plot the Derivative of a Function Using Matplotlib and Python ?

by Benjamin Marchant
Edited: Sept. 5, 2024, 6:18 p.m.
Tags: Python;

Public
Thumbnail 1

How to generate and plot random numbers from a normal (Gaussian) distribution using python and matplotlib ?

by Benjamin Marchant
Edited: Feb. 12, 2024, 10:39 p.m.
Tags: Python; Numpy; Random numbers;

Public
Thumbnail 1

How to change the font size of axis tick labels on a matplotlib figure ?

by Benjamin Marchant
Edited: Jan. 12, 2024, 6:59 p.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to extract the intersection between two polygons in Python using Shapely ?

by Benjamin Marchant
Edited: Nov. 15, 2023, 9:50 p.m.
Tags: Python; Matplotlib; Shapely;

Public
Thumbnail 1

How to create and plot polygons in python using shapely and matplotlib ?

by Benjamin Marchant
Edited: Nov. 15, 2023, 8:19 p.m.
Tags: Python; Matplotlib; Shapely;

Public
Thumbnail 1

How to create a zoom effect on a matplotlib figure using indicate_inset_zoom() ?

by Benjamin Marchant
Edited: Aug. 31, 2023, 2:05 a.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to create and save a matplotlib figure without frame and labels ?

by Benjamin Marchant
Edited: May 16, 2023, 3 p.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to import and rotate an image using matplotlib ?

by Benjamin Marchant
Edited: May 15, 2023, 6:07 p.m.
Tags: Python; Scipy; Matplotlib; Image; Numpy;

Public
Thumbnail 1

How to custom x or y axis in a matplotlib figure ?

by Benjamin Marchant
Edited: April 19, 2023, 6:04 p.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to plot a figure with two different axes in matplotlib ?

by Benjamin Marchant
Edited: April 19, 2023, 2:15 a.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to modify the interval of the axis ticks in matplotlib ?

by Benjamin Marchant
Edited: April 18, 2023, 6:54 p.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to change the color of an axis with matplotlib ?

by Benjamin Marchant
Edited: April 18, 2023, 4:14 p.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to insert math equations in a matplotlib figure ?

by Benjamin Marchant
Edited: April 17, 2023, 3:59 p.m.
Tags: Python; Matplotlib; LaTeX;

Public
Thumbnail 1

How to extract hexadecimal color codes from a matplotlib colormap ?

by Benjamin Marchant
Edited: April 14, 2023, 6:37 p.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to create a discrete colorbar with matplotlib ?

by Benjamin Marchant
Edited: April 14, 2023, 6:08 p.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to calculate and plot Planck's law with python ?

by Benjamin Marchant
Edited: March 30, 2023, 3 a.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to save a matplotlib figure with a given size ?

by Benjamin Marchant
Edited: March 29, 2023, 8:21 p.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to plot confidence bands with Matplotlib ?

by Benjamin Marchant
Edited: March 7, 2023, 10:58 p.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to calculate and plot a 2D kernel density estimation with python ?

by Benjamin Marchant
Edited: March 3, 2023, 3:52 p.m.
Tags: Python; Matplotlib;

Public
Thumbnail 1

How to set 0 as the middle point in a matplotlib diverging colormap ?

by Benjamin Marchant
Edited: Feb. 18, 2023, 3:53 p.m.
Tags: Python; Matplotlib; Colormap;

Public
Thumbnail 1

How to import (load) an image in python ?

by Benjamin Marchant
Edited: May 4, 2021, 3:47 p.m.
Tags: Python; Pillow; Matplotlib;

Public
Thumbnail 1

How to plot a contingency table (heatmap) in python using seaborn and matplotlib ?

by Benjamin Marchant
Edited: March 31, 2021, 4:59 p.m.
Tags: Python; Matplotlib; Seaborn; Numpy;

Public
Thumbnail 1

How to plot a bar chart with a colorbar using matplotlib in python ?

by Benjamin Marchant
Edited: March 1, 2021, 6:54 p.m.
Tags: Python; Matplotlib; Numpy;

Public
Thumbnail 1

How to calculate and plot a cumulative distribution function with matplotlib in python ?

by Benjamin Marchant
Edited: May 10, 2020, 2:29 a.m.
Tags: Python; Statistics;

Public
Thumbnail 1

How to center a matplotlib figure in a Jupyter notebook ?

by Benjamin Marchant
Edited: April 14, 2020, 10:37 p.m.
Tags: Jupyter Notebook;

Public
Thumbnail 1

How to plot a complex number in python using matplotlib ?

by Benjamin Marchant
Edited: April 3, 2020, 10:17 p.m.

Public
Thumbnail 1

How to change the color background of a matplotlib figure ?

by Benjamin Marchant
Edited: Nov. 20, 2019, 5:47 p.m.

Public
Thumbnail 1

How to add some text on a matplotlib figure in python ?

by Benjamin Marchant
Edited: Nov. 7, 2019, 7:22 p.m.

Public
Thumbnail 1

How to change the size of axis labels in matplotlib ?

by Benjamin Marchant
Edited: July 31, 2019, 6:46 p.m.

Public
Thumbnail 1

How to plot a dashed line in matplotlib ?

by Benjamin Marchant
Edited: July 25, 2019, 6:05 p.m.

Public
Thumbnail 1

How to plot horizontal lines with matplotlib ?

by Benjamin Marchant
Edited: June 21, 2019, 4:10 p.m.

Public
Thumbnail 1

How to plot an angle in python using matplotlib ?

by Benjamin Marchant
Edited: June 18, 2019, 7:25 p.m.

Public
Thumbnail 1

How to plot a circle in python using matplotlib ?

by Benjamin Marchant
Edited: June 18, 2019, 6:48 p.m.

Public
Thumbnail 1

How to put the y-axis in logarithmic scale with Matplotlib ?

by Benjamin Marchant
Edited: May 26, 2019, 6:55 p.m.

Public
Thumbnail 1

How to add a grid on a figure in matplotlib ?

by Benjamin Marchant
Edited: May 26, 2019, 3:47 a.m.

Public
  • 1
  • 2
Copyright © 2025 - All rights reserved Contact Us Terms & Conditions