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
    • Plotting pipeline
  • Gallery
    • GR
    • PythonPlot
    • PlotlyJS
    • PGFPlotsX
    • UnicodePlots
    • Gaston
    • InspectDR
  • User Gallery
  • API
Version
  • Histogram2D (complex values)
  • Histogram2D (complex values)
GitHub

Histogram2D (complex values)

Source code Author Update time

using Plots
plotlyjs()
n = 10000
x = exp.(0.1 * randn(n) .+ randn(n) .* im)
histogram2d(x, nbins = (20, 40), show_empty_bins = true, normed = true, aspect_ratio = 1)

plotlyjs_ref038


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.14.1 on Monday 14 July 2025. Using Julia version 1.11.6.