Skip to main content

All Questions

Tagged with
0 votes
0 answers
35 views

Python 3D Graph - how to make the plot interactive?

OSX 12.7 Python 3 I have a Python script that I have set the default Open with: Python Launcher 3.app The file is a Plot3D-V2.py, it runs quickly but in order to update it I have to constantly rerun ...
Stainless Brown's user avatar
-1 votes
1 answer
66 views

Tkinter gui widgets resized after including matlab plot function

I am trying to use a GUI for button and plot. When I include show_graph() function inside tabss the window is resized, also widgets and text resized to smaller. import matplotlib.pyplot as plt from ...
sai's user avatar
  • 41
0 votes
0 answers
36 views

Issue with updating plot in tkinter TopLevel using matplotlib FigureCanvasTkAgg

I am trying to use below code to update the plot in matplotlib FigureCanvasTkAgg embedded in tkinter TopLevel window. import tkinter as tk from matplotlib.backends.backend_tkagg import (...
RRSC's user avatar
  • 257
0 votes
1 answer
56 views

Vertically scroll multiple plots in Tkinter

I would like to draw multiple plots with Matplotlib, add them to a Tkinter frame (stack them one below the other), and be able to scroll vertically between the plots. Each plot shold fill the x-...
Pier Paolo's user avatar
2 votes
1 answer
85 views

How can I change a Matplotlib colormap dynamically and get its range and labels updated?

I have an application where I want to change the colors used to map a plot with (x,y,z) points dynamically. I created the following to demonstrate the basic idea. import matplotlib.pyplot as plt ...
Chris Michalski's user avatar
0 votes
0 answers
30 views

Mathplotlib FuncAnimate in tkinter Window

I have a Question concerning putting a Mathplotlib Animation in a Tkinter window. I have found a few answers, but they all seem to be using much more difficult plots. I have this really easy Plot, ...
Mo711's user avatar
  • 639
0 votes
0 answers
24 views

Combine tk GUI and matplotlib with macosx backend without getting SIGSEGV?

I have written a small app which uses a tk GUI to allow the user to enter their parameters, then plots the results of using matplotlib. I would like the user to be able to do this repeatedly without ...
Simon Notley's user avatar
  • 2,136
0 votes
1 answer
46 views

PYTHON- Removing colorbar from imbedded figure in tkinter when using xarray's methods to plot

I am currently implementing a simple GUI used to display Netcdf content as well as a few other uses, however I am getting stuck on one question that appeared simpler than it was: How to remove the ...
greg salles's user avatar
0 votes
2 answers
56 views

Is there a way that I could switch plotting methods using a button in Tkinter?

I know this is a long shot, but I have an application that would plot n spectra (counts per energy) and I want to have the option to visualise them as normal spectra or histograms. Is there a way that ...
Hitman01's user avatar
1 vote
1 answer
39 views

Tkinter and matplotlib - NavigationToolbar2Tk - cursor position precision

I have a Matplotlib figure in Tkinter canvas with a NavigationToolbar2Tk below. When the mouse is on the canvas area, the toolbar automatically displays the (x, y) coordinates on the right hand side ...
AlMa's user avatar
  • 269
0 votes
0 answers
33 views

How does DPI scaling work in Tkinter and embedded Matplotlib figures?

I have a GUI app in built in custom tkinter, that uses a FigureCanvasTkAgg instance to embed a matplotlib figure. I also use a NavigationToolbar2Tk instance..well for navigation. I all works fine, but ...
Máté Sági- Kazár's user avatar
0 votes
1 answer
46 views

matplotlib graph open : the tkinter variables are not correctly updated

In the program bellow, I open a graph with matplotlib (here in the example nothing appears, but anyway, the problem is not that). In the corner (left bottom), there is a button to add cursors to the ...
Bast38's user avatar
  • 83
0 votes
1 answer
66 views

Load 2 Tkinter windows simultaneously. one with animation

The following script runs standalone to run a scenario: The results are printed first, followed by the plot is closed with an animation. import numpy as np import matplotlib.pyplot as plt import ...
Nick's user avatar
  • 785
1 vote
1 answer
47 views

Python: Using Figure.set_size_inches on a Figure contained in a tkinter GUI does not update the display

I am trying to embed a pyplot Figure object in a tkinter GUI and then later on change its size by calling the set_size_inches() method. A miniumum (not) working example is provided below. ...
Alex Schmitz's user avatar
0 votes
0 answers
47 views

Tkinter Plot becomes blurry when in a frame

TEST_PLOT.py [![import matplotlib.pyplot as plt import numpy as np from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg import tkinter as tk class TestPlot: def __init__(self, master=...
Nick's user avatar
  • 785

15 30 50 per page
1
2 3 4 5
85