Questions tagged [matplotlib-widget]

matplotlib.widgets provide a simple mechanism for interactive, GUI style plots using matplotlib.

From the matplotlib.widgets page

GUI Neutral widgets

Widgets that are designed to work for any of the GUI backends. All of these widgets require you to predefine matplotlib.axes.Axes instance and pass that as the first argument. Matplotlib doesn’t try to be too smart with respect to layout – you will have to figure out how wide and tall you want your Axes object to be to accommodate your widget.

There are many useful examples including:

215 questions
0
votes
1 answer

PyQt and Matplotlib: creating a copy of a plot

I am new to matplotlib and I have been struggling with implementing a feature for quite some time. Basically I have a plot embedded into a widget and I want to (on button press) create a new Widget with this exact same plot on it. Is there an easy…
sudobangbang
  • 1,406
  • 10
  • 32
  • 55
-1
votes
1 answer

How to range the x-axis from 1 to 20 with 5 difference each, in plot in Python?

This is the result of my code, what changes can be made ? I want this as the result: Please Help.
-1
votes
1 answer

How to matplotlib draw figure with different spacing

How to matplotlib draw figure with different spacing? specifically, how to draw this one?
-1
votes
4 answers

How to plot a graph in python using txt file with float value in it

I need to plot in python, the graph as stress and strain with this data S.No Stress Strain 0 0.000000 0.000000 1 -3343.068596 -0.520833 2 -3359.542402 -1.041667 3 -3363.690275 -1.562500 4 -3368.874071 -2.343750 5 -3375.428713 -3.515625 6…
-2
votes
1 answer

How to plot same function with many different values in subplots in numpy/matplotlib python?

I have following python code, and would like to: Plot the same function in 1 (only one) figure with many different (lets say 4) 'v0' and 'theta' values, each trajectory in a different color. Make 4 plots in 4 different figures, so that it looks…
ZelelB
  • 1,836
  • 7
  • 45
  • 71
1 2 3
14
15