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.6

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()

v0.1.0: Provides an enhanced version of matplotlib's plt.show(), enabling global configuration of figure window size and position.

v0.1.1: Adds global configuration of the target screen.

v0.1.2: Adds support for non-Windows platforms.

v0.1.3: Simplifies the code structure.

v0.1.4: Adds a README file.

v0.1.5: Fixes minor syntax warnings.

v0.1.6: Forces matplotlib to use the TkAgg backend by default. (Latest)


For feedback, please contact:

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.6.tar.gz (3.1 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.6-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fixedfig-0.1.6.tar.gz
  • Upload date:
  • Size: 3.1 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.6.tar.gz
Algorithm Hash digest
SHA256 17fa1930fbce6a77efd96b9a4dd6d00287dabd68ea5fc6fd0c52d5c2b94caadf
MD5 08f9456b7c75e6a5815b5e03dbcb644a
BLAKE2b-256 af53f4f4810d968664f74538095621ba913a300a7bd93868a903eb6f160e6445

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fixedfig-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 3.5 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a19341cf7754536f15fad3da64be67cdae68d1a5da2f603c5d3cc30dfa60ea37
MD5 dad0505a240610be1868cf52da907085
BLAKE2b-256 138251847035cfeb33be44a0913b666ddae346dcfba32549e6284a6503c75379

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