Skip to main content

A wrapper for matplotlib's plt.show() that globally sets figure window size, position, and target screen.

Project description

fixedfig 0.1.5

written by Charlie and his friends (8/22/2025)


This module provides an enhanced version of matplotlib's plt.show(), enabling 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

# Figure window fixed at 800x600 pixels and centered on the primary screen
fixedfig.set_show_config([800, 600], fixed_size=True, screen_index=0)
plt.plot(...)
plt.show()

# Figure window with adaptive size, positioned with an offset of 100x50 pixels on the secondary screen
fixedfig.set_show_config([100, 50], fixed_size=False, screen_index=1)
plt.plot(...)
plt.show()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fixedfig-0.1.5.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fixedfig-0.1.5-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file fixedfig-0.1.5.tar.gz.

File metadata

  • Download URL: fixedfig-0.1.5.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for fixedfig-0.1.5.tar.gz
Algorithm Hash digest
SHA256 475f71f3962ab166d9cf8094836d1d8129307be0a85c0ffd10c16307fb4a829f
MD5 fca2e38c20d06a342a8b7c22c6646189
BLAKE2b-256 7825b6743981828537ed78732d31472bfba6a0fddfadae64fb57a9180fdaeaec

See more details on using hashes here.

File details

Details for the file fixedfig-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: fixedfig-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for fixedfig-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 10256cc1bd50ad1f0e268d0c6425b25913d1e8c3d27cb545879ff5251178b9b1
MD5 f34cf1ad2787f3a4feb878e1a6524046
BLAKE2b-256 d66098a95293eb21c606ac40468daf1109c20d86cc891bc63dd705b438e83ee0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page