Matplotlib is a plotting library for Python, built on NumPy and often used interactively with IPython. Its compact "pylab" interface is similar to the plotting functions of MATLABĀ®.
0
votes
0answers
8 views
Updating Matplotlib toolbar when repainted
I have written a test python program for Matplotlib-Basemap on wxpython using examples found on the internet. A map drawn with Mercator projection when the GUI is launched. On selecting various radio ...
0
votes
0answers
26 views
python shell in emacs freezes when using matplotlib
I previously thought that was the issue with ipython, but today i tested again, here is what i did:
run emacs -Q in cmd window
open a .py file
M-x, then run python-shell-switch-to-shell, RET, RET, ...
2
votes
1answer
24 views
want to smooth a contour from a masked array
I have a masked array which is used by matplotlib.plt.contourf to project a temperature contour on a glabal map. I was trying to smooth the contour, but unfortunately none of the proposed solutions ...
0
votes
0answers
13 views
matplotlib SpanSelector widget: how to use inside a function?
I'm trying to use a matplotlib SpanSelector inside a function. I modified the original example (http://matplotlib.org/examples/widgets/span_selector.html) but it didn't work. Here is the code:
...
1
vote
1answer
23 views
How to show multiple images in one figure?
I use Python lib matplotlib to plot functions, and I know how to plot several functions in different *subplot*s in one figure, like this one,
And when handling images, I use imshow() to plot images, ...
0
votes
2answers
29 views
change figure size and figure format in matplotlib
I want to obtain fig1 exactly of 4 by 3 inch sized, and in tiff format correcting the program below:
import matplotlib.pyplot as plt
list1 = [3,4,5,6,9,12]
list2 = [8,12,14,15,17,20]
plt.plot(list1, ...
1
vote
1answer
29 views
Matplotlib - creating a filled 2d contour plot
I've calculated some values representing a potential as a function of x,y using relaxation method. And I want to display a contour plot with colors (not lines) but, the examples at matplotlib are all ...
1
vote
2answers
50 views
separate peaks from each other equidistantly
I have text file which contains for example five columns of data. Here is an example data from the text file-
715.10685 -0.006153 -0.004829 -0.002161 0.000994 0.004024
715.589053 ...
1
vote
2answers
22 views
matplotlib.pyplot will not forget previous plots - how can I flush/refresh?
How do you get matplotlib.pyplot to "forget" previous plots
I am trying to plot multiple time using matplotlib.pyplot
The code looks like this:
def plottest():
import numpy as np
import ...
0
votes
1answer
29 views
Matplotlib: Make all values in range show up on x axis
Could someone please guide me on how should I make sure that all ticks (or maybe a better way to specify will be to say all elements in the list passed to plot function) are displayed on the x axis ...
1
vote
0answers
28 views
3D animation using matplotlib that shows a body rotating about a fixed point
I have recently started using python. Currently I am working on a project that simulates the motion of binary starts about a center.
I want to represent the starts with a sphere rotating about a ...
0
votes
1answer
13 views
Using PyLab's Specgram In A Headless Environment
Anyone know how to get it working? Unfortunately it seems by default specgram's code wants to generate an image, which I have no use for, only the data behind the image. The error I get is:
...
1
vote
0answers
16 views
Building python pylab/matplotlib exe using pyinstaller
The following code runs fine and displays a simple pie chart when run as an interpreted python py program.
A month ago, I used pyinstaller to create a stand-alone exe and that worked great.
...
1
vote
2answers
36 views
plotting a new graph after closing a first one in matplotlib
I am working on a python script where I have the following method in an object Plotter :
import matplotlib.pyplot as plt
class Plotter:
def __init__(self):
self.nbfig = 0
def ...
1
vote
3answers
52 views
Box around text in matplotlib
how is possible to make a box around text in matplotlib?
I have text on three different lines and in three different colors:
ax.text(2,1, 'alpha', color='red')
ax.text(2,2, 'beta', color='cyan')
...