[Matplotlib-users] Basemap interp

2010-02-24 Thread Andrew Charles
I'm trying to interpolate from one grid to another using Basemap's interp function. It seems to want the lat and lon axis of the new grid to have the same shape: 3524 if xout.shape != yout.shape: 3535 raise ValueError, 'xout and yout must have same shape!' The grid I'm interpolating to is 14

Re: [Matplotlib-users] How to increase axis and tick linesize?

2010-02-24 Thread Jae-Joon Lee
> > Not sure how to update these in code yet. Let me know when you figure out :) http://matplotlib.sourceforge.net/users/artists.html#axis-containers >> >>        Also I often find that the xlabel is too close to the plot box >> (xaxis) is there a way to increase this distance besides making my

Re: [Matplotlib-users] How to increase axis and tick linesize?

2010-02-24 Thread Gökhan Sever
On Wed, Feb 24, 2010 at 5:45 PM, Matthew MacLeod wrote: > Dear matplotlib users, > >I have a problem with my plots, it is that the plot > axes and the tick marks are too small, is there a way to increase the > 'lineweight' and size of these basic features? >I am not asking about a

Re: [Matplotlib-users] How do I turn all ticks off?

2010-02-24 Thread Gökhan Sever
On Wed, Feb 24, 2010 at 8:48 PM, David Goldsmith wrote: > Hi! Sorry for the really elementary Q's but I'm not having much luck > searching the User Guide: > > How do I turn all ticks off (i.e., the labels and the tick mark lines, on > both axes)? > > Thanks! > > DG > > > Too dry but it is what yo

[Matplotlib-users] How do I turn all ticks off?

2010-02-24 Thread David Goldsmith
Hi! Sorry for the really elementary Q's but I'm not having much luck searching the User Guide: How do I turn all ticks off (i.e., the labels and the tick mark lines, on both axes)? Thanks! DG -- Download Int

[Matplotlib-users] How to increase axis and tick linesize?

2010-02-24 Thread Matthew MacLeod
Dear matplotlib users, I have a problem with my plots, it is that the plot axes and the tick marks are too small, is there a way to increase the 'lineweight' and size of these basic features? I am not asking about axis label text size and that of the information inside the plot,

Re: [Matplotlib-users] dropdown menu

2010-02-24 Thread Nadia Dencheva
Hello, I'm also interested in getting this done and started playing with the classes in offsetbox.py. I'll post if I get something working. The only way I can think of achieving the 'dropdown' effect is by changing the 'visible' property on the children. Is this the way to do it? Any better su

[Matplotlib-users] [SOLVED] Re: Setting graph to commence at 1 on x-axis

2010-02-24 Thread AG
Angus McMorland wrote: On 24 February 2010 13:36, AG wrote: Hi How do I set up my matplotlib.pyplot code so that the data for the x-axis is plotted beginning at 1 not the default 0. To illustrate: I have a set of time trials and error probability calculations. Trials are x and scores are

Re: [Matplotlib-users] Setting graph to commence at 1 on x-axis

2010-02-24 Thread Angus McMorland
On 24 February 2010 13:36, AG wrote: > Hi > > How do I set up my matplotlib.pyplot code so that the data for the > x-axis is plotted beginning at 1 not the default 0.  To illustrate: > > I have a set of time trials and error probability calculations.  Trials > are x and scores are y.  At present,

[Matplotlib-users] Setting graph to commence at 1 on x-axis

2010-02-24 Thread AG
Hi How do I set up my matplotlib.pyplot code so that the data for the x-axis is plotted beginning at 1 not the default 0. To illustrate: I have a set of time trials and error probability calculations. Trials are x and scores are y. At present, the first trial is plotted on the graph at 0 wh

Re: [Matplotlib-users] Using IDLE - program still running when graph window is closed

2010-02-24 Thread AG
C M wrote: On Wed, Feb 24, 2010 at 11:51 AM, AG wrote: How does one ensure that once a graph has been produced by Matplotlib and that graph has been closed by the user that the program itself stops? What I am currently getting is that when I close the graph pop-up window and then close IDLE

[Matplotlib-users] table on right and rotating the table entries

