Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
27 views

I am a beginner with the Slider tool and retrieved a code which used to work but does not anymore. I found a similar code here to test the Slider tool in this answer which provides a self-contained ...
lorenzaccio's user avatar
2 votes
1 answer
90 views

I'm writing an app that generates a live histogram to be displayed in a Tkinter window. This is more or less how the app works: A Histogram class is responsible for generating the embedded histogram ...
9iovaferra's user avatar
2 votes
1 answer
48 views

The code below draws a button and an axes object in which it's meant to print out the number of times the button has been pressed. However, it never updates the axes with the number of presses. from ...
BGreen's user avatar
  • 482
0 votes
0 answers
30 views

So first, here is my code: %matplotlib ipympl import numpy as np import scipy as sp import matplotlib.pyplot as plt from matplotlib.widgets import Slider, Button def ODE_r(x, t, params): r, d1t_r =...
Anothernewbie's user avatar
0 votes
1 answer
287 views

I am using matplotlib with the %matplotlib widget in a Jupyter lab notebook. When I display a figure, there is "Figure 1" displayed just above it. How can I get rid of it? I have found that ...
user209974's user avatar
  • 1,967
1 vote
0 answers
36 views

So, in this link you can find an MRE that generates a plot with sliders, and one of them is vertical. The link is from matplotlib's docs. Now, the question is the following: You can see that the ...
diegoperez01's user avatar
0 votes
0 answers
45 views

I am using this code import numpy as np import matplotlib.pyplot as plt from matplotlib.widgets import RectangleSelector from matplotlib.patches import Rectangle # Import for rectangle visualization ...
Deepak's user avatar
  • 1
1 vote
1 answer
1k views

I am trying to display matplotlib interactive figures in Streamlit generated pages i.e. to display the pan/zoom and mouse-location tools. I know there are other ways to make figures interactive that ...
Droidux's user avatar
  • 358
0 votes
1 answer
76 views

I’m having trouble with plotting a certain way in python with matplotlib. I’m making an interface where I’m receiving data from a chip, the data is then saved in csv format, one csv per day (name of ...
Cloud's user avatar
  • 21
0 votes
0 answers
57 views

How to create shape to show sectorized antenna with azimuth (Bearing in degrees) and Lat-Long information. This is to represent a cellular site. Normally a cellular site is from 1 to 6 sectors ...
Conrado Culalic's user avatar
0 votes
0 answers
417 views

I tried the Jupyter notebook example for Matplotlib Event Handling and seemed to get no results. I downloaded the jupyter notebook from https://matplotlib.org/stable/gallery/event_handling/coords_demo....
Dave X's user avatar
  • 5,247
0 votes
1 answer
50 views

I need to update grid parameters (visible, which, axis, **kwargs) to customize the major and minor grid lines style. i tried using plt.grid(which='minor', linewidth=0.5, linestyle='dotted') but it did ...
Hannibal's user avatar
  • 123
0 votes
0 answers
93 views

I'm currently developing an animation featuring a double pendulum, and I'd like to incorporate sliders to enhance user interaction. These sliders are designed to control the two initial angles of the ...
W.K.'s user avatar
  • 1
-1 votes
1 answer
166 views

i have built an application in python using PySide6 & Qt designer where i added a matplotlibWidget to window main_plot_container and NavigationToolbar2QT to a tb_frame that sits on top of ...
Hannibal's user avatar
  • 123
0 votes
2 answers
131 views

I am working on dynamically changing matplotlib style sheet during runtime. I have initialized a class for matplotlib widget and chosen two styles from matplotlib style sheet reference - let's say ...
A7aa's user avatar
  • 1
0 votes
1 answer
118 views

I can't get the matplotlib slider to respond inside a PyQt6 application. Here is a sample program. I know there is no binding on the slider (that's not the problem). The problem is the slider itself ...
iamthebull's user avatar
1 vote
1 answer
101 views

