Re: [Matplotlib-users] Boundary edges of a set of points

2011-04-29 Thread Ian Thomas
On 28 April 2011 22:56, Luke hazelnu...@gmail.com wrote: I am thinking that perhaps the approach I should be taking should involve contouring the real part of the eigenvalues which determine the stability, and then plot the zero-level curve. I'll have to think about that some more. This

[Matplotlib-users] Annotate value of a variable with ax.annotate?

2011-04-29 Thread Pau
Hello, I am trying to print in the plot the value of a time variable which I obtain like this Time = MBH_inst[0] # Column 1 This should be placed on the top right part of the plot showing the current time Time = XXX yrs But I do not know how to pass this to ax.annotate:

[Matplotlib-users] Bug in imread

2011-04-29 Thread Thomas Robitaille
Hi, I've found a bug in imread which causes images in PNG and JPEG format to be flipped when using imshow. For example, import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(1,2,1) image = plt.imread('2mass_rgb.png') ax.imshow(image,

Re: [Matplotlib-users] Annotate value of a variable with ax.annotate?

2011-04-29 Thread Michael Droettboom
You could use Python string formatting, like so: ax.annotate('Time = %s' % Time, size=18, xy=(3, 1), xycoords='data', xytext=(0.8, 0.95), textcoords='axes fraction', horizontalalignment='right', verticalalignment='top', ) On 04/29/2011 06:54 AM, Pau

[Matplotlib-users] Drawing on plots

2011-04-29 Thread Soumyaroop Roy
Hi there: I have an x-y plot and I want to draw a vertical marker (an x=c line) on the plot on a mouse click. How should I approach it? regards, Soumyaroop -- WhatsUp Gold - Download Free Network Management Software The