🤔 Is there a right way to plot the tangent function in python? I was writing about `numpy` and showing some u-functions plots, when something caught my attention... the plot of the tangent function had misleading vertical lines! I found a neat trick to avoid them 😄 🔗 Post with the code: https://lnkd.in/dftZyDJG #python #matplotlib #mathematics #tangent #plot #singularities #numpy #ufunctions
Clever trick. 😉
Use Nan at the points where tan is not defined?