{ "info": { "author": "Chris Beaumont", "author_email": "cbeaumont@cfa.harvard.edu", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Scientific/Engineering :: Visualization" ], "description": "ds9norm\n=======\n\nThis file implements a matplotlib Normalize object which mimics the\nfunctionality of image scaling functions in\n`ds9 `__. It provides 5 ways of\nconfiguring image scaling:\n\n- Clipping the low and high intensities at specified percentiles\n (``clip_lo``, ``clip_hi``)\n- Specifying an intensity transfer function for ramping from black to\n white (``stretch``)\n- Setting the mid-point of this transfer function (``bias``, akin to\n dragging the right mouse button left/right in ds9)\n- Setting how sharp the transition from black-white is (``contrast``,\n akin to dragging the right mouse button up/down in ds9)\n\nExamples\n--------\n\nSee the `example\nnotebook `__\n\n.. code:: python\n\n\n data = fits.getdata('M51.fits')\n norm = DS9Normalize(bias=0.2)\n figure, axs = plt.subplots(ncols=3, nrows=3, squeeze=False, tight_layout=True)\n\n for ax, bias in zip(axs[2], [.2, .5, .8]):\n ax.imshow(data, norm=DS9Normalize(bias=bias))\n ax.set_title('Bias = %0.1f' % bias)\n\n for ax, contrast in zip(axs[1], [0.5, 1, 2]):\n ax.imshow(data, norm=DS9Normalize(contrast=contrast))\n ax.set_title('Contrast = %0.1f' % contrast)\n\n for ax, stretch in zip(axs[0], ['linear', 'sqrt', 'arcsinh']):\n ax.imshow(data, norm=DS9Normalize(stretch=stretch))\n ax.set_title(stretch)\n\n.. figure:: gallery.png\n :alt: ds9norm demo\n\n ds9norm demo\nBuild Status\n------------\n\n[|Build Status|\\ ]\n(https://travis-ci.org/glue-viz/ds9norm?branch=master) [|Coverage\nStatus|\\ ] (https://coveralls.io/r/glue-viz/ds9norm)\n\n.. |Build Status| image:: https://travis-ci.org/glue-viz/ds9norm.png\n.. |Coverage Status| image:: https://coveralls.io/repos/glue-viz/ds9norm/badge.png", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/glue-viz/ds9norm", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "ds9norm", "package_url": "https://pypi.org/project/ds9norm/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ds9norm/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/glue-viz/ds9norm" }, "release_url": "https://pypi.org/project/ds9norm/0.1/", "requires_dist": null, "requires_python": null, "summary": "A Matplotlib normalize object that replicates DS9 image stretching", "version": "0.1" }, "last_serial": 1183156, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "ee7ec8c9d641343bdac5b3d3bfc8f7ac", "sha256": "76e215ef1ab308d27e34f6c8843ce555d53996b08f109ffa9f946c190c149c7b" }, "downloads": -1, "filename": "ds9norm-0.1.tar.gz", "has_sig": false, "md5_digest": "ee7ec8c9d641343bdac5b3d3bfc8f7ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4941, "upload_time": "2014-08-07T17:51:46", "url": "https://files.pythonhosted.org/packages/e4/48/3a50bdf71ec5d6c1187077db6277d4e22096a35e8c7679cb68645d87f6c5/ds9norm-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ee7ec8c9d641343bdac5b3d3bfc8f7ac", "sha256": "76e215ef1ab308d27e34f6c8843ce555d53996b08f109ffa9f946c190c149c7b" }, "downloads": -1, "filename": "ds9norm-0.1.tar.gz", "has_sig": false, "md5_digest": "ee7ec8c9d641343bdac5b3d3bfc8f7ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4941, "upload_time": "2014-08-07T17:51:46", "url": "https://files.pythonhosted.org/packages/e4/48/3a50bdf71ec5d6c1187077db6277d4e22096a35e8c7679cb68645d87f6c5/ds9norm-0.1.tar.gz" } ] }