Skip to content
This repository was archived by the owner on Apr 19, 2018. It is now read-only.
This repository was archived by the owner on Apr 19, 2018. It is now read-only.

Handling Errorbars in Replay the correct way #97

Closed

Description

@ericdill

Right now every line on the plot gets its own ScalarModel which holds a reference to a LineArtist. This is not going to work when we need to show error bars on the data because the axes.errorbar function returns a tuple of three (See end of issue). It is unclear how to update the data in an errorbar plot without resorting to an entirely new call to axes.errorbar.

Note that this is not a high priority.

Say the function call is this ::

   ret = ax.errorbar(x, y, yerr=1, xerr=1)

- ret[0] will be a matplotlib.lines.Line2D object which reresents the "data"
  portion of the plot, e.g. ``<matplotlib.lines.Line2D at 0x7f64e2a223d0>``
- ret[1] will be a list of matplotlib.lines.Line2D objects which represents
  the "caps" to the error bars in order (left_x, right_x, bottom_y, top_y), e.g. ::

    (<matplotlib.lines.Line2D at 0x7f64e2be0150>,
     <matplotlib.lines.Line2D at 0x7f64e2be0410>,
     <matplotlib.lines.Line2D at 0x7f64e2bfcad0>,
     <matplotlib.lines.Line2D at 0x7f64e2bf2a10>)

- ret[2] will be a list of matplotlib.collections.LineCollection objects which
  represents the error bar lines in order (x, y), e.g. ::

    (<matplotlib.collections.LineCollection at 0x7f64e2a6d390>,
     <matplotlib.collections.LineCollection at 0x7f64e2c81a90>)

Activity

  1. self-assigned this
    on Mar 5, 2015
  2. added this to the Someday milestone on Mar 5, 2015
  3. tacaswell commented on Mar 5, 2015

    @tacaswell
    Member

    I have a PR in mpl to make this behave better (matplotlib/matplotlib#3944)

  4. tacaswell commented on Mar 5, 2015

    @tacaswell
    Member

    and you just need to update all the pieces.

  5. ericdill commented on Mar 6, 2015

    @ericdill
    ContributorAuthor

    Yeah it's the 'update all the pieces' that seems like it is challenging to do correctly

  6. ericdill commented on Jun 21, 2015

    @ericdill
    ContributorAuthor

    Moved to NSLS-II/replay#11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions