Relative Content

Tag Archive for pythonmatplotlibtkinter

matplotlib reset

Hello when I put the stock symbol and hit the ok button it works fine but when hit the ok button again to see another stock data the previous chart window doesn’t delete but the chart becomes two of them and the newly generated chart is below the previous chart. I want the previous chart to be deleted when ok button is pressed and generate the new chart.

Python matplotlib reset

Hello when I put the stock symbol and hit the ok button it works fine but when hit the ok button again to see another stock data the previous chart window doesn’t delete but the chart becomes two of them and the newly generated chart is below the previous chart. I want the previous chart to be deleted when ok button is pressed and generate the new chart.

How do I fit matplotlib figures into Python tkinter frames?

Has anyone here ever worked with plotting matplotlib graphs in tkinter? I have a program that creates potential schedules and graphs them with days of the week on the x axis and time on the y axis. These graphs are generated without any issues. The problem is that when I create frames in tkinter for figures to be placed on and the corresponding plots drawn, some graphs are not be completely on the screen or one graph is shown twice but in two layers (one figure is shifted up while the other is about center and under it so only the figure text box is displayed). Even graphs of the same size are not displayed with consistent general size and font size for text. Does anyone have any advice or know why this is happening?
I can post the relevant code too if requested.

Interactive plot stuck interacting with first element (Python, tkinter)

I am building a program which reduces mass spectrometer data: it should present the user with the raw data from an analysis and allow them to interactively click a datum to remove it as an outlier. Once a datum is removed, the data, trendline, and statistics should be automatically recalculated. The program also provides buttons below the data to go to the next or previous analysis to inspect it for outliers.

Problem with a matplotlib figure and its toolbar inside a tkinter notebook

I’m creating a GUI and inside this one I have a notebook embedded in a paned window.
Inside this notebook, i created 2 tab and I create for each one of them a matplotlib figure with its toolbar.
However for the second tab, the toolbar is located outside of the paned window and I need to resize it to see the toolbar. In comparison, when I resize the first tab I always have the figure and its toolbar whatever the size of the paned window.