Plotting a camera frustum in matplotlib 3D? - matplotlib

I am trying to reproduce the following image with my own data. However, I’m not sure how to create the red camera icon and the corresponding blue axis lines protruding from it.
http://mesh.brown.edu/3DP-2016/hw2/calib-extrinsics.png

Related

Update and Display a Coordinate Axis being Rotating and Translated in Real Time in Matplotlib?

I'm currently trying to recreate this: video, and I could not find how to recreate the 3D visualization step, where coordinate axis are translated and rotated around, in matplotlib. Does anyone know how to do in matplotlib's animation, updating the results in real time?

Rotate React Native Image around a pivot point

I would like to rotate a React Native Image based on an x/y point on the image, rather than the default centre.
Say I have a needle image and I want to sweep it around, like a speedometer on a car. I need to rotate it based upon a pivot point at the end of the image, rather than the image centre.
Can this be done?

Diamond shapes within Revolution slider

I tried to create diamond shape images into the Slider Revolution like you can see ​here. Unfortunately I cannot figure out how to create diamond images in Slider Revolution.
Actions:
I created custom square shape in Slider Revolution.
I rotated the square shape 45 degrees. So far so good!
I changed background of square with layer CSS:
{background-image: url("../wp-content/uploads/2016/04/SBLi-brand-signs-G-STAR-RAW.jpg");}
Result:
1.. Background image viewed in slider-revolution customizer but not on front-end website.
2. Background image rotated together with the square, how do I rotate back the background or is there a smarter, easier way to create diamond images in Slider Revolution?
I attached a image for better understanding of my diamond image issue :)

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.

matplotlib figure coordinates of plot area

How do you find the location of the plot area of an axes in figure coordinates or pixel coordinates?
I'm actually trying to capture click and motion events on the x axis area below the plot. So I'm getting an event and trying to test if it's y coordinate is below the plot area. I would think this is simple, but I can't seem to find anything by searching.
SOLVED - found it - wasn't easy to find - axes.bbox.bounds bounds is in pixels, same as the event.