Create complex multi-panel figures with Matplotlib subplots and custom grid layouts.
Create a multi-panel figure with complex layout: Figure Overview: - Total panels: [count] - Layout complexity: [regular grid/mixed sizes/custom] - Shared elements: [axes/legends/titles] - Figure size: [width x height inches] Layout Specification: Option 1: Regular Grid - Rows: [count] - Columns: [count] - Equal sizing: [yes/no] Option 2: Mixed Panel Sizes - Large panels: [position and span] - Small panels: [positions] - Custom arrangement: [describe] Option 3: Inset Panels - Main figure: [what] - Inset position: [where] - Inset content: [zoom/detail/related] Panel Contents: Panel 1: - Chart type: [specify] - Data: [describe] - Special features: [twinx, colorbar, etc.] Panel 2: - Chart type: [specify] - Data: [describe] - Special features: [if any] [Continue for all panels] Shared Elements: - Shared X-axis: [which panels] - Shared Y-axis: [which panels] - Common legend: [content and position] - Figure title: [suptitle text] - Panel labels: [(a), (b), (c) style] Spacing and Layout: - Padding: [wspace, hspace] - Margins: [left, right, top, bottom] - Constrained layout: [yes/no] - Tight layout: [yes/no] Provide complete code using appropriate method: - plt.subplots() for regular grids - GridSpec for complex layouts - subplot2grid for specific placements - add_axes for insets
Or press ⌘C to copy