Plotting Tangent Function in Python with NumPy

View profile for Oscar Castillo-Felisola

Physicist | Data Scientist | Data Engineer | Researcher

🤔 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

  • chart

Use Nan at the points where tan is not defined?

See more comments

To view or add a comment, sign in

Explore content categories