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

2015-05-22 Thread Gabriele Brambilla
! > Ben Root > > > On Fri, May 22, 2015 at 2:50 AM, Gabriele Brambilla < > gb.gabrielebrambi...@gmail.com> wrote: > >> Hi, >> >> I have problems with streamplot >> >> I want to use a 3d vector field in coordinates (x,y,z) stored in a numpy >

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

2015-05-21 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 z>0 region and pointed down in the z<0 region. import numpy as

Re: [Matplotlib-users] segmentation fault when saving images

2015-03-19 Thread Gabriele Brambilla
ipoly.py script and run it again. That way, we can get a traceback and > find out where it is segfaulting from. > > http://faulthandler.readthedocs.org/en/latest/ > > Ben Root > > As a side-note: faulthandler is part of the standard library as of 3.3! > Neat! > > >

[Matplotlib-users] segmentation fault when saving images

2015-03-19 Thread Gabriele Brambilla
Hi guys, I don't understand why now, after I save an image when it is prompted out, the image is not saved and it closes automatically and on the terminal appears segmentation fault. this is what my terminal shows: [gs66-stumbras:~/Desktop] gbrambil% python Bdipole.py Bdipole.py:52: RuntimeWarn

Re: [Matplotlib-users] subplot axis ticks

2014-12-11 Thread Gabriele Brambilla
This guy helped me http://stackoverflow.com/questions/27425974/change-ticks-number-on-a-subplot/27426087?noredirect=1#comment43295472_27426087 thanks anyway Gabriele On Thu, Dec 11, 2014 at 11:18 AM, Gabriele Brambilla < gb.gabrielebrambi...@gmail.com> wrote: > Doing > > azal

Re: [Matplotlib-users] subplot axis ticks

2014-12-11 Thread Gabriele Brambilla
otting would fix that? > > Might be one of those rare situations where the order of commands matter > in matplotlib. > > Ben Root > > On Thu, Dec 11, 2014 at 10:50 AM, Gabriele Brambilla < > gb.gabrielebrambi...@gmail.com> wrote: >> >> Hi, >> >&

Re: [Matplotlib-users] subplot axis ticks

2014-12-11 Thread Gabriele Brambilla
have some ideas in mind (i.e. close to 5 ticks, but > you’d prefer whole numbers, etc). > > http://matplotlib.org/1.4.2/examples/pylab_examples/major_minor_demo1.html > > Cheers, Jody > > On Dec 11, 2014, at 6:29 AM, Gabriele Brambilla < > gb.gabrielebrambi...@gmail.com

[Matplotlib-users] subplot axis ticks

2014-12-11 Thread Gabriele Brambilla
Hi all, I'm trying to set the NUMBER of ticks on a subplot axis. Googling I'm finding only how to set the ticks values...but what if I don't know them and for visual reasons I would like to have a fixed number of ticks? thanks Gabriele

Re: [Matplotlib-users] Axes 3d scatter

2014-09-22 Thread Gabriele Brambilla
version__" > > > On Mon, Sep 22, 2014 at 11:42 AM, Gabriele Brambilla < > gb.gabrielebrambi...@gmail.com> wrote: > >> If it returns this means that I have an older version? >> >> Traceback (most recent call last): >> File "dataMODEL.py", li

Re: [Matplotlib-users] Axes 3d scatter

2014-09-22 Thread Gabriele Brambilla
ot; argument that you can set to false. > > http://matplotlib.org/mpl_toolkits/mplot3d/tutorial.html#scatter-plots > > Cheers! > Ben Root > > On Mon, Sep 22, 2014 at 11:18 AM, Gabriele Brambilla < > gb.gabrielebrambi...@gmail.com> wrote: > >> Hi I'm trying to u

[Matplotlib-users] Axes 3d scatter

2014-09-22 Thread Gabriele Brambilla
Hi I'm trying to use a 3d scatter plot. import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt from matplotlib import cm fig = plt.figure() ax = fig.add_subplot(111, projection='3d') ax.scatter(np.log10(NP), np.log10(NB*10**12), np.log10(NL), c='k'

