Re: [Matplotlib-users] modifying a plot from an imported module

2014-06-17 Thread felix_werner
Perfect, many thanks!

So the trick was _not_ to do show() in A.py

(Moreover, doing draw() in A.py also seems necessary... even though I
don't really get why -- actually in my own more complicated program, it
works also without this draw...)



--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/modifying-a-plot-from-an-imported-module-tp43533p43537.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


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 dyahr...@gmail.com 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

--
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


[Matplotlib-users] colors

2014-06-17 Thread Bruno Pace
Hi all,

I'm trying to use imshow to plot some values which fall on the interval
[0,1]. I need to
use a logscale to emphasize the scales of the data. The solution I found
checking some discussions was like this

plt.imshow(X, interpolation='none', norm=matplotlib.colors.LogNorm())

However, I notice that the way these colors are assigned are not always the
same (although my data always contains the minimum value 0.0 and  the
maximum 1.0). I need to have a coherent color scale to indicate the real
values. Is it easier to do the color code myself? What is the proper way of
tackling this problem??

It's pretty much the same problem described here, but with a logscale...

http://stackoverflow.com/questions/7875688/how-can-i-create-a-standard-colorbar-for-a-series-of-plots-in-python


Thank you very much!

Bruno
--
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