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

Section Navigation

  • Basics
    • Complex annotated heatmap in Python
    • Heatmap in Python
    • Stacked bar chart in Python
    • Two heatmaps side by side in Python
  • All Plotters
    • AnnoLabels
    • Arc
    • Area
    • Bar
    • Box
    • Boxen
    • CenterBar
    • Chunk
    • ColorMesh
    • Colors
    • Emoji
    • FixedChunk
    • Image
    • Labels
    • MarkerMesh
    • Numbers
    • Point
    • Range
    • Sequence logo in Python
    • SizedMesh
    • StackBar
    • Strip
    • Swarm
    • TextMesh
    • Title
    • Violin
  • Real World Data Visualization
    • Arc diagram in Python: Les Misérables network
    • Current available plotters in Marsilea
    • Bivariate distribution plot in Python (joint plot with marginals)
    • Spatial map annotation in Python: mouse embryo
    • Cross-layout stacked bar chart in Python: fat in cooking oils
    • Oncoprint in Python: TCGA breast cancer mutations
    • Single-cell RNA-seq heatmap in Python (PBMC 3k)
    • Single-cell multi-omics figure in Python
    • Sequence alignment plot in Python (MSA)
    • Significance annotation in Python (p-value brackets)
    • Bar chart with images in Python: TIOBE index
    • Genome track plot in Python
    • UpSet plot in Python: IMDB top 1000 movies
  • Gallery
  • All Plotters
  • Bar

Note

Go to the end to download the full example code.

Bar#

Bar is a wrapper for seaborn’s barplot.

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

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

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

Download Jupyter notebook: plot_bar.ipynb

Download Python source code: plot_bar.py

Download zipped: plot_bar.zip

Gallery generated by Sphinx-Gallery

previous

Area

next

Box

© Copyright 2026, Mr-Milk.

Created using Sphinx 9.1.0.

Built with the PyData Sphinx Theme 0.20.0.