Skip to main content
Ctrl+K
marsilea 0.3.5 documentation - Home
  • Tutorial
  • Gallery
  • API
  • Installation
  • How-To
  • GitHub
  • Tutorial
  • Gallery
  • API
  • Installation
  • How-To
  • GitHub

Section Navigation

  • Basics
    • Grouped heatmap
    • Heatmap
    • Annotate stacked bar
    • Two Heatmaps
  • All Plotters
    • AnnoLabels
    • Arc
    • Area
    • Bar
    • Box
    • Boxen
    • CenterBar
    • Chunk
    • ColorMesh
    • Colors
    • FixedChunk
    • Labels
    • MarkerMesh
    • Numbers
    • Point
    • SeqLogo
    • SizedMesh
    • StackBar
    • Strip
    • Swarm
    • TextMesh
    • Title
    • Violin
  • Real World Data Visualization
    • Les Miserables Arc Diagram
    • Current available plotters in Marsilea
    • Bivariate Distribution
    • Mouse Embryo Map
    • Fat content in cooking oils
    • Breast cancer mutation with Oncoprinter
    • Visualizing Single-cell RNA-seq Data
    • Visualizing Single-cell Multi-Omics Data
    • Sequence Alignment Plot
    • Upset Plot
  • Gallery
  • All Plotters
  • Numbers

Note

Go to the end to download the full example code

Numbers#

Numbers is to display numbers in a bar plot.

from marsilea.plotter import Numbers
import numpy as np
import matplotlib.pyplot as plt

_, ax = plt.subplots()
data = np.random.randint(0, 10, 10)
Numbers(data).render(ax)
plot numbers

Total running time of the script: (0 minutes 0.512 seconds)

Download Jupyter notebook: plot_numbers.ipynb

Download Python source code: plot_numbers.py

Gallery generated by Sphinx-Gallery

previous

MarkerMesh

next

Point

© Copyright 2023, Mr-Milk.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.2.