Design custom Matplotlib style sheets for consistent visualization branding.
Create a custom Matplotlib style sheet for consistent visualizations: Brand/Style Guidelines: Colors: - Primary: [hex code] - Secondary: [hex code] - Accent: [hex code] - Background: [hex code] - Grid: [hex code] - Text: [hex code] - Cycle colors: [list for sequential data] Typography: - Font family: [specify, with fallbacks] - Title size: [points] - Label size: [points] - Tick size: [points] - Legend size: [points] - Font weight: [normal/bold] Figure Defaults: - Figure size: [width, height] - DPI: [screen and save] - Face color: [background] - Edge color: [border] - Padding/margins Axes Styling: - Spine visibility: [which to show] - Spine color and width - Grid: [major/minor/both] - Grid style: [color, alpha, line style] - Tick direction: [in/out/inout] - Tick length and width Line Defaults: - Line width: [points] - Marker size: [points] - Line styles: [solid/dashed patterns] Legend Defaults: - Location: [default position] - Frame: [on/off] - Shadow: [on/off] Save Defaults: - Format: [png/pdf/svg] - DPI: [resolution] - Tight layout: [on/off] - Transparent background: [option] Create: 1. Complete .mplstyle file 2. Python code to register style 3. Usage examples 4. Integration with seaborn
Or press ⌘C to copy