In my app I am easily able animate to move an image in kivy but not able to scale it in size using animate property. Can any one show an example how to do that. Please
Related
after a long time searching i did not find any solution to set matplot with toolbar on qml window as a component
i've tried load matplotlib on an image component like this: Python: matplotlib plot inside QML layout
but i need the toolbar
thanks in advance
The idea would be that you'd have some 2D library for your GUI like PyGame and then draw the plots into the window generated by the library instead of an independent window generated by matplotlib. Allowing for user input and plot viewing in the same window.
I don't have any specific 2D library in mind, I'm not super familiar with Python libraries.
The only way I could find is by saving the plots to a file and then rendering that, but that seems extremely costly for real-time rendering (which is what I'm considering).
You can embed a plot from matplotlib into a tkinter app, check out their documentation here!
https://matplotlib.org/3.1.0/gallery/user_interfaces/embedding_in_tk_sgskip.html
Tkinter is a built-in package with cross platform support.
I'm trying to create a list of plots one below the other, on the same axes.
I want to be able to scroll through the plots, and when resizing the view I want to display more plots rather than enlarging the existing plots.
I subclasses PlotWidget and tried to manipulate resizeEvent and sizePolicy and nothing worked.
Any idea?
Thanks
Update:
This is the initial view. When changing the window's height I get this.
What I'm trying to achieve is this.
Also, I would like to add a vertical scrollbar instead of vertical panning.
Update:
Apparently pyqtgraph isn't a good fit for what I'm trying to do. I ended up implementing with QGraphicsScene and QGraphicsView.
Is there a way to display a generated 3D mesh (.ply file) as a kivy widget inside a window (and possibly control it)?
i want to display a graph in a canvas. The GUI was written in tkinter using python 2.7.
self.plotting(x, pa, y)
savefig("Omegakillerisawesome.png")
im=PhotoImage(file="Omegakillerisawesome.png")
self.canvasForGraph.create_image(500, 350, anchor=CENTER, image=im)
#show()
os.remove('Omegakillerisawesome.png')
The plotting function was implemented by me. accepting x,y values. so i'm hoping to show the graph in a canvas. so i'm saving the graph in the directory and reloading the image to the canvas. The problem is the .png file is not appearing in the canvas.
but if i uncomment the show() function the image comes up in the canvas as well as the usual window that graphs are displayed. i don't want that. i only want the graph to show up in the canvas.
please help. i'm a newbie.
[edit]
depth=[1,2,3,4,5,6]
temp=[9,8,7,6,5,4]
plot(depth,temp)
show()
this shows me a frame with my graph in it. but i want to do is display the graph inside a canvas widget using tkinter. but i dont want the usual frame that comes with the latter code. i just want the graph plotted inside the canvas no more.
that is what i'm trying to achieve from the first piece of code.
thanks.