[Matplotlib-users] Pick a particular data from array

2014-06-16 Thread dydy2014
Hello all, I have contour plot like this and I have problem to pick a particular data along red line and save it. How do I make it with python program? Thank you in advance. Dydy -- View this message in context: http://matplo

Re: [Matplotlib-users] Pick a particular data from array

2014-06-17 Thread Paul Hobson
Based on the example you posted, you need like: import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.contour(data) ax.axhline(magic_value) On Mon, Jun 16, 2014 at 1:30 AM, dydy2014 wrote: > Hello all, > > I have contour plot like this and I have problem to pick a particular data > along

Re: [Matplotlib-users] Pick a particular data from array

2014-06-18 Thread dydy2014
Thank you Paul for your comment, but what I need not just put a line in the contour. I want to pick value along the red line, so which the data that placed on the red line. Then I will plot it in the other type of plot. -- View this message in context: http://matplotlib.1069221.n5.nabble.co

Re: [Matplotlib-users] Pick a particular data from array

2014-06-19 Thread Oliver
Just to clarify, do you actually want to be able to "pick" it, so by selecting in interactively (and probably manually, i.e. with the mouse) or are you only interested in displaying the "data underneath the line". The second is straightforward: just plot in a new axes the relevant row of your 2D d

Re: [Matplotlib-users] Pick a particular data from array

2014-06-19 Thread Slavin, Jonathan
t; matplotlib-users-requ...@lists.sourceforge.net> wrote: > From: dydy2014 > To: matplotlib-users@lists.sourceforge.net > Cc: > Date: Wed, 18 Jun 2014 17:56:21 -0700 (PDT) > Subject: Re: [Matplotlib-users] Pick a particular data from array > Thank you Paul for your comment, but