[Matplotlib-users] streamplot: vectors not pointing in the right direction!

2015-05-22 Thread Gabriele Brambilla
Hi, I have problems with streamplot I want to use a 3d vector field in coordinates (x,y,z) stored in a numpy array, and plot slices of it with streamplot. To test it I wanted to use a vector field with arrows pointed up in the z0 region and pointed down in the z0 region. import numpy as

Re: [Matplotlib-users] streamplot: vectors not pointing in the right direction!

2015-05-22 Thread Benjamin Root
The documentation for streamplot: ``` *x*, *y* : 1d arrays an *evenly spaced* grid. *u*, *v* : 2d arrays x and y-velocities. Number of rows should match length of y, and the number of columns should match x. ``` Note that the rows in *u* and

Re: [Matplotlib-users] Confused about rgb_to_hsv and hsv_to_rgb

2015-05-22 Thread Joe Kington
I think you're asking how to blend a custom intensity image with an rgb image. (I'm traveling and just have my phone, so you'll have to excuse my lack of examples.) There are several ways to do this. Basically, it's analogous to blend modes in Photoshop etc. Have a look at the

Re: [Matplotlib-users] streamplot: vectors not pointing in the right direction!

2015-05-22 Thread Gabriele Brambilla
Thanks! you are right! I didn't notice this detail Gabriele On Fri, May 22, 2015 at 3:58 PM, Benjamin Root ben.r...@ou.edu wrote: The documentation for streamplot: ``` *x*, *y* : 1d arrays an *evenly spaced* grid. *u*, *v* : 2d arrays x and

[Matplotlib-users] Legend cut off figure

2015-05-22 Thread njs
I've tried several methods on stackoverflow (http://stackoverflow.com/questions/10101700/moving-matplotlib-legend-outside-of-the-axis-makes-it-cutoff-by-the-figure-box) and I'm still seeing issues with matplotlib cutting off my legend. The figure and code are posted below, note that I am using