Pick a particular data from array

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?

<http://matplotlib.1069221.n5.nabble.com/file/n43532/190311.png>

Thank you in advance.

Dydy

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Pick-a-particular-data-from-array-tp43532.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

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 <dyahrm09@…287…> wrote:

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?

<http://matplotlib.1069221.n5.nabble.com/file/n43532/190311.png>

Thank you in advance.

Dydy

View this message in context: http://matplotlib.1069221.n5.nabble.com/Pick-a-particular-data-from-array-tp43532.html

Sent from the matplotlib - users mailing list archive at Nabble.com.


HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions

Find What Matters Most in Your Big Data with HPCC Systems

Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.

Leverages Graph Analysis for Fast Processing & Easy Data Exploration

http://p.sf.net/sfu/hpccsystems


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

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.com/Pick-a-particular-data-from-array-tp43532p43545.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

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 data.
The former requires you to add events to your figure so that you can pick values interactively. The matplotlib example [pick_event_demo][1] shows you how it’s done. I recomment studying it and then asking again if it doesn’t work.

1: http://matplotlib.org/examples/event_handling/pick_event_demo.html

···

2014-06-19 2:56 GMT+02:00 dydy2014 <dyahrm09@…287…>:

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.com/Pick-a-particular-data-from-array-tp43532p43545.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions

Find What Matters Most in Your Big Data with HPCC Systems

Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.

Leverages Graph Analysis for Fast Processing & Easy Data Exploration

http://p.sf.net/sfu/hpccsystems


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users