[Matplotlib-users] Log scaling error on rev8753

2010-10-18 Thread Gökhan Sever
Hello, I can't log scale my axes on rev8753. It was working on a previous check-out (possibly a month old). Using WXagg, but same as with Qt4Agg. Any ideas what could be wrong in the trunk? It seems to me that some recent changes on LogLocator [ http://matplotlib.svn.sourceforge.net/viewvc/matplo

Re: [Matplotlib-users] Ticks Size

2010-10-18 Thread Gökhan Sever
On Mon, Oct 18, 2010 at 5:36 PM, Eric Firing wrote: > > setp(xticks, markeredgewidth=4) > > Ticks are markers. > > Eric Good catch. Thanks for the fix. -- Gökhan -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new

Re: [Matplotlib-users] Ticks Size

2010-10-18 Thread Eric Firing
On 10/18/2010 09:42 AM, Gökhan Sever wrote: > On Mon, Oct 18, 2010 at 12:46 PM, Ted Kord wrote: >> Hi >> >> How do I make the tick size bigger as in thicker/bolder? >> >> matplotlib.rc('ytick.major', size=5) makes it longer but 'not' thicker. >> >> Ted > > I[1]: plt.plot(range(100)) > O[1]: [] > >

Re: [Matplotlib-users] Ticks Size

2010-10-18 Thread Gökhan Sever
On Mon, Oct 18, 2010 at 12:46 PM, Ted Kord wrote: > Hi > > How do I make the tick size bigger as in thicker/bolder? > > matplotlib.rc('ytick.major', size=5) makes it longer but 'not' thicker. > > Ted I[1]: plt.plot(range(100)) O[1]: [] I[2]: xticks = getp(gca(), 'xticklines') I[3]: xgrids = get

[Matplotlib-users] Libertine font in Matplotlib?

2010-10-18 Thread Thøger Emil Juul Thorsen
Hi all; I'm using the excellent font Linux Libertine for writing my thesis, in which I do my plotting in matplotlib. I would really love to be ablu to have consistent fonts in both text and graphs - is this possible? I know it can be loaded by \usepackage{libertine}. Best; Emil --

[Matplotlib-users] scientific notation in ticklabels for linear plot

2010-10-18 Thread Jonathan Slavin
Hi, I'm wondering if there's some relatively automatic way to have the ticklabels to come out in scientific notation for an axis that uses a linear scale (and has a range that warrants scientific notation)? For example, an axis that goes from 0 to 2.E18 by default uses the labels 0, 0.5, 1.0, 1.5

Re: [Matplotlib-users] problem of cm.get_cmap('gist_rainbow',256)

2010-10-18 Thread LittleBigBrain
On Mon, Oct 18, 2010 at 8:25 PM, LittleBigBrain wrote: > On Mon, Oct 18, 2010 at 6:23 PM, Friedrich Romstedt > wrote: >> 2010/10/18 LittleBigBrain : >>> Hi Friedrich, >>> >>> Thanks for produce the patch. But I do not know how to use 'git'. And >>> I cannot find the changes you made on web. >>> t

Re: [Matplotlib-users] problem of cm.get_cmap('gist_rainbow',256)

2010-10-18 Thread LittleBigBrain
On Mon, Oct 18, 2010 at 6:23 PM, Friedrich Romstedt wrote: > 2010/10/18 LittleBigBrain : >> Hi Friedrich, >> >> Thanks for produce the patch. But I do not know how to use 'git'. And >> I cannot find the changes you made on web. >> though the latest update by you is 2 hours ago, in the online sourc

[Matplotlib-users] Ticks Size

2010-10-18 Thread Ted Kord
Hi How do I make the tick size bigger as in thicker/bolder? matplotlib.rc('ytick.major', size=5) makes it longer but 'not' thicker. Ted -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash

Re: [Matplotlib-users] problem of cm.get_cmap('gist_rainbow',256)

2010-10-18 Thread Friedrich Romstedt
2010/10/18 LittleBigBrain : > Hi Friedrich, > > Thanks for produce the patch. But I do not know how to use 'git'. And > I cannot find the changes you made on web. > though the latest update by you is 2 hours ago, in the online source > archive the latest file is modified on October 11, 2010 in 'tru

[Matplotlib-users] Text overlapping in mplot3d legends

2010-10-18 Thread Luis Quesada
Dear all, Is there a way of avoiding the overlap between the text of the labels and the text of the ticks? This is what I am getting: http://4c.ucc.ie/~lquesada/tmp/surface.pdf Currently I am only doing this: ax.set_xlabel('Distance',fontsize=16) ax.set_ylabel('Size',fonts

Re: [Matplotlib-users] plotting slow in directories with many files

2010-10-18 Thread John Hunter
On Mon, Oct 18, 2010 at 8:42 AM, Michael Droettboom wrote: > matplotlib, under normal usage, doesn't list all files in the current > directory.  Can you provide the steps you perform before calling > show()?  What platform are you on, and which backend are you using?\ The only thing I could think

Re: [Matplotlib-users] plotting slow in directories with many files

2010-10-18 Thread Michael Droettboom
matplotlib, under normal usage, doesn't list all files in the current directory. Can you provide the steps you perform before calling show()? What platform are you on, and which backend are you using? Mike On 10/18/2010 05:54 AM, mfabulous wrote: > Hi, > > I encountered this particular proble

Re: [Matplotlib-users] closing figure inside a callback seg faults

2010-10-18 Thread Michael Droettboom
I seem to have run into this problem with wx years ago -- destroying the widget that fed an event from a callback causes issues. As Chris suggested, the following seems to work, however: import matplotlib.pyplot as plt import wx def close_figure(): plt.close() def onclick(event): if

Re: [Matplotlib-users] AxesGrid and add_axes

2010-10-18 Thread Jae-Joon Lee
While you cannot add an axes to another axes, you can set position of an axes "relative to" another axes. The threads below show simple approaches. http://thread.gmane.org/gmane.comp.python.matplotlib.general/16373 http://old.nabble.com/embedding-figures-inside-another-%28coordinates%29-td2282612

Re: [Matplotlib-users] problem of cm.get_cmap('gist_rainbow',256)

2010-10-18 Thread LittleBigBrain
2010/10/18 Friedrich Romstedt : > 2010/10/18 脑关(BrainGateway)生命科学仪器 : >> On Mon, Oct 18, 2010 at 12:54 AM, Benjamin Root wrote: >>> On Sun, Oct 17, 2010 at 5:35 PM, braingateway >>> wrote: I tried all possible colormaps and found out: gist_rainbow, terrain, bwr, brg, and seismic will ge

Re: [Matplotlib-users] AxesGrid and add_axes

2010-10-18 Thread Jae-Joon Lee
A figure is a figure and an axes is an axes. They are NOT interchangeable. The AxesGrid essentially creates a list of axes. As you may already know, only figure class has an add_axes method. And axes can only be added to a figure. You cannot add an axes to another axes. Since I have no idea what

Re: [Matplotlib-users] problem of cm.get_cmap('gist_rainbow',256)

2010-10-18 Thread Friedrich Romstedt
2010/10/18 脑关(BrainGateway)生命科学仪器 : > On Mon, Oct 18, 2010 at 12:54 AM, Benjamin Root wrote: >> On Sun, Oct 17, 2010 at 5:35 PM, braingateway >> wrote: >>> I tried all possible colormaps and found out: gist_rainbow, terrain, >>> bwr, brg, and seismic will generate the same error, all other colorm

[Matplotlib-users] AxesGrid and add_axes

2010-10-18 Thread Radek Machulka
Hi guys, I made a class which create a special plot in the parent figure (matplotlib.pyplot.figure) given as a argument to the __init__ method. To show more than one instance of this class in the matrix I make a grid (mpl_toolkits.axes_grid.AxesGrid) and initialize the class with proper element

[Matplotlib-users] plotting slow in directories with many files

2010-10-18 Thread mfabulous
Hi, I encountered this particular problem quite often now. If you use matplotlib in a directory that contains a large number of files, things become extremely slow after calling pylab.show(). I suspect the interface internally lists all files in that directory? I often have to plot from director

Re: [Matplotlib-users] problem of cm.get_cmap('gist_rainbow',256)

2010-10-18 Thread BrainGateway
On Mon, Oct 18, 2010 at 12:54 AM, Benjamin Root wrote: > On Sun, Oct 17, 2010 at 5:35 PM, braingateway > wrote: >> >> Hi Everyone, >> >> I am trying the matplotlib. I have to say this is a powerful package for >> scientific 2-D plotting. However, I encountered some problems when try >> to generat