Skip to main content

axclf

Save/restore Matplotlib axes limits during iterative and interactive development.

Background

This functionality becomes useful when using cell-mode functionality in editors such as IdleX, Spyder, IEP, etc. During algorithm prototyping, plots are generated. These helper routines allow for inspecting a region of interest on a plot, and then running a change to see its effects without needing to re-zoom/pan to the region of interest.

Example

from pylab import *
from axclf import *
ion()

## interactive cell
figure(1)
axclf()  # save axes limits and clear figure

ex = 6  # adjust this number when re-running, (CTRL+Plus in IdleX)

x = linspace(0, 10, 1000)
y = sin(x) ** ex
plot(x, y)

axrestore()  # restore axes limits

Metadata

Release files for axclf 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for axclf 0.2.0
File Size Uploaded
axclf-0.2.0.zip 5.1 kB Details

Release files / axclf-0.2.0.zip

Download URL axclf-0.2.0.zip
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
141b606c2478470eb0e0189c32b3546536f509f3a6e8e23d98b3d111d1ceb431
BLAKE2b-256 checksum
How to use checksums
93a19681697b838342b5e99d57a882321c0af9c90ffc2a0ec3d8c998a7a2333b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.9.2

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page