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®.

learn more… | top users | synonyms (2)

0
votes
1answer
9 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
18 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
0answers
8 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
13 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
1answer
24 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
40 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') ...
0
votes
2answers
28 views

Plot to Specific Axes in Matplotlib

How can I plot to a specific axes in matplotlib? I created my own object which has its own plot method and takes standard args and kwargs to adjust line color, width, etc, I would also like to be ...
0
votes
2answers
36 views

matplotlib plot csv file of all columns

I have a csv file which contains 20 columns. Right now I can plot using this code taking first column as x axis and rest of them as y axis. import numpy as np import matplotlib.pyplot as plt data = ...
0
votes
2answers
28 views

matplotlib long legend name

I have a following code which produces a graph - # imports specific to the plots in this example import sys import numpy as np from matplotlib import cm import matplotlib.pyplot as plt ...
0
votes
1answer
28 views

Reading a huge edgelist and plot it in NetworkX

I have a huge edgelist named Reed98.edgelist. I'm using networkx to read and plot it as graph. This error appears: C:\Python26\lib\site-packages\networkx-1.7-py2.6.egg\networkx\drawing\layout.py:369: ...
0
votes
0answers
34 views

Use ListBox to operate on a dataset with selectable IDs

Another academic question. I have scripts for many types of plots, and wanted a customizable listbox method that I can call up and use to pass a selected ID from a specified dataset into any plotting ...
0
votes
0answers
25 views

Single colorbar for alpha blended filled contours

I want to draw two filled contours with alpha blending, and a colorbar to match resulting plot. For example: import numpy as np import matplotlib.pyplot as plt arr = np.random.random((10, 10)) ...
1
vote
1answer
30 views

Using text on y axis in matplotlib instead of numbers

I've created a simple word frequency calculator in python 3.2. Now I want to create a plot to visualize the results. I want to add the most frequent words to the y axis and the x axis would contain ...
2
votes
3answers
37 views

Adding an annotation box to a matplotlib contour/heat map plot

I want generate a contour plot/heat map with a color bar and then add an annotation box. This figure is ugly, but gets at what I want: add_subplot() is not enough. If I try to put everything in ...
0
votes
1answer
24 views

Retrieve coordinates from Tkinter Canvas

I have a plotted a set of points and embedded the plot into Tkinter canvas. What I am trying to do is retrieve the coordinates when clicked on one / more points. I was able to do it using the ...

1 2 3 4 5 282
15 30 50 per page