Tagged Questions
2
votes
2answers
41 views
Long error in contour plot python
I am trying to create a contour plot with the x coordinates being label EF and y being labeled EB and z being a function labeled a. It returns a long error posted below. Any help would be appreciated. ...
2
votes
1answer
33 views
How to blur points in 3d matplotlib [on hold]
Is it possible to blur some data points in matplotlib 3d, based on how long it is from the view point. I know as it is it will just opaque the points.
I'm looking for something similar to this;
...
1
vote
1answer
40 views
Smooth contour plot in matplotlib from 3 lists of different size
I have 3 lists of different sizes e.g.
x=[1,2,3,4,5,6]
Between x=1 and x=2
y=[1,2,3,4,5]
z=[100,200,300,400,500]
y and z are of same length
Between x=2 and x=3
y=[1,2,3,4,5]
z=[300, 350, 400, ...
2
votes
3answers
45 views
Plotting moving average with numpy and csv
I need help plotting a moving average on top of the data I am already able to plot (see below)
I am trying to make m (my moving average) equal to the length of y (my data) and then within my 'for' ...
1
vote
2answers
70 views
Matplotlib: using a figure object to initialize a plot
I am building a class of plot tools for a specific experiment.
I currently have two plot methods, a static plot using imshow(), and a "movie" format also
using imshow() .
Both methods and any future ...
-1
votes
2answers
61 views
Pandas Data Frame Plotting
I have this Pandas DataFrame
which gives me this:
How do I
Make a new figure,
Add the title to the figure "Title Here"
Somehow create a mapping so that instead of the labels being 29,30 etc, ...
0
votes
1answer
20 views
Why does pyplot.quiver plots vectors with infinite length?
I am plotting a 5X10 matrix of vectors using pyplot.quiver :
from pylab import *
COLUMN_RESOLUTION = 10
ROW_RESOLUTION = 5
plotBorders = 2
X,Y = ...
0
votes
1answer
24 views
showing specific xtick in matplotlib
So I have a graph that runs on an order of magnitude 10000 time steps, and thus I have a lot of data points and the xticks are spaced pretty far apart, which is cool, but I would like to to show on ...
0
votes
2answers
33 views
How to automatically set ylim from data shown on the screen after setting xlim
For example, after I set xlim, the ylim is wider than the range of data points shown on the screen. Of course, I can manually pick a range and set it, but I would prefer if it is done automatically.
...
2
votes
0answers
57 views
Quickest way to plot ~400,000 points in python
I have a list which contains some data points which I need to plot.
The list is approximately 11,000 x 40 in size (2D Plot with numeric values).
Currently I am using matplotlib (as I moved to ...
1
vote
1answer
25 views
How can I get rid of the line in pylab histogram
I have this simplified code:
import numpy, pylab, random
data = [ random.gauss(1, 0.2) for x in range(1000) ]
fig = pylab.figure()
weights = numpy.ones_like(data)/float(len(data))
n, bins, patches ...
1
vote
1answer
33 views
Matplotlib x-axis labels alignment off
I'm trying to plot a chart with dates as the x-axis. This plots fine, but the tick marks do not line up with the data points.
from datetime import datetime
import pylab as p
from matplotlib.dates ...
1
vote
1answer
49 views
In Matplotlib what is the Polar equivalent of get_xdata?
I found the following example of selecting data with the mouse but when I use the onpick function with a polar plot I get the following error:
xdata = thisline.get_xdata()
AttributeError: ...
1
vote
0answers
29 views
remotely running the “show()” command on matplotlib.pyplot
I'm currently trying to run a python script whose end goal is to show a figure. It skeletally looks like:
import matplotlib.pyplot as p
p.figure()
[build figure, create plots]
p.show()
I'm ...
-1
votes
1answer
60 views
How to remove the previous drawing in matplotlib, Python?
I have run 3 Python scripts and each of them generated one curve in the plot.
Each curve is made up of hundreds of small line segments.
Thus, each curve is drawn by a series of plot() instead of ...