Hi, all:
I have two legends, as below, I find that I can't drag the first legend,
what is the problem? how to deal with it? thanks!
import matplotlib.pyplot as plt
fig1, ax1 = plt.subplots()
ax2 = ax1.twinx()
ax1.plot([1,2,3],[0.1,0.82,0.3],'y*', label="one")
The mouse events only propagate to the top axes. You will have to add both
legends to the same (top) axes.
See http://matplotlib.org/users/legend_guide.html#multiple-legend
Tom
On Wed, Mar 11, 2015, 08:57 liu lily wrote:
> Hi, all:
>
> I have two legends, as below, I find that I can't drag th
I dont understand
you say it is the first axe
but why in my case, only the second legend is draggable? it is in the
second axe
besides, since I have to use both y-axis on the left and on the right, it
seems I have to have two axes,
are there any workarounds? thanks!
On Wed, Mar 11, 2015 at 2:22 P
By "top" he means "whichever axes was added most recently". When twining,
the new axes is added on top of the original axes.
I hope that clears it up.
Ben Root
On Wed, Mar 11, 2015 at 10:05 AM, liu lily wrote:
> I dont understand
> you say it is the first axe
> but why in my case, only the sec
thanks,
then are there any workaround on my case?
or are there any other libaries which I CAN use to plot and manipulate the
GUI?
On Wed, Mar 11, 2015 at 3:54 PM, Benjamin Root wrote:
> By "top" he means "whichever axes was added most recently". When twining,
> the new axes is added on top of th
As I said in the first email, you need to put both legend artists on the
top axes. The link is to the documentation on _how_ to put more than one
legend in the same axes.
Tom
On Wed, Mar 11, 2015 at 10:58 AM liu lily wrote:
> thanks,
> then are there any workaround on my case?
> or are there a
Thomas described the work-around and provided a link. Put both of the
legends on the second axes. It is a kludge, for sure, but it is all you can
do.
On Wed, Mar 11, 2015 at 10:58 AM, liu lily wrote:
> thanks,
> then are there any workaround on my case?
> or are there any other libaries which I
Hi,
Given the Lorenz code shared yesterday, is there a way
to generate a log file of the x,y,z points generated?
Thanks in advance.
--Prahas
In case you deleted the code:
import numpy as np
from scipy import integrate
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes
Hello,
Solved the write issue.
I tried numpy savetxt but it chokes on 3D arrays.
So I'm doing this:
x_t.tofile('test3.txt',sep=" ",format="%f")
Only issue -- no end-of-lines. But I can write a quick
Pascal program to fix this...
Once again, thanks!
---
What 3D array? There shouldn't be any 3D arrays. I suspect that x_t is only
accidentally 3d by having a shape like (N, M, 1) or (1, N, M).
Ben Root
On Wed, Mar 11, 2015 at 5:05 PM, Prahas David Nafissian <
prahas.mu...@gmail.com> wrote:
> Hello,
>
> Solved the write issue.
>
> I tried numpy save
Sometimes a simple text file really does the trick... However, you might
consider saving yourself some future pain by learning some non-text based
storage formats. In the past, I used text files all the time, and they
quickly became limiting, as you've noticed.
I personally like HDF files. There a
Thank you so much Jody, Eric, Arnaldo, and Joy.
I will try your suggestion.
Dyah
On Sat, Mar 7, 2015 at 5:21 AM, Jody Klymak wrote:
> Hi,
>
> I guess I don't understand the "[axx for axx in ax.flat]" command, but
> this steals from all the axes.
>
> Cheers, Jody
>
> fig,ax = plt.subplots(2,2
12 matches
Mail list logo