Skip to main content

save/restore plot limits

Project description

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

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

axclf-0.2.0.zip (5.1 kB view details)

Uploaded Source

File details

Details for the file axclf-0.2.0.zip.

File metadata

  • Download URL: axclf-0.2.0.zip
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for axclf-0.2.0.zip
Algorithm Hash digest
SHA256 141b606c2478470eb0e0189c32b3546536f509f3a6e8e23d98b3d111d1ceb431
MD5 4c13f788b4a5c1ebb14a5ca37c9f520f
BLAKE2b-256 93a19681697b838342b5e99d57a882321c0af9c90ffc2a0ec3d8c998a7a2333b

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