Pink lines and dots on display Ubuntu - ubuntu-16.04

There are pink pixels and horizontal lines appearing on my display everywhere. I am using Ubuntu 16.04, Nvidia-375 driver.
Can someone help me get rid of this problem please?
enter image description here
EDIT: Shift to Nvidia-381 to solve it.

Related

Make grid visible with imagesc (Linux software opengl)

I'm talking about the grid() command, not the previously asked and answered questions about showing lines around pixels (data cells). My image is of scientific data that has relevant axes and I would like the grid to overlay on the image plot. When I call grid(), the grid is there, but imagesc() covers it up. I can see it if I change the alpha of the image, but then the image looks grayed out. Is there another option?
EDIT: Here's an example of what I want. It turns out that it works just fine on my Windows machine, but my linux box shows no grid lines as described above. The linux machine uses software opengl. Any workarounds?

When using leaflet maps with cluster options, some circles are not clickable

I have developed a map using leaflet and leaflet.Markercluster. My problem is, that when the circle, at full zoom, is too near the original circle, it is not clickable.
In the image, you can see the pop-up that is displayed when you click on a circle. However, when you click on the red circle, no pop-up displays. Firstly, let me emphasise, that the red circle is actually the same as the other circles, I have just coloured red in this image, so I can refer to it. Based on this example, and other examples I have, the problem is when the circle is covered by the original circle (barely visible as an orange shade in the centre).
Is there a way to fix this?
Thanks
This is a known issue of Leaflet.markercluster plugin when you use CircleMarkers and they are spiderfied: see also this post on GIS Stack Exchange https://gis.stackexchange.com/questions/259376/reading-attribute-popup-information-from-cluster-presented-points-in-the-map-gen/259538?noredirect=1
This should normally have been fixed by default since 2018 (PR #846, included since v1.3.0), which version of Leaflet.markercluster are you using?
If you still have an issue, please raise an issue on the plugin repo, and provide a reproduction sample.
In the meantime, you can also use the old trick of increasing spiderfyDistanceMultiplier option to more than 1, so that the spiderfication is bigger, and the innermost Circle Marker extends beyond the Cluster icon.

Pasting an image on top of another image

I have this poster image:
I have to blend it with another image. I have to put this image on a picture of a building like this:
The rotated poster image has white pixels that I don't know how to get rid of.
Can someone please help me with code to paste this image on the building image? The front of the building.
Firstly find the four corner points of building where you want to blend image. Also find four corner points of your poster. Then use perspective transform and warpaffine to paste poster on image.
This http://www.learnopencv.com/homography-examples-using-opencv-python-c/ link may help you to get the idea but it is using OpenCV.
I have tried this using OpenCV C++ and I am getting following image after applying perspective transform. Let me know if you want this kind of results:

MATLAB Mupad Issues

I am having issues with the MuPad 3d graphic display in MATLAB. When I got to click in the window to control the display it looks like this with the gray borders around it.
If anyone could show me how to change this so that the grey borders are gone that would be great!

Imagemagick perspective and virtual pixels

I'm trying to automatically straighten an image so that a grid is aligned with the picture.
However, whenever I do the manipulation there is a white border around the image.
Can anybody help me with this problem?
I managed to solve it, turns out I had some values the wrong way round, which forced virtual pixels to be made.