Joe and list,
This is off topic, but can you point me to good documentation on the use of '&'
as opposed to numpy.logical_and ?
Thanks,
Sterling
On Aug 28, 2014, at 7:18PM, Joe Kington wrote:
> Why not just use boolean indexing?
>
> E.g. to find the region that falls between 5 and 10, do "(
Why not just use boolean indexing?
E.g. to find the region that falls between 5 and 10, do "(z >=5) & (z <=
10)":
In [1]: import numpy as np
In [2]: x, y = np.mgrid[-10:10, -10:10]
In [3]: z = np.hypot(x, y)
In [4]: result = (z >= 5) & (z <= 10)
In [5]: result.astype(int)
Out[5]:
array([[0, 0
On 2014/08/28, 3:02 AM, Matthew Czesarski wrote:
> Hi Matplotlib Users!
>
>
>
> I have some 2-d arrays, which i am displaying with implot, and deriving
> contours for with contour. Easy - I'm just pulling them out of
> collections[0].get_paths() .
>
> However what's not easy is that I would like
No reason why it shouldn't. I would be more than happy to see that feature
added. I could perhaps be convinced that it is a "bug" that it is in the
boxplot function and not the violin function so that it could get out into
a 1.4.1 release sooner. ::wink::
On Thu, Aug 28, 2014 at 8:05 AM, Neal Bec
You are asking for the twinx() feature:
http://matplotlib.org/examples/api/two_scales.html
On Thu, Aug 28, 2014 at 9:24 AM, Shantha Kumara wrote:
> Hi All,
>
> Thank you so much for your help, It really worked for me.
>
>
> I need one more favor,
>
>
> I have ploted the graph with 2 Y-axes
>
>
That stuff is done in the deep underbelly of matplotlib and isn't exposed
to the user. It is done as part of the rendering process in AGG or
whichever other backend is performing the render. I have done something
very similar to what you are asking for my job, and while I can't share the
code, I ca
Hi All,
Thank you so much for your help, It really worked for me.
I need one more favor,
I have ploted the graph with 2 Y-axes
Here is the code
lns1 = ax1.plot(x1, y1, 'r-o',label=LY1,markersize=4)
ax1 = self.set_ylim(ax1,y1,label=LY1)
lns2 = ax2.plot(x2, y2, 'b-o',l
Hi Matplotlib Users!
I have some 2-d arrays, which i am displaying with implot, and deriving
contours for with contour. Easy - I'm just pulling them out of
collections[0].get_paths() .
However what's not easy is that I would like to recover a 1-0 or True-False
array of the array values (pixe
As others noted, seaborn does very nice violin plots. I was hoping the mpl
version would replace that.
On Thu, Aug 28, 2014 at 8:04 AM, Thomas Caswell wrote:
> We also welcome PRs! Adding that feature should be pretty straight
> forward.
>
> Iirc it should be a matter of adding an extra key t
We also welcome PRs! Adding that feature should be pretty straight
forward.
Iirc it should be a matter of adding an extra key to the dictionary and a
conditional to draw the lines if those keys exist.
Tom
On Aug 27, 2014 4:57 PM, "Arnaldo Russo" wrote:
> Hi Neal,
> I don't know if you need exc
10 matches
Mail list logo