0
votes
0answers
37 views

crash of python window as it approaches plot line [closed]

The graph wouldn't plot. It would be very helpful if i can get this to work. i am a newbie to python. It would be very helpful if you could explain it a bit elaborately. # Exterior Dimensions of ...
1
vote
1answer
23 views

Plot numerical string values in matplotlib

Suppose I have: x = ['1.34511','0.0234','-0.0890'] y = ['0.0987', '0.8763', '-0.0762'] How can I plot those values in matplotlib? I've already made a search about 'ticks', but I still don't ...
1
vote
2answers
39 views

Python (Matplotlib) - show multiple figures (plots) with an x and/or y offset (so without overlapping)

I'm trying to show multiple figures at once, but with an offset so I don't have to move the first figure to check that it showed all the figures (plots). So here's an example: from pylab import * ...
4
votes
3answers
41 views

Python Matplotlib: plot with 2-dimensional arguments : how to specify options?

I am plotting several curves as follow: import numpy as np import matplotlib.pyplot as plt plt.plot(x, y) where x and y are 2-dimensional (say N x 2 for the sake of this example). Now I would ...
1
vote
2answers
47 views

Matplotlib: show labels for minor ticks also

In matplotlib, when I use a log scale on one axis, it might happen that that axis will have no major ticks, only minor ones. So this means no labels are shown for the whole axis. How can I specify ...
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
1answer
20 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
46 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 ...
5
votes
1answer
79 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 ...
-1
votes
0answers
45 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 ...
1
vote
1answer
58 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
98 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
67 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
1answer
72 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
47 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 ...

1 2 3 4 5 26
15 30 50 per page