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
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 wrote
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, ori
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:
ax.annotate('Ti
On 28 April 2011 22:56, Luke 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 sounds like a very