Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to instantly update the plot by getting values from a Scale widget?
Post: RE: How to instantly update the plot by getting va...

You are right, I will try to plot that in your mentioned method. I noticed my method is going to be laggy if I consider it for a bigger problem.
OLE GUI 20 6,358 May-18-2022, 02:35 AM
    Thread: How to instantly update the plot by getting values from a Scale widget?
Post: RE: How to instantly update the plot by getting va...

Actually, the previous code worked. I removed this line ax.figure.colorbar( c) in update(). Now I only need to move the slider initially to the toplevel window. import tkinter as tk import numpy as...
OLE GUI 20 6,358 May-17-2022, 01:46 AM
    Thread: How to instantly update the plot by getting values from a Scale widget?
Post: RE: How to instantly update the plot by getting va...

I rewrote them in this way. did you mean it in this way? this time the code doesnt remove the old figures. I didn't understand what is the usage of set_array(x,y) def plot(self, var, window): ...
OLE GUI 20 6,358 May-16-2022, 11:15 PM
    Thread: How to instantly update the plot by getting values from a Scale widget?
Post: RE: How to instantly update the plot by getting va...

(May-16-2022, 08:32 PM)deanhystad Wrote: My earlier post mentioned having a method named "scale_plot" that rescaled the plot. At that time I thought that drawing the initial plot and drawing the res...
OLE GUI 20 6,358 May-16-2022, 08:42 PM
    Thread: How to instantly update the plot by getting values from a Scale widget?
Post: RE: How to instantly update the plot by getting va...

(May-16-2022, 08:10 PM)deanhystad Wrote: I'm beginning to think that everything we've said is wrong. You do not want to replot the data each time you move the slider because this will quickly resul...
OLE GUI 20 6,358 May-16-2022, 08:22 PM
    Thread: How to instantly update the plot by getting values from a Scale widget?
Post: RE: How to instantly update the plot by getting va...

I managed to modify the code using you and menator01's help. I have 2 more questions. how I can destroy the initial canvas. currently, the new canvases stack on each other. I tried to use convas.destr...
OLE GUI 20 6,358 May-16-2022, 07:48 PM
    Thread: How to instantly update the plot by getting values from a Scale widget?
Post: RE: How to instantly update the plot by getting va...

(May-16-2022, 05:14 PM)menator01 Wrote: Maybe this will get you started. I've not ever worked with matplotlib or numpy but, anyway, here's my attempt import tkinter as tk import numpy as np from mat...
OLE GUI 20 6,358 May-16-2022, 05:41 PM
    Thread: How to instantly update the plot by getting values from a Scale widget?
Post: RE: How to instantly update the plot by getting va...

(May-16-2022, 12:35 PM)deanhystad Wrote: It is the same solution. Look at how the slider command is set to call a function. Change the function from updating a label to one that updates your plot....
OLE GUI 20 6,358 May-16-2022, 03:52 PM
    Thread: How to instantly update the plot by getting values from a Scale widget?
Post: RE: How to instantly update the plot by getting va...

(May-16-2022, 02:40 AM)menator01 Wrote: You might can use this approach import tkinter as tk class Window: def __init__(self, parent): self.slidervar = tk.IntVar() self.slider ...
OLE GUI 20 6,358 May-16-2022, 05:53 AM
    Thread: How to instantly update the plot by getting values from a Scale widget?
Post: How to instantly update the plot by getting values...

I have a 3d grid system of 3*4*10 grids (nx*ny*nz), and I have assigned a random value to each grid. I want to plot different surfaces of nx*ny (or let's call it a layer). I have written this code bel...
OLE GUI 20 6,358 May-15-2022, 09:32 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020