Tagged Questions
2
votes
1answer
17 views
Python plot frequency of fft.rfft
this is my first question here on stackoverflow and I hope I will not make huge mistakes.
I am analyzing a set of time series with sampling rate of 1 Hz. I need to plot their fourier transform in ...
1
vote
1answer
30 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
13 views
How to get the exact shrink value when customizing arrow styles in annotate
When willing to use customized arrow styles in matplotlib one can do the approach explained in this answer. But there is still an issue when shrinkA or shrinkB are specified.
I thought of a way to ...
1
vote
1answer
35 views
How to go from a contour to an image mask in with Matplotlib
If I plot a 2D array and contour it, I can get the access to the segmentation map, via cs = plt.contour(...); cs.allsegs but it's parameterized as a line. I'd like a segmap boolean mask of what's ...
0
votes
0answers
16 views
How to shorten python plot time when there are many data points?
I'm drawing a plot with python. Code is below. When there are only a few hundreds of data points, the code executes well and returns fairly quick; but when there are 200k data points, it need a few ...
5
votes
1answer
59 views
Custom arrow style for matplotlib, pyplot.annotate
I am using matplotlib.pyplot.annotate to draw an arrow on my plot, like so:
import matplotlib.pyplot as plt
plt.annotate("",(x,ybottom),(x,ytop),arrowprops=dict(arrowstyle="->"))
I want to use ...
0
votes
1answer
20 views
Is it possible plot using ordered dictionary or list, OrderedDict doesn't work
I want to plot temperature decreasing in time. The calculation is correct, my problem is that dictionary can NOT be in order. I can sorted list in time. keys=time(1year,5year, 10year etc), ...
-1
votes
0answers
41 views
How to plot space time cube in matplotlib? [closed]
I have data in the format of (timestamp,lattitude,longitude) and would like to plot this as a space time cube in python. I tried pyprocessing but there is an issue with pyglet installation on ubuntu ...
0
votes
0answers
35 views
Real time plotting
I have a python 'for' main loop that passes the area of a contour as an int. I would like to plot the area curve in real-time (area vs time). At the moment, I am doing such as in the pseudocode below ...
1
vote
1answer
55 views
Use own colormap in a plot according to a 3rd value (no scatterplot)
I created my own colormap for matplotlib and I can use it for a scatterplot (thanks to stack overflow).How can I use it in the normal plot function (plt.plot()). It does not accept the "cmap" ...
3
votes
2answers
88 views
Down arrow symbol in matplotlib
I would like to create a plot where some of the points have a downward pointing arrow (see image below). In Astronomy this illustrates that the true value is actually lower than what's measured.Note ...
2
votes
2answers
57 views
matplotlib: filling under line in 3d polar plot
I'd like to plot a sine wave on a circle: that is, the circle is in the x,y-plane and the sine wave wraps around it perpendicular to that plane (sticking up the z-axis). I can do this, but when I try ...
0
votes
0answers
21 views
Add legend to Python scatter plot with variable size
I have a scatter plot in which the greater the frequency of some numeric value, the greater the size of the respective point in the scatter plot.
I need to add a legend with some referential sizes ...
0
votes
1answer
67 views
Create own colormap using matplotlib and plot color scale
I have the following problem, I want to create my own colormap (red-mix-violet-mix-blue) that maps to values between -2 and +2 and want to use it to color points in my plot.
The plot should then have ...
-2
votes
1answer
39 views
Python: Plotting Bessel functions of the first kind with a float argument
The equation I am working with is
$$
E = M_e + \sum_{n = 1}^N\frac{2}{n}\mathcal{J}_n(ne)\sin(nM_e)
$$
where $\mathcal{J}_n(x)$ is the nth Bessel function of the first kind.
As a test, I plotted ...