Re: [Matplotlib-users] 1d plot of a discontinuous function

2011-09-30 Thread Benjamin Root
2011/9/30 Александров Петр > How to make a plot of a discontinuous 1d function without line at a > function jump. An example is shown on a picture. This was plotted by: > import numpy > from matplotlib import pyplot > x = numpy.linspace(-1.0, 1.0, 100) > y = numpy.sign(x) * numpy.cos(x) > axes =

Re: [Matplotlib-users] 1d plot of a discontinuous function

2011-09-30 Thread Sebastian Berg
Hey, On Fri, 2011-09-30 at 17:31 +0400, Александров Петр wrote: > How to make a plot of a discontinuous 1d function without line at a > function jump. An example is shown on a picture. This was plotted by: > import numpy > from matplotlib import pyplot > x = numpy.linspace(-1.0, 1.0, 100) > y = nu

Re: [Matplotlib-users] 1d plot of a discontinuous function

2011-09-30 Thread Fabrice Silva
Le vendredi 30 septembre 2011 à 17:31 +0400, Александров Петр a écrit : > How to make a plot of a discontinuous 1d function without line at a > function jump. An example is shown on a picture. This was plotted by: > import numpy > from matplotlib import pyplot > x = numpy.linspace(-1.0, 1.0, 100) >