Plots logo
Plots
  • Home
  • Getting Started
    • Installation
    • Basics
    • Tutorial
  • Manual
    • Input Data
    • Output
    • Attributes
      • Overview
      • Series Attributes
      • Plot Attributes
      • Subplot Attributes
      • Axis Attributes
    • Layouts
    • Recipes
    • Colors
    • ColorSchemes
    • Animations
    • Themes
    • Backends
    • Supported Attributes
  • Learning
  • Contributing
  • Ecosystem
    • Overview
    • GraphRecipes
      • Introduction
      • Examples
      • Attributes
  • Advanced Topics
    • Internals
  • Gallery
    • GR
    • PlotlyJS
    • PyPlot
    • PGFPlotsX
    • UnicodePlots
    • InspectDR
    • Gaston
  • User Gallery
  • API
Version
  • Heatmap, categorical axes, and aspect_ratio
  • Heatmap, categorical axes, and aspect_ratio
Edit on GitHub

Heatmap, categorical axes, and aspect_ratio

Source code Author Update time

using Plots
pyplot()
xs = [string("x", i) for i = 1:10]
ys = [string("y", i) for i = 1:4]
z = float((1:4) * reshape(1:10, 1, :))
heatmap(xs, ys, z, aspect_ratio = 1)

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 0.27.22 on Saturday 13 August 2022. Using Julia version 1.7.3.