I am learning matplotlib and ipywidgets and attempt to design an interactive bar chart, such that the selected category can be highlighted. Data Example Assuming I have a dataframe: import pandas as ...
ThomasIsCoding's user avatar
0 votes
1 answer
71 views

I try to implement matplotlib chart into tkinter app and it works but after closing main window (m) the process is still going and cant stop it without closing the console. Why? import matplotlib....
Paweł Pietraszko's user avatar
0 votes
1 answer
70 views

i have two sliders setup, one to control the position on the plot and one to control the scale of the x-axis. this works great, except i am using a different dataframe to control the slider than what ...
ewm's user avatar
  • 13
1 vote
1 answer
112 views

I am trying to select a range of data in a matplotlib plot and got stuck with the return values of SpanSelector: from io import StringIO import matplotlib.pyplot as plt from matplotlib.widgets import ...
nohtyp's user avatar
  • 21
0 votes
0 answers
50 views

Please help with the solution to the problem: QCoreApplication::exec: The event loop is already running. I need to create a window with a button. When you click on the button, a new window opens ...
Максим Голубятников's user avatar
0 votes
1 answer
1k views

So i want to change a graph in real time using a slider. I tried learning it this bottom code is from youtube where it worked. When i run it though, all this does is shows a picture of a graph with a ...
Vid Ogrizek's user avatar
0 votes
0 answers
280 views

I have an animation working well with FuncAnimation. My goal is to change a parameter with a slider and update the animation instantly. I don't know how to combine both. You'll find my code down here, ...
Malo's user avatar
  • 13
1 vote
0 answers
427 views

I want to customise the icons (like home, back, forward, pan etc) on the matplotlib toolbar. In this case I am writing a GUI with tkinter with embedded pyplot plot in the widget of the GUI and create ...
Artur Kryzhanovskyy's user avatar
2 votes
2 answers
747 views

I am writing a Python tool that needs several figures open at the same time, each one with its own widgets (sliders, for the most part). I don't need any interactions across the figures here. Each ...
fbcp's user avatar
  • 33
0 votes
0 answers
238 views

I´m currently developing a software to process spectroscopic data using python. I´m using PyQt6 to design the gui and matplotlib to plot the data. To simplify the data selection I added a cursor ...
pypy22's user avatar
  • 1
1 vote
0 answers
114 views

I had a question about python matplotlib I wanted to know in this library Is it possible to make grid diagrams in which circles are drawn and connected and intersected by lines? In the network graphs ...
KVANKER KVANKERI's user avatar
0 votes
1 answer
164 views

