Skip to main content
Ctrl+K
UA CMS Framework 0.0.1 documentation - Home UA CMS Framework 0.0.1 documentation - Home
  • Getting Started
  • API Reference Guide
  • Getting Started
  • API Reference Guide

Section Navigation

  • afw
    • afw.common
      • afw.common.create_single_axis_histogram
      • afw.common.plot_thing
      • afw.common.stacked_colors
      • afw.common.DileptonMassToPlot
      • afw.common.DiscriminantToPlot
      • afw.common.EtaToPlot
      • afw.common.NJetToPlot
      • afw.common.PtToPlot
    • afw.dataset
      • afw.dataset.print_summary
      • afw.dataset.cached
        • afw.dataset.cached.do_request
        • afw.dataset.cached.get_all_matching
        • afw.dataset.cached.get_cross_section
        • afw.dataset.cached.persist_to_file
        • afw.dataset.cached.run_dasgoclient
      • afw.dataset.definitions
        • afw.dataset.definitions.build_definitions
        • afw.dataset.definitions.convert_section
        • afw.dataset.definitions.convert_year
      • afw.dataset.local
        • afw.dataset.local.build_datasets
        • afw.dataset.local.is_vetoed
      • afw.dataset.skimmed
        • afw.dataset.skimmed.convert_to_skimmed
        • afw.dataset.skimmed.escape_name
    • afw.objects
      • afw.objects.AnalysisConfig
      • afw.objects.ThingToPlot
    • afw.processor
      • afw.processor.MyProcessor
  • API Reference Guide
  • afw
  • afw.common
  • afw.common.stacked_colors

afw.common.stacked_colors#

afw.common.stacked_colors(num: int) → list[str][source]#

Returns a list of colors consistent with the CMS Analysis Guidelines (https://cms-analysis.docs.cern.ch/guidelines/plotting/colors/)

Parameters:

num (int) – The number of colors to request (max 10)

Returns:

A list of colors, formatted in hexadecimal

Return type:

list[str]

previous

afw.common.plot_thing

next

afw.common.DileptonMassToPlot

On this page
  • stacked_colors()

This Page

  • Show Source

© Copyright 2025, Nathan A Nguyen.

Created using Sphinx 9.1.0.

Built with the PyData Sphinx Theme 0.16.1.