Giter Site home page Giter Site logo

Comments (13)

mostafar avatar mostafar commented on July 30, 2024

After a chat with @tshirtman, He found out the problem is with stencilbuffer and by changing line 139 of __init__.py of graph module to:

self._fbo = Fbo(size=self.size, with_stencilbuffer=False)

It will be visible in my example, but then there will be many problems with new features of graph (SmoothLinePlot).

from garden.graph.

mostafar avatar mostafar commented on July 30, 2024

Exploring kivy codes for hours and found this, commenting it lets graph to be shown:

<ScreenManager>:
    canvas.before:
        StencilPush
        Rectangle:
            pos: self.pos
            size: self.size
        StencilUse
    canvas.after:
        StencilUnUse
        Rectangle:
            pos: self.pos
            size: self.size
        StencilPop

Same problem with Carousel which is an StencilView.

from garden.graph.

matham avatar matham commented on July 30, 2024

The same problem occurs when putting a graph in a ScrollView.

from garden.graph.

 avatar commented on July 30, 2024

From above: "line 139 of init.py of graph module to:..."
It was line 146 for me. Worked like a charm.

from garden.graph.

rsshruti avatar rsshruti commented on July 30, 2024

Hi, I tried to run this program, plot is not visible??
Am I missing something? there is no problem in importing graphs.

Plz help soon!

from garden.graph.

cmac4603 avatar cmac4603 commented on July 30, 2024

Changing with_stencilbuffer=True to with_stencilbuffer=False in the garden.graph init.py module saved my life! I wish I'd have found this page 2 hours ago though!
Thanks @tshirtman & @mostafar!

P.s. @snarfums: It was line 153 for me, go figure!

from garden.graph.

jcc242 avatar jcc242 commented on July 30, 2024

Just wanted to add that this is still an ongoing issue. Setting stencilbuffer to False fixed it for me. Thanks!

from garden.graph.

gnarendra89 avatar gnarendra89 commented on July 30, 2024

after changing 'with_stencilbuffer=False' , my plot going out of preview(snapshot attached) and if I dont change plot is not shown. am in deadlock :( . am working on real-time graph simulation..
screenshot from 2016-04-29 19 42 28

from garden.graph.

brvier avatar brvier commented on July 30, 2024

This is also required to made it working on iOS

from garden.graph.

Revetter avatar Revetter commented on July 30, 2024

Had to search for ages for this, thanks!

from garden.graph.

Kronopt avatar Kronopt commented on July 30, 2024

I stumbled into the same problem as @gnarendra89, as you can see from the image:
drawing_outside

The above graph has a logarithmic y-axis and a linear x-axis, while the bottom graph has both x and y-axis in linear scale.
What I find interesting is that for a linear scale axis the plots are drawn correctly, as can be seen in the bottom graph.

I think this shift in graph drawing might be related to this #45.

Does anyone know what might be causing the problem?

Edit: This after applying the fix proposed by @mostafar

from garden.graph.

tito avatar tito commented on July 30, 2024

This is the same as kivy/kivy#1578

from garden.graph.

tito avatar tito commented on July 30, 2024

This has been fixed in Kivy master (v1.10.1.dev0, git-1114ebf, 20171229)

from garden.graph.

Related Issues (19)

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.