2010-02-24 Thread duckman
I looked at the examples online and have searched the newsgroup and am stuck. I figured out how to place the table on the right hand side but now I would like to have the table display as follows: colors for headding date clear Left in blueright in red date Left Right 1.1.200

Re: [Matplotlib-users] Using IDLE - program still running when graph window is closed

2010-02-24 Thread C M
On Wed, Feb 24, 2010 at 11:51 AM, AG wrote: > How does one ensure that once a graph has been produced by Matplotlib > and that graph has been closed by the user that the program itself stops? > > What I am currently getting is that when I close the graph pop-up window > and then close IDLE, I get

Re: [Matplotlib-users] boxplot bug

2010-02-24 Thread Gökhan Sever
Probably this change would upset John Tukey if he were alive. I still wonder how you ignore the data since boxplot is there to represent the data :) Tell me how to undiff the changes then I will test your idea. On Wed, Feb 24, 2010 at 12:03 AM, Ariel Rokem wrote: > No - not the 'widths' kwarg

[Matplotlib-users] Using IDLE - program still running when graph window is closed

2010-02-24 Thread AG
How does one ensure that once a graph has been produced by Matplotlib and that graph has been closed by the user that the program itself stops? What I am currently getting is that when I close the graph pop-up window and then close IDLE, I get a message that the program is still running and am

Re: [Matplotlib-users] Embedding matplotlib in Tkinter Applications

2010-02-24 Thread John Hunter
On Wed, Feb 24, 2010 at 8:17 AM, Friedrich Romstedt wrote: > I'm not shure whether someone can release software under GPL > incorporating MIT licensed software?  Otherwise I would release under > dual license. Yes, GPL projects can use MIT or BSD code, but not vice-versa. --

Re: [Matplotlib-users] Embedding matplotlib in Tkinter Applications

2010-02-24 Thread Friedrich Romstedt
http://neuroimaging.scipy.org/site/doc/manual/html/faq/johns_bsd_pitch.html: > Many people choose the GPL when releasing a package because it is the most > famous open source license, and did not consider issues such as those raised > here when choosing a license. Alan, Thank you for your commen

Re: [Matplotlib-users] Embedding matplotlib in Tkinter Applications

2010-02-24 Thread John Hunter
On Wed, Feb 24, 2010 at 7:14 AM, Alan G Isaac wrote: > On 2/24/2010 2:36 AM, Friedrich Romstedt wrote: >>  Can you explain to me why you are so restrictive about GPLed code?  I >>  mean, it's all OSS? > > > The licenses are very different: BSD (and MIT) do not impose a viral > copyleft.  This is w

Re: [Matplotlib-users] reset graphic

2010-02-24 Thread Samuel Teixeira Santos
I found a solutiont. sharing with everyone... http://stackoverflow.com/questions/1874642/how-to-use-matplotlib-in-django see ya 2010/2/24 Samuel Teixeira Santos > Hi all > > Days ago I ask for tips about to improvemente my code on > http://dpaste.com/161149/ > > Today, it's work ok on my web a

Re: [Matplotlib-users] Embedding matplotlib in Tkinter Applications

2010-02-24 Thread Alan G Isaac
On 2/24/2010 2:36 AM, Friedrich Romstedt wrote: > Can you explain to me why you are so restrictive about GPLed code? I > mean, it's all OSS? The licenses are very different: BSD (and MIT) do not impose a viral copyleft. This is why Python is not GPL, nor is NumPy or Matplotlib. People writing

Re: [Matplotlib-users] can't picker once pan or zoom chosen

2010-02-24 Thread Kjell Magne Fauske
Kjell Magne Fauske wrote: > > > I ran into the same problem today. Does someone know of a workaround? I > use a recent version of matplotlib and the default tk backend. It seems > like the tool bar overrides any user defined events. Is there a way to > deactivate the zoom and pan cursors? > >

Re: [Matplotlib-users] can't picker once pan or zoom chosen

2010-02-24 Thread Kjell Magne Fauske
marc desmarais-2 wrote: > > I created a simple scatter plot and a service routine to print out the > coordinates of the points I pick with the cursor (based on the demo). It > works until I select the pan or zoom cursor. After I zoom or pan,  I can > no longer get back to the normal cursor whic

Re: [Matplotlib-users] configuring colorbar labels on a black background

