Re: [Matplotlib-users] colorbllind problem

2014-02-17 Thread Gabriele Brambilla
':np.array([213,94,0])/255., 'ReddishPurple':np.array([204,121,167])/255. } Cheers, Chao On Mon, Feb 17, 2014 at 7:17 PM, Gabriele Brambilla [via matplotlib] [hidden email] http://user/SendEmail.jtp?type=nodenode=42886i=0 wrote: Hi, I'm dealing with a guy that is colorblind. Have

Re: [Matplotlib-users] colorbllind problem

2014-02-18 Thread Gabriele Brambilla
= 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() On Mon, Feb 17, 2014 at 3:00 PM, Gabriele Brambilla gb.gabrielebrambi...@gmail.com wrote: Hi

Re: [Matplotlib-users] colorbllind problem

2014-02-18 Thread Gabriele Brambilla
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. Using a color palette that changes only

Re: [Matplotlib-users] colorbllind problem

2014-02-19 Thread Gabriele Brambilla
, 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]) On Tue, Feb 18, 2014 at 10:30 AM, Gabriele Brambilla gb.gabrielebrambi

[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

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

2014-03-10 Thread Gabriele Brambilla
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 particular plot similar to this one: http://matplotlib.org/examples

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

2014-03-10 Thread Gabriele Brambilla
= plt.subplots(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 10:46 AM, Gabriele Brambilla

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 joferking...@gmail.com: 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 errorbar plot? like axes

Re: [Matplotlib-users] Axes 3d scatter

2014-09-22 Thread Gabriele Brambilla
/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 use a 3d scatter plot. import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt from

[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] subplot axis ticks

2014-12-11 Thread Gabriele Brambilla
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 wrote: Hi all, I'm trying to set the NUMBER of ticks on a subplot

Re: [Matplotlib-users] subplot axis ticks

2014-12-11 Thread Gabriele Brambilla
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, I already saw that stack overflow page but this is my code: azal = rif.add_subplot(111) azal.plot(eels

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.locator_params(nbins

[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:

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

2015-03-19 Thread Gabriele Brambilla
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! On Thu, Mar 19, 2015 at 1:13 PM, Gabriele Brambilla

[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 Gabriele Brambilla
, 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 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