Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PiecewiseLinearNorm #4666

Closed
wants to merge 17 commits into from

Commits on Mar 30, 2015

  1. ENH: Add OffsetNorm and tests

    Borrows heavily from @Tillsen's solution found on
    StackOverflow here: http://goo.gl/RPXMYB
    
    Used with his permission dicussesd on Github here:
    matplotlib#3858
    phobson committed Mar 30, 2015
    Copy the full SHA
    7e93605 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    5e7c187 View commit details
    Browse the repository at this point in the history
  3. OffsetNorm blurb in whats_new

    phobson committed Mar 30, 2015
    Copy the full SHA
    9a0b603 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2015

  1. removed OffsetNorm.inverse method

    This will allow the ticks of colors to be spaced as desired.
    Also simplified the math per the brilliant @joferkington
    http://stackoverflow.com/a/20146989/1552748
    phobson committed Jun 6, 2015
    Copy the full SHA
    fd9e624 View commit details
    Browse the repository at this point in the history
  2. attempting to create a baseline image

    couldn't actually run the test suite b/c python
    iesn't installed as a framework.
    phobson committed Jun 6, 2015
    Copy the full SHA
    633505d View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2015

  1. Copy the full SHA
    ab11380 View commit details
    Browse the repository at this point in the history
  2. the real test image

    phobson committed Jun 8, 2015
    Copy the full SHA
    fa57cdd View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    9a01b9f View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2015

  1. Copy the full SHA
    1d8eb25 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    57ca4fa View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2015

  1. Copy the full SHA
    2919b53 View commit details
    Browse the repository at this point in the history
  2. Remove unused clip parameter

    Need to allow it in __call__ since colorbar can pass a value for clip.
    jkseppan committed Sep 3, 2015
    Copy the full SHA
    bfc96a6 View commit details
    Browse the repository at this point in the history
  3. Use process_value in PiecewiseLinearNorm

    To make it more similar to the other norms
    
    Also remove misleading comment about returning scalars
    jkseppan committed Sep 3, 2015
    Copy the full SHA
    58c505c View commit details
    Browse the repository at this point in the history
  4. Return a scalar when passed in a scalar

    Since possibly some earlier versions of numpy returned a scalar,
    wrap the value in atleast_1d before indexing.
    jkseppan committed Sep 3, 2015
    Copy the full SHA
    b069a94 View commit details
    Browse the repository at this point in the history
  5. Return 0.5 for vcenter == vmax

    np.interp handles the case vmin == vcenter, we have to add a special case
    to make the last test case pass
    jkseppan committed Sep 3, 2015
    Copy the full SHA
    fc8ce8c View commit details
    Browse the repository at this point in the history
  6. pep8 fixes

    jkseppan committed Sep 3, 2015
    Copy the full SHA
    426353c View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    ebd3753 View commit details
    Browse the repository at this point in the history