How to plot a vector field with error ellipse using cartopy - cartopy

Cartopy seems like a great tool for Geoscience, but it appears to lack a method for plotting vector data on a map together with their error ellipses. Is there a straightforward way to add error ellipses centered on the tips of vector data?

Cartopy inherits all its vector plotting functionality from matplotlib. Cartopy provides a way to project the vectors, but they are drawn by matplotlib. I haven't heard of a feature you describe in matplotlib, so I'm afraid the answer is probably no.

Related

Is it possible to plot on a surface in Matplotlib?

In GNUPlot it is possible to plot a function on a surface (see, for example, this question). Similar thing can be done in Mathematica (see this question).
Is it possible to do the same thing in Matplotlib? Alternatively, is it possible to map the colourmap by the function that one intends to plot on the surface?
A good example of this is plotting an ellipsoid, and visualising the Gauss curvature at each point on it with the colourmap.

Matplotlib: optimize vector image output, remove hidden vectors data

Assume I have a very big Matplotlib scatterplot with overlapping points.
Is there a way to ask Matplotlib to optimize ('compress') the plot (e.g. during savefig), so to not export vectors which are invisible (overlapped by others).
My current EPS/SVG/PDF-savefig is very big.
I can solve this by preprocessing the input data, however level of overlapping also depends on the plot properties (e.g. size of the marks etc).
If Matplotlib cannot do this, are there other tools which can optimize vector graphics (open source/free tools,so not the Adobe suite).
Tx.

Circular panning with matplotlib

I'm looking for a way to have interactive "circular panning" with matplotlib: when
interactively moving the axes to the left or the right, I want the data
(and axes labels) to "wrap around". (An (silly) example application would
be e.g. plotting annual average temperatures, and wanting to look at
whether anything special is happening around New Year.)
Is there a simple way to achieve this?

How can I output a matplotlib figure to a shapefile?

I want to create a contour plot with matlibplot and generate a shapefile from it so that I can use it in QGIS to display it.
Though it is possible to plot a map with matplotlib and then overlay with my contour plot, the choices of map sources are limited. It would be easier to export the contour plot in a shapefile and loaded in QGIS with a customized map.
Thanks!
There is a contour plugin available in QGIS, and it is based on the contouring functions of matplotlib. It's still a little bit buggy but hopefully that will be corrected in the future.

3d Visualisation in matplotlib

I am using matplotlib for visualisation. I need 3d visualisation and also the animations in my visualisation. I have searched about the 3d visualisation and animation in matplotlib but get nothing useful information. Is it possible or not to use matplotlib for 3d visuallisation and animations. What are the links that I can study about it ?
Animation and 3D plot are available on mplot3d library. Take a look at wire3d_animation and mayavi Animation.
Here is what I, probably most of people, use for python numpy plotting.
For 2D figure plotting, use matplotlib.
For 3D surface and volume plotting, use mayavi.
Both of them come with their own approaches of animating plots. Nevertheless, moviepy is a great alternative approach.