anntzer / mplcursors
Showing 1 of 1 files from the diff.

@@ -713,12 +713,12 @@
Loading
713 713
@_call_with_selection
714 714
def _(sel, *, key):
715 715
    ns = sel.artist.get_array().shape[:2]
716 -
    idxs = (np.asarray(sel.target.index)
717 -
            + {"left": [0, -1],
718 -
               "right": [0, 1],
719 -
               "up": {"lower": [1, 0], "upper": [-1, 0]}[sel.artist.origin],
720 -
               "down": {"lower": [-1, 0], "upper": [1, 0]}[sel.artist.origin]}[
721 -
                   key]) % ns
716 +
    delta = (
717 +
        {"left": [0, -1], "right": [0, +1], "down": [-1, 0], "up": [+1, 0]}[
718 +
            key]
719 +
        * np.array([-1 if sel.artist.axes.yaxis.get_inverted() else +1,
720 +
                    -1 if sel.artist.axes.xaxis.get_inverted() else +1]))
721 +
    idxs = (sel.target.index + delta) % ns
722 722
    xmin, xmax, ymin, ymax = sel.artist.get_extent()
723 723
    if sel.artist.origin == "upper":
724 724
        ymin, ymax = ymax, ymin
Files Coverage
lib/mplcursors 95.30%
Project Totals (3 files) 95.30%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading