Comments (13)
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.
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.
The same problem occurs when putting a graph in a ScrollView.
from garden.graph.
From above: "line 139 of init.py of graph module to:..."
It was line 146 for me. Worked like a charm.
from garden.graph.
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.
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.
Just wanted to add that this is still an ongoing issue. Setting stencilbuffer to False fixed it for me. Thanks!
from garden.graph.
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..
from garden.graph.
This is also required to made it working on iOS
from garden.graph.
Had to search for ages for this, thanks!
from garden.graph.
I stumbled into the same problem as @gnarendra89, as you can see from the image:
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.
This is the same as kivy/kivy#1578
from garden.graph.
This has been fixed in Kivy master (v1.10.1.dev0, git-1114ebf, 20171229)
from garden.graph.
Related Issues (19)
- please import math.sin also in init.py HOT 2
- some kv parameters are not taken into account
- missing license file
- create a new line and erase the old one HOT 1
- __init_.py crashes with python 3 HOT 1
- Cannot blit with a different colorfmt than the created texture HOT 1
- Adding ticks to one, of more than one Graphs aligned in a layout, mis-aligns them HOT 12
- Graph does not work with Python 3.4 HOT 13
- no module named kivy.garden.graph HOT 1
- Aviod joining two strokes of drawing HOT 2
- HOW TO PLOT GRAPH WITH DELAY IN EVERY POINT? HOT 3
- Strange behavior when combined with garden.matplotlib HOT 1
- "Exception: Shader didnt link, check info log" while trying to instantiate the widget not in build method HOT 2
- Graph being drawn outside the grid
- When using logarithmic axis, ticks are drawn outside plot area
- ERROR Trying to run the example HOT 1
- can i zoom with mouse wheel HOT 1
- Moving a MeshLinePlot leaves artifacts on Mac HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from garden.graph.