I created a 3D contour map in Mathematica a while back, and I am trying to do it in Python this time. First let me show you what I obtained: Mathematica: Python: Now, I would like the foreground (the visible part of the hills) to hide the background (the invisible part). In the Python version, it seems as if you
Tag: contourf
tricontourf breaking when contouring over 0 point in polar plot
I am trying to plot a tricontourf on a polar plot, however it seems that it glitches out when plotting over the 0 longitude point. It’s clear when plotting as a scatter plot that the points are just fine. Furthermore, when plotting the tricontourf in other locations not containing 0 longitude it works just fine. Here is the code for
Python highlight user chosen area in contourf plot
What is the best solution for highlighting an area in a contourf plot? I want the background to be opacity of 0.5 and the user chosen area to be normal. How can I achieve this? Answer In How to nicely plot clipped layered artists in matplotlib? Jake Vanderplas shows a way to draw a rectangle with a rectangular hole. The