[Matplotlib-users] Connect plot in Contourf when there are missing values(nan)

I am plotting x, y, z values using contourf plots. However I have some
missing z values (nan). All these regions are shown as blanks and the graph
looks diconnected.

Is there a way for the plot to have connected gaps? Plotly has an option to
connect gaps with smooth transitions?

Do we have an equivalent of this in matlotlib contourf plots?

···

--
Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@python.org
https://mail.python.org/mailman/listinfo/matplotlib-users

I just found this unread in my email stack--did anyone reply to you already? If not, the answer to your question is no, matplotlib declines to fill bad value gaps via interpolation. We believe that as a plotting library, we should generally plot the data as provided, leaving it to the user to interpolate over gaps, if that is desired.

Eric

···

On 2020/02/19 9:42 PM, apu wrote:

I am plotting x, y, z values using contourf plots. However I have some
missing z values (nan). All these regions are shown as blanks and the graph
looks diconnected.

Is there a way for the plot to have connected gaps? Plotly has an option to
connect gaps with smooth transitions?
Contour plots in Python

Do we have an equivalent of this in matlotlib contourf plots?

--
Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@python.org
Matplotlib-users Info Page

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@python.org
https://mail.python.org/mailman/listinfo/matplotlib-users