Here is my Jupyer Notebook source code. But a hard-coded reproducible example is below. (You will need access to the UK.geojson file from my Github or the true source: http://geoportal1-ons.opendata....
Liam Gower's user avatar
0 votes
1 answer
2k views

I have code that is running on a different machine. %matplotlib widget import matplotlib.pyplot as plt import matplotlib.animation as animation import numpy as np n = 100 x = np.random.randn(n) def ...
Николай Чурилов's user avatar
3 votes
1 answer
4k views

The matplotlib figure suddenly doesn't display in vscode's jupyter notebook environment, even though I used: %matplotlib inline When I plot a figure, e.g.: data = np.random.randn(1000, 2) fig, ax = ...
Nanxi Chen's user avatar
1 vote
1 answer
134 views

I have a plot in which I want to plot the following two data sets x1,y1 = np.random.normal(0,1, (2,20)) # dataset 1 x2,y2 = np.random.normal(0,1, (2,20)) # Next, I create a plot and the ...
Mitchell van Zuylen's user avatar
0 votes
1 answer
76 views

I have two codes and I want to combine Python code into Kivy code. python code: import csv import socket import datetime import time from itertools import zip_longest Time =[] Price = [] fields = ['...
Fathi's user avatar
  • 3
0 votes
1 answer
316 views

I'm using kivy and matplotlib for visualization of data, these are the libraries: `from kivy.uix.button import Button from kivy.uix.spinner import Spinner import pandas as pd import matplotlib.pyplot ...
Daniel Alarcón's user avatar
2 votes
0 answers
423 views

I'm still a beginner and I'm trying to make the edge of the bar of the chart be highlighted (change color) in a mouse movement event when hovering over it. Only the bar over which the mouse hovers ...
MJAGO's user avatar
  • 35
0 votes
1 answer
144 views

I'm trying to better understand 3D plotting using various tutorials online. I tried to recreate one of these online tutorials, this one in particular by running some of the code in my own Jupyter ...
perii's user avatar
  • 1
3 votes
0 answers
743 views

As the title suggests, I am trying to put multiple SpanSelector widgets on the same axis. In the test code below (adapted from this example), I am using a multi-plot figure with the qt backend, to ...
aparajito's user avatar
  • 113
0 votes
1 answer
105 views

I have a dataframe of three classes (0, 1, and 2). After that, I calculate the cooccurrence of the class. Further, the diagonal element is assigned to 0. In conclusion, try to plot a cooccurrence ...
Pranab's user avatar
  • 469
0 votes
1 answer
892 views

I have my data and codes for scatter plot as below: import numpy as np import pandas as pd import matplotlib.pyplot as plt # define X and y np.random.seed(10) x = np.arange(0,100) y = np.random....
ukanafun's user avatar
  • 155
1 vote
0 answers
120 views

LTDR: I want the fourth image to look like the second image. When using Visual Studio Code and Jupyter Notebook, if I use Matplotlib widgets, the colour of the output cell background is white. This is ...
Chandradhar Koneti's user avatar
0 votes
1 answer
322 views

I have a Jupyter notebook with %matplotlib widget as the first line. The notebook contains several markdown cells providing a header structure and some explaining texts. Also there I am generating ...
Torsten Knodt's user avatar
0 votes
0 answers
243 views

I am working on a big dataframe where each row includes the values of various signals and all the rows should visualize based on their signals. Controlling this process on the single core takes a huge ...
justRandomLearner's user avatar
0 votes
1 answer
6k views

I am using Matplotlib in a class to view 3-Dimensional physical data. I have a fiew sliders and radiobuttons, in which I can update the view on the data (eg. which layer, or what scale to use). This ...
Jonathanthesailor's user avatar
1 vote
1 answer
404 views

import matplotlib.pyplot as plt from matplotlib.widgets import Slider import numpy as np from PIL import Image import requests from io import BytesIO img_src = 'https://unsplash.it/500/300' response =...
cj91's user avatar
  • 63
0 votes
1 answer
1k views

I would like to create a plot with a function whose parameters can be updated by a text input on the figure in allocated textboxes. Let's say it would look something like the following: Here you ...
Woodywoodleg's user avatar
1 vote
0 answers
249 views

I have som problems with buttons/animations in matplotlib. I'm trying to make an animation that starts when the button "start" is clicked on and stop when "stop" is clicked on. The ...
Markus's user avatar
  • 23
0 votes
1 answer
1k views

I have a code to plot points and to update the number of points in X,Y with a slider. There is no way I can make the old plots disappear in the update function, tried all possible variations of .clear(...
nls's user avatar
  • 11
0 votes
1 answer
528 views

I am trying to create a polygon selector in my PySide2 application. Selector is working fine, but then I want to add functionality to reset/start new polygon when escape button is pressed. Something ...
Simon's user avatar
  • 85
1 vote
1 answer
295 views

I'm using the matplotlib backend 'notebook', because I am making some interactive figures, and this works well with the notebook backend (in particular, I serve them via Jupyter Notebooks). I use ...
Tom Viering's user avatar
0 votes
1 answer
683 views

I was wondering if there is a way to keep matplotlib's RectangleSelector activate after zooming. To hinder a possible confusion between my problem and existing ones, kindly note that I am able to use ...
Bedir Yilmaz's user avatar
  • 4,143
0 votes
0 answers
209 views

I'm currently using matplotlib.figure so that I can have two plots side by side, and then a table right below. One of the plots is a set of linear regressions, and the other is e^(linear regressions). ...
Daniel's user avatar
  • 45

1
2 3 4 5