2010-02-24 Thread Jim Vickroy
Jae-Joon Lee wrote: This seems to be a bug and I recommend you to file a bug. This happens because Axis.set_ticklabels method only changes the attributes of left (or bottom) tick labels. Meanwhile, try for t in colorbar.ax.get_yticklabels(): t.set_color("w") -JJ Thanks for the explanat

[Matplotlib-users] [OT] Bay Area PUG Meeting Speaker Thursday in Mountain View, CA?

2010-02-24 Thread Wayne Watson
Anyone here going to the meeting, see Subject? As far as I can tell, it meets from 7:30 to 9 pm. Their site shows no speaker yet, and there seems to be an informal group dinner at 6 pm at some place yet unknown. Are there other events and activities at the meeting? Pre-speaker events? Demonstra

[Matplotlib-users] reset graphic

2010-02-24 Thread Samuel Teixeira Santos
Hi all Days ago I ask for tips about to improvemente my code on http://dpaste.com/161149/ Today, it's work ok on my web app. I fill it a form and when press submit I generate the graphic. But, I fill it the form again and press submit again, it will generate a second graphic instead of reset th

Re: [Matplotlib-users] Issue with sample from website and rc()

2010-02-24 Thread Matthieu Brucher
Indeed, with a fixed value, I could bypass this, but the main issue is that the documentation says that it should work (xx-small, x-small, small, medium, large, ... although I don't know if it should be larger, as indicated in rc() doc, or large as indicated in the font size doc IIRC). Matthieu 2

Re: [Matplotlib-users] Issue with sample from website and rc()

2010-02-24 Thread Philipp Bender
The error is the 'size':'larger', not the passing as keyword arguments. Maybe you try to stick (as "workaround") with a fixed number, like 'size':12 It's located in matplotlib/lib/matplotlib/rcsetup.py def validate_float(s): 'convert s to float or raise' try: return float(s) except

[Matplotlib-users] Issue with sample from website and rc()

2010-02-24 Thread Matthieu Brucher
Hi, I've tried to set the size of the main font by doing: import matplotlib.pyplot as pyplot font = {'size' : 'larger'} pyplot.rc('font', **font) as indicated in http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.rc It failed with: raise ValueError('Could not convert

Re: [Matplotlib-users] Looping through all the built-in colormaps

2010-02-24 Thread Friedrich Romstedt
The following was sent unintentionally in private e-mail (my e-mail program always selects the sender as recipient first :-( ). I think the solution by Jae-Joon is also elegant, but nevertheless the following may be useful also (and maybe also in other places): -- Forwarded message -

Re: [Matplotlib-users] Looping through all the built-in colormaps

2010-02-24 Thread Jae-Joon Lee
On Wed, Feb 24, 2010 at 3:56 AM, David Goldsmith wrote: > cmap='LUTSIZE' does not create an image: it is an invalid value for imshow's > cmap argument.  Many images are created successfully by my loop before > cmap='LUTSIZE' without me calling cla, and Friedrich's soln. works great > w/out me h

Re: [Matplotlib-users] Looping through all the built-in colormaps

2010-02-24 Thread Jae-Joon Lee
On Tue, Feb 23, 2010 at 6:45 PM, David Goldsmith wrote: > 1) why doesn't this: > for cmap in dir(cm):    try:        ax.imshow(image, cmap)        canvas.print_figure('image_'+cmap)    except:        pass > > "work" (i.e., simply bypass those elements of dir(cm) which

Re: [Matplotlib-users] Looping through all the built-in colormaps

2010-02-24 Thread Jae-Joon Lee
On Wed, Feb 24, 2010 at 3:06 AM, Matthias Michler wrote: > some time ago somebody proposed an example on the list to circle through all > possible colormaps. In this time cm had an attribute "cm.cmapnames", which > hold all these names, but nowerdays (svn-HEAD) this attribute has be removed > and

Re: [Matplotlib-users] Looping through all the built-in colormaps

2010-02-24 Thread Matthias Michler
On Wednesday 24 February 2010 00:45:56 David Goldsmith wrote: > Hi! I'm trying to loop through all the built-in colormaps, applying each > to an image before printing it to a file, then moving on to the next one. > > >>> from matplotlib import cm > >>> for cmap in dir(cm): # cmap in cm doesn't wor