Skip to content

feat(plt): Migrate scitex.plt utilities to figrecipe #124

@ywatanabe1989

Description

@ywatanabe1989

Summary

Migrate scitex.plt utility modules to figrecipe to maintain single source of truth.

Background

figrecipe is now the canonical source for:

However, scitex.plt still contains utility modules that should live in figrecipe:

scitex/plt/
├── color/          # Color conversion, palettes, gradients
├── styles/         # Publication style presets
├── ax/             # Axis formatting utilities
├── utils/          # General plotting utilities
├── _subplots/      # Subplot management
├── io/             # Figure I/O

Proposed Migration

Phase 1: Color utilities

  • Move scitex.plt.colorfigrecipe.color
  • Functions: str2rgb, rgb2rgba, rgba2hex, gradiate_color_rgb, etc.
  • Update scitex to re-export from figrecipe

Phase 2: Style utilities

  • Move scitex.plt.stylesfigrecipe.styles (extend existing)
  • Publication presets, journal-specific configs

Phase 3: Axis utilities

  • Move scitex.plt.axfigrecipe.axes
  • Axis formatting, tick styling, label management

Phase 4: General utilities

  • Move scitex.plt.utilsfigrecipe.utils
  • Move scitex.plt.iofigrecipe.io

Phase 5: Cleanup

  • Remove migrated code from scitex
  • Update imports to use figrecipe
  • Update documentation

Benefits

  • Single source of truth for all plotting functionality
  • Reduced code duplication
  • Clearer separation: scitex = scientific workflow, figrecipe = plotting

Related


🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions