GithubHelp home page GithubHelp logo

hshhrr / plotly-upset Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 832 KB

UpSet intersection visualization utility for Plolty (Python-only)

License: MIT License

Python 100.00%
data-analysis data-visualization pandas plotly plotting upset visualization

plotly-upset's People

Contributors

hasan-shahrier avatar hshhrr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

plotly-upset's Issues

Issure with sorting along y_axis

Hey, it seems that when sorting along the y-axis is on, the order of the black dots and edges is not correct anymore. It seems that reordering of the dots and edges is not implemented for sorted_y (see difference upper and lower). Could you perhaps take a look at it? Otherwise the package is absolutely awesome

 if sorted_x is not None:
            a, b, c = int_ss, string_repr, np.arange(0, 2 ** len(sets))
            order = False if sorted_x.lower() == "a" or sorted_x.lower() == "ascending" else True
            sorted_list = sorted(zip(a, b, c), reverse=order)
            transposed = np.array(sorted_list).T

            a, b, c = transposed

            int_ss, string_repr, _sorted_sequence = a.astype(int), b, c.astype(int)

            t, f, edges = get_sorted_nodes_and_edges(
                t=t, f=f, edges=edges,
                sorted_sequence=_sorted_sequence
            )

        if sorted_y is not None:
            a, b = ind_ss, sets
            order = False if sorted_y.lower() == "a" or sorted_x.lower() == "ascending" else True
            sorted_list = sorted(zip(a, b), reverse=order)
            transposed = np.array(sorted_list).T
            a, b = transposed
            ind_ss, sets = a.astype(int), b

Plot in vertical way

Hi:

Thank you for such a great library. This is more a question rather than an issue: I have a dataset with many groups (more than 5), meaning that the combination, or intersections, is quite large, and hence I was wondering if it is possible to generate the bar plot with horizontal bars and also with rotation of the connected dots to grow the list of combinations vertically and not horizontally.

Again, thank you for your package.

Support for `polars.DataFrame`

I really like to use plotly and am currently experimenting more complex visualisations. Sofar, I really like plotly_upset. As I really prefer to use polars over pandas, I would like to add support for polars.DataFrame to this project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.