Tagged Questions
0
votes
0answers
17 views
How to continuously update pyplot figure
I am trying to create a gui that will continuously update a matplotlib plot as data is collected. I would like the plot to keep the past 5 data points and have some empty space in front of the most ...
0
votes
1answer
41 views
Python quit unexpectedly when trying to make a simple graph
I am running Mac OS X 10.8.4 and Python 2.7.
I just wanted to make a scatter plot graph in python. It runs completely fine until I begin to put in the lines about graph. So when I include window = ...
0
votes
0answers
25 views
I am using pylab from matplotlib. while generating charts from django application,the generated images are overlapping on one-another.solve this issue
here are my views:
def inventorychart(request):
feature_list = request.session['feature_list']
featuresgroups = request.session['featuresgroups']
print"oooooooooo"
user = ...
0
votes
1answer
22 views
How can I save my graph by using host_subplots with a different size?
I saw lots of examples explaining how to save plots in a different size, but none of them was using host_subplots. I would like to save the graph as it looks like when I maximize the window which the ...
0
votes
0answers
21 views
NLP with Python chap 1 .dispersion_plot returns nothing
I'm in the first chapter of Natural Language Processing with Python and am trying to run the example .dispersion_plot. I am using Python 2.7.4 (Anaconda) on Mac OSX 10.8.
When I load all of the ...
0
votes
0answers
41 views
Code Works in Canopy, but not in IDLE. Why?
I have Canopy installed with many packages for the python installation. When I run the code in Canopy it works fine, but when I open up my python downloaded separately from Canopy and run the code, it ...
0
votes
2answers
31 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
37 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 ...
0
votes
0answers
40 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 ...
3
votes
1answer
86 views
Plot timeseries of histograms in Python
I'm trying to plot a time-series of histograms in Python. There has been a similar question about this, but in R. So, basically, I need the same thing, but I'm really bad in R. There are usually 48 ...
2
votes
1answer
55 views
matplotlib - How do you keep the axes constant while adding new data?
I'm using matplotlib to display data that is constantly being updated (changes roughly 10 times per second). I'm using a 3D scatter plot, and I would like the axes to be fixed to a specific range, ...
2
votes
1answer
50 views
Matplotlib - Grid always in front of ax-h/v-lines
Minimal working example of my code:
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import numpy as np
from scipy.ndimage.filters import gaussian_filter
import numpy.random as ...
2
votes
1answer
28 views
Changing matshow xticklabel position from top to bottom of the figure
I'm using matshow() in matplotlib and the figures generated has the xticklabels on top by default. Is there a way to put the xticklabels on the bottom instead?
Appreciate any help with this.
/M
1
vote
1answer
19 views
How to choose which figure on which to display an image with matplotlib
I have a python script with multiple figures that I would like to update during a loop. Some will be images, and others will be line/scatter plots. I am having trouble getting the image to display on ...
1
vote
2answers
27 views
Select range of rows from record ndarray
I obtained a NumPy record ndarray from a CSV file using
data = matplotlib.mlab.csv2rec('./data.csv', delimiter=b',')
The data set is structured as:
date,a0,a1,a2,a3, b0, b1, b2, b3,[...], b9
...