Metadata-Version: 2.4
Name: fixedfig
Version: 0.1.3
Summary: A wrapper for matplotlib's plt.show() that globally sets figure window size, position, and target screen.
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: matplotlib
Requires-Dist: pyglet==1.5.27
Dynamic: description
Dynamic: description-content-type
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# fixedfig.py written by Charlie 8/22/2025
"""
fixedfig.py
-------------
This module provides a replacement for matplotlib plt.show() that allows
global configuration of figure window size, position, and target screen.

Dependencies:
    pip install matplotlib
    pip install pyglet==1.5.27  # required for multiscreen support

Features:
1. Fixed window size and centered display.
2. Adaptive window size with top-left corner offset.
3. Supports choosing which screen to display on (primary or secondary).
4. Compatible with TkAgg. Switch to the TkAgg backend by default on macOS to ensure window control

Usage:
    import fixedfig
    # Fixed size 800x600, centered on primary screen
    fixedfig.set_show_config([800, 600], fixed_size=True, screen_index=0)
    plt.plot(...)
    plt.show()

    # Adaptive size, offset on secondary screen
    fixedfig.set_show_config([100, 50], fixed_size=False, screen_index=1)
    plt.plot(...)
    plt.show()
"""
-------------
Install:
    ```bash
    pip install -e plot_utils_pkg/
