Plots logo
Plots
  • Home
  • Getting Started
    • Installation
    • Basics
    • Tutorial
      • Contour Plots
      • Histograms
  • Manual
    • Input Data
    • Output
    • Attributes
    • Series Attributes
    • Plot Attributes
    • Subplot Attributes
    • Axis Attributes
    • Layouts
      • Overview
        • Home
        • Recipes Syntax
        • Recipes Types
        • Internals
        • Public API
        • Home
        • Public API
    • Colors
    • ColorSchemes
    • Animations
    • Themes
    • Backends
    • Supported Attributes
  • Learning
  • Contributing
  • Ecosystem
    • StatsPlots
      • Introduction
      • Examples
      • Attributes
      • Introduction
        • Simple
        • Plots
    • Overview
  • Advanced Topics
    • Plot objects
    • Plotting pipeline
  • Gallery
    • GR
    • PythonPlot
    • PlotlyJS
    • PGFPlotsX
    • UnicodePlots
    • Gaston
  • User Gallery
  • API
Version
  • Specifying edges and missing values for barplots
  • Specifying edges and missing values for barplots
GitHub

Specifying edges and missing values for barplots

Source code Author Update time

using Plots
pythonplot()

In bar(x, y), x may be the same length as y to specify bar centers, or one longer to specify bar edges.

plot(bar(-5:5, randn(10)), bar(-2:2, [2, -2, NaN, -1, 1], color = 1:5), legend = false)

This page was generated using DemoCards.jl and Literate.jl.

Powered by Documenter.jl and the Julia Programming Language.

Settings


This document was generated with Documenter.jl version 1.11.0 on Sunday 11 May 2025. Using Julia version 1.11.5.