Re: [Matplotlib-users] multiplot in a for loop

2014-03-10 Thread Gabriele Brambilla
thank you guys, it works very well! Gabriele 2014-03-10 14:07 GMT-04:00 Joe Kington : > > On Mar 10, 2014 1:00 PM, "Gabriele Brambilla" < > gb.gabrielebrambi...@gmail.com> wrote: > > > > And how can I select in which position of the grid of plots put my

Re: [Matplotlib-users] multiplot in a for loop

2014-03-10 Thread Gabriele Brambilla
bplots(nrows=R, ncols=C)` as a > replacement for `fig = plt.figure` and `fig.add_subplot()`. > > `axes` will be a numpy array of Axes objects through which you'll be able > to loop along with your other variable. > > Good luck. > -paul > > > On Mon, Mar 10, 2014 at 1

[Matplotlib-users] Fwd: multiplot in a for loop

2014-03-10 Thread Gabriele Brambilla
; example down into some code that we can copy, paste, and run? A more > thorough description of the problem might help too. > -p > > > On Mon, Mar 10, 2014 at 9:39 AM, Gabriele Brambilla < > gb.gabrielebrambi...@gmail.com> wrote: > >> Hi I'm trying to do a par

[Matplotlib-users] change ylim xlim from canvas doesn't work

2014-02-24 Thread Gabriele Brambilla
Hi, when I try to change the ylim and xlim directly from the displayed canvas i get this error(when I change them in the code I have no problems): Traceback (most recent call last): File "C:\Anaconda\lib\site-packages\matplotlib\backends\backend_qt4.py", line 594, in edit_parameters figure

Re: [Matplotlib-users] colorbllind problem

2014-02-19 Thread Gabriele Brambilla
_palette("RdPu_r", 10) > seaborn.set_color_palette(myPalet1) > x = np.linspace(start=0, stop=5, num=100) > fig, ax = plt.subplots() > for n, slope in enumerate(np.linspace(start=0, stop=5, num=10)): > ax.plot(x, slope*x**2, color=myPalet1[n]) > > &g

Re: [Matplotlib-users] colorbllind problem

2014-02-18 Thread Gabriele Brambilla
tle('phase resolved spectra, ' + lightitle) axius.set_ylim([-100, 1]) axius.legend(bbox_to_anchor=(1.05, 1), loc=9, borderaxespad=0.) lotgr.canvas.draw() thanks Gabriele 2014-02-18 10:47 GMT-05:00 Gabriele Brambilla < gb.gabrielebrambi...@gmail.com>: > it works, thank you. &

Re: [Matplotlib-users] colorbllind problem

2014-02-18 Thread Gabriele Brambilla
dd_subplot(111) > > for a1,b1,c1,d1,angol in zipPARA: > fittedval = spock(logeels, a1, b1, c1, d1) > angli = str(angol) > imig = axius.plot(logeels, fittedval, label=angli) > > axius.legend(bbox_to_anchor=(1.05, 1), loc=9, borderaxespad=0.) > lotgr.canvas.draw() > > > O

Re: [Matplotlib-users] colorbllind problem

2014-02-17 Thread Gabriele Brambilla
here if you feel like to have a >>> try: >>> CCC = >>> { >>> >>> 'Black':np.array([0,0,0])/255., >>> >>> 'Orange':np.array([230,159,0])/255., >>> >>> 'Skyblue':np.array([85,180,233

[Matplotlib-users] plotting two functions on the same figure but with two different scales on y axis

2014-02-14 Thread Gabriele Brambilla
Hi, I'm trying to plot two functions on the same errorbar picture like the code below: fmlp = plt.figure() axop = fmlp.add_subplot(111) insp = axop.errorbar(g, Pampli, yerr = ePampli, fmt = '.') ins1 = axop.errorbar(g, lightcurva, yerr = zeros, fmt = 'x')