Skip to main content
2 votes
1 answer
40 views

matplotlib - Unable to update plot with button widget

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
26 views

No new plot after interacting with matplotlib slider

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
138 views

How can I plot an interactive matplotlib figure without the figure number in a Jupyter notebook?

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,937
1 vote
0 answers
28 views

Matplotlib: Rotate label on a vertical slider

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
15 views

Problem with matplotlib with slider usage

I work with a dataset, I trained a model and want to get more data so I use my model on unlabeled data and then plot the data with the model-maded label to see if it's a good label or no. I want to ...
user26466036's user avatar
0 votes
0 answers
33 views

how to make jupyter lab prepared by matplotlib interactive?

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
879 views

Matplotlib interactive figures with streamlit

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
  • 348
0 votes
1 answer
61 views

Python matplolib, plotting value every 2H per day

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
49 views

Sectorized antenna with azimuth (Bearing in degrees) and Lat-Long information

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
360 views

Can't capture Mouse and Click events from Jupyterlab 4.1.2 matplotlib interactive plot

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,177
0 votes
1 answer
44 views

how to update grid parameters for figure & canvas created with matplotlib.figure & matplotlib.backends.backend_qt5agg

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
  • 115
0 votes
0 answers
79 views

Updating animation with slider

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
151 views

navigationtoolbar pan & zoom buttons/icons DO NOT highlight background when active in matplotlib

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
  • 115
0 votes
2 answers
113 views

How to dynamically change the sheet type theme during runtime

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
107 views

matplotlib slider not working when embedded in pyqt6 application

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

15 30 50 per page
1
2 3 4 5
15