Coder Social home page Coder Social logo

Comments (5)

has2k1 avatar has2k1 commented on September 24, 2024

Please provide an example. Thanks.

from plotnine.

cpennington avatar cpennington commented on September 24, 2024

Yeah, I haven't been able to boil down my particular application into a test-case that show's the failure, yet. Will do, though.

from plotnine.

has2k1 avatar has2k1 commented on September 24, 2024

This modified example from the tests brings up a similar issue

n = 4            # No. of ribbions in a vertical stack
m = 10          # Points
width = 2*np.pi  # width of each ribbon
x = np.linspace(0, width, m)

df = pd.DataFrame({
        'x': np.tile(x, n),
        'ymin': np.hstack([np.sin(x)+2*i for i in range(n)]),
        'ymax': np.hstack([np.sin(x)+2*i+1 for i in range(n)]),
        'z': np.repeat(range(n), m)

    })

(ggplot(df, aes('x',ymin='ymin', ymax='ymax',
                    fill='factor(z)'))
 + geom_ribbon()
 + facet_wrap('~ z')

Problem is caused by pandas-dev/pandas#16793 at

data = data.sort_values('PANEL')
.
data = data.sort_values('PANEL')
must also be affected.

from plotnine.

cpennington avatar cpennington commented on September 24, 2024

Thanks for digging in to the issue. I wonder if we could fix it by explicitly sorting by ts? I tried that from the outside, but it didn't work.

from plotnine.

has2k1 avatar has2k1 commented on September 24, 2024

I have a fix lined up.

from plotnine.

Related Issues (20)

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.