1
vote
1answer
15 views

How can i get list of font family(or Name of Font) in matplotlib

How can i get list of font family(or Name of Font) in matplotlib. import matplotlib.font_manager matplotlib.font_manager.findSystemFonts(fontpaths=None, fontext='ttf') With help of this code i can ...
1
vote
1answer
39 views

write an upright mu in matplotlib

I'm trying to put an upright mu in my axes labels, but matplotlib just shows a square box. Example code: # -*- coding: utf-8 -*- from matplotlib import pyplot as plt plt.plot([1,2],[3,4]) ...
0
votes
0answers
18 views

setting position of a figure at current plot location in matplotlib

I am trying to record sound from mic using pyaudio and plotting it at the same time (in parallel with recording). I have created a horizontal plot window, who's size is bigger than the main ...
0
votes
0answers
27 views

How can I get matplotlib work correctly

Recently I am learning to using nltk on Windows 7. I installed Python2.7 and NumPy1.6.2 and matplotlib 1.3.0 for Python 2.7. But when I try to run the following code it just won't work(The first line ...
1
vote
0answers
38 views

Segmentation fault in Django with matplotlib

I am getting segmentation fault in Django, when using matlplot lib to generate the graphs dynamically in the same. Here is the stack trace: Process: Python [97865] Path: ...
0
votes
1answer
52 views

Using Python to Telnet into CISCO router and store the output on a machine locally

Im new to python, I managed to telnet into my cisco router using my python codes. I am able to show commands on the screen, but I would like to save the outputs locally on my linux machine, same ...
1
vote
1answer
56 views

Matplotlib 1.3.0, legend line and text do not match

In this case the legend labels come from txt files, with a '\n' character at the end. Running this snippet: lines = np.array([[1,1],[2,2],[3,3]]) plt.rc('font', size=10.) for i, line in ...
0
votes
0answers
66 views

recording with pyaudio giving junk values even if MIC is muted or in pin drop silence

I am working on recording using pyaudio on windows. I am plotting recorded sound using matplotlib. Recording length is 60 sec. buffer size is 1024 What i am getting is, while recording, for first ...
0
votes
0answers
96 views

ubuntu 13.04 python2.7 cannot import matplotlib and other module

I have just installed matplotlib to generate some plots. but this module cannot be imported in python interpreter. although it can be imported in ipython, when i use ipython to execute those examples. ...
2
votes
1answer
32 views

Update greyscale image with matplotlib

I have a series of images coming from a video stream that I would like to display with Matplotlib (in greyscale). For some reason I can get them to display in colour perfectly fine, but not when I ...
1
vote
2answers
53 views

basemap plot only region of interest, not entire globe

I need to use a mollweide projection but plot only a region of interest. (eg lat=[10,90], lon=[-25, 45]). Basic code below. It seems this does not possible with some projections in Basemap ...
1
vote
1answer
30 views

How to close with the border of a matplotlib plot

I found an odd behavior for pyplot plots. When the number of data points exceeds a certain amount, the line does not draw to the end -- there's white space on the far right that I cannot get rid of. ...
0
votes
1answer
50 views

fill_between gives “ValueError: Argument dimensions are incompatible”

Code below written in Python imports data from Excel to Python, then plots with matplotlib. I'm trying to fill above and below line 80 with different colors using the fill_between function, but it ...
1
vote
0answers
45 views

Can't load matplotlib 1.3.0

I'm running Python 2.7.5 on a Windows 7 machine. I've upgraded matplotlib to the latest stable version, 1.3.0, and whenever I try to use it (or start IPython with PyLab), I get the following error: ...
0
votes
1answer
62 views

Flip x and y axes for Matplotlib imshow()

I'm using pyplot with matplotlib, and I would like to display some data as an image. When I use imshow() the data is flipped from the way I want to view it. How would I switch the x and y axes, either ...

15 30 50 per page