Hide wrong values of a graph
I found a way that works:
I used the Xlim to set my max and min x values and then i set all the values that i didnt want to nan !
I am building graphics using Matplotlib and I sometimes have wrong values in my Csv files, it creates spikes in my graph that I would like to suppress, also sometimes I have lots of zeros ( when the sensor is disconnected ) but I would prefer the graph showing blank spaces than wrong zeros that could be interpreted as real values.