2008/11/21 Eric Firing <[EMAIL PROTECTED]>:
> Michael Outhouse wrote:
>> I was wondering if it is possible to change the colorbar tick labeling in
>> matplotlib from numeric to text. Essentially, I want the colorbar to be a
>> qualitative indicator; in the jet scheme, I'd like blue to be labeled
>>
Shailesh Kochhar wrote:
> Hello,
>
> I am trying to fill the space below a curve where my x-axis is indexed
> by time. The matplotlib api documentation and the examples don't touch
> on this subject and I haven't had much luck trying a few different
> variations. Here's what I've tried so far,
Hello,
I am trying to fill the space below a curve where my x-axis is indexed
by time. The matplotlib api documentation and the examples don't touch
on this subject and I haven't had much luck trying a few different
variations. Here's what I've tried so far, maybe someone can point out
what I'
Mauro Cavalcanti wrote:
> Dear Chris,
>
> Thank your very much for your prompt reply.
>
> 2008/11/20 Christopher Barker <[EMAIL PROTECTED]>:
>
>
>> well, I love sizers -- but they do take a while to wrap your brain around.
>>
>
> I love Python *and* wxPython/wxWidgets -- but having worked s
Dear Chris,
Thank your very much for your prompt reply.
2008/11/20 Christopher Barker <[EMAIL PROTECTED]>:
> well, I love sizers -- but they do take a while to wrap your brain around.
I love Python *and* wxPython/wxWidgets -- but having worked several
years with RAD tools like Visual Basic and
Matthias Michler wrote:
> Hello list,
>
> I observe a small bug in slider_demo.py, which lives in the svn
> folder /examples/widgets and can be accessed via
> http://matplotlib.sourceforge.net/_static/plot_directive/mpl_examples/widgets/slider_demo.py
> .
>
> The hovercolor for grey needs to be
Michael Outhouse wrote:
> I was wondering if it is possible to change the colorbar tick labeling in
> matplotlib from numeric to text. Essentially, I want the colorbar to be a
> qualitative indicator; in the jet scheme, I'd like blue to be labeled
> as 'unstable', green as 'neutral', and red as
Mauro Cavalcanti wrote:
> Well, at least it should! It turns out that the map is correctly
> displayed, but it then fills almost the whole parent window,
> overlapping the left panel where the notebook with the listbox and the
> text control should appear! This illustrates one of the worst (in my
>
On Thu, Nov 20, 2008 at 8:14 PM, John Hunter <[EMAIL PROTECTED]> wrote:
>
> One more thought -- if you are in pylab mode (so "interactive" is
> turned on) if you are making your draw calls through the api, as you
> are in this example, you will need to call draw after the plot
> commands, eg
>
> a
Dear ALL,
Just a simple (?) question on Matplotlib GUI backends toolbars. The
Matplotlib examples include a nice sample of programmatically adding a
button to a backend toolbar, but I could not find out how to *remove*
one or more of the buttons from the default toolbar. Has it be
sub-classed? BTW
I just saw a similar error when trying to plot some text; in my case,
basemap wasn't involved.
The full error dump:
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/text.py
in draw(self, renderer)
486
--> 487 for line, wh, x, y in info:
488
Dear ALL,
Enclosed is an sample application I put together (partially using
wxGlade) that is a first attempt at providing a working example of a
GUI frontend with wxPython and Matplotlib/Basemap.
The application consists of two panels, separated by a splitter. The
left panel has a notebook with t
On Thu, Nov 20, 2008 at 1:29 PM, Robin <[EMAIL PROTECTED]> wrote:
> On Thu, Nov 20, 2008 at 5:22 PM, Christopher Barker
>> try wxPython -- it's easy to install and works well.
>
> Thanks - it does seem nicer (doesn't have the mouse over resizing)...
>
> However I have one problem where a figure I c
On Thu, Nov 20, 2008 at 1:29 PM, Robin <[EMAIL PROTECTED]> wrote:
> On Thu, Nov 20, 2008 at 5:22 PM, Christopher Barker
>> try wxPython -- it's easy to install and works well.
>
> Thanks - it does seem nicer (doesn't have the mouse over resizing)...
>
> However I have one problem where a figure I c
Hi,
I have noticed a memory leak when using pylab.pcolor. Here is the code,
fa() and fb() do the same thing. The difference is the size of the array
which is passed to pcolor. With a large array pcolor leaks but not with a
small one.
Cheers,
Ben
import numpy as np
import matplotlib
matplotlib.use
On Thu, Nov 20, 2008 at 5:22 PM, Christopher Barker
> try wxPython -- it's easy to install and works well.
Thanks - it does seem nicer (doesn't have the mouse over resizing)...
However I have one problem where a figure I create in a function
doesn't show up:
# this is how I create a figure in a f
Hrafnkell Pálsson wrote:
> Jeff Whitaker wrote:
>
>> Hrafnkell:
>>
>> Had some time this morning, so I used John's method to create a working
>> Basemap example:
>>
>> import matplotlib
>> matplotlib.use('Agg')
>> from mpl_toolkits.basemap import Basemap
>> import matplotlib.pyplot as plt
>>
>>
Jeff Whitaker wrote:
>
> Hrafnkell:
>
> Had some time this morning, so I used John's method to create a working
> Basemap example:
>
> import matplotlib
> matplotlib.use('Agg')
> from mpl_toolkits.basemap import Basemap
> import matplotlib.pyplot as plt
>
> # this example shows how to save a
Cyrille Rosset wrote:
> Hello,
>
> It seems to me there is a bug in matplotlib 0.98.3 (or at least a
> change from previous version).
>
> >>> matplotlib.cbook.is_scalar('foo')
> False
>
> I would expect this to be True (otherwise,
> matplotlib.cbook.flatten(['foo']) enters an infinite recur
But given the vagueness of what I asked, you're right, os.makedirs was
a good suggestion too. Thanks. I think I need to sit down and spend
some quality time with the os module over Thanksgiving holiday...
Josh
On Thu, Nov 20, 2008 at 9:30 AM, Joshua Lippai <[EMAIL PROTECTED]> wrote:
> cbook.mkdir
Dear Robin,
I do agree (although the Python gurus here highly recommend Qt
instead). wxPython is well documented and has *plenty* of exemples
(much of them truly useful).
I have been working hard to developing a scientific desktop
application which uses wxPython for its GUI frontend and
Matplotli
cbook.mkdirs includes a few if-then calls that only make the directory
if it doesn't already exist (in fact it actually calls os.makedirs in
the function), whereas os.makedirs raises an OSError if the folder I
specified already exists. For my purposes, the cbook implementation is
more convenient.
On Thu, Nov 20, 2008 at 11:22 AM, Christopher Barker
<[EMAIL PROTECTED]> wrote:
> Joshua Lippai wrote:
>> Now that just leaves creating the directory. I like
>> the cbook.mkdirs implementation a lot better than the non-recursive
>> version in os... thanks for the tip!
>
> why not os.makedirs() ?
Robin wrote:
> Now you point it out it is clear that that is what is causing it. I'm
> using python.org python on a Mac and it's not clear to me how best to
> install Qt - so at the moment Tk is the only working backend I have.
try wxPython -- it's easy to install and works well.
-Chris
--
Ch
Joshua Lippai wrote:
> Now that just leaves creating the directory. I like
> the cbook.mkdirs implementation a lot better than the non-recursive
> version in os... thanks for the tip!
why not os.makedirs() ?
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NO
Ah, silly me. I forgot to notice I was using a path variable in the
string I was giving to mlab.save. Part A works just fine when I
account for that. Now that just leaves creating the directory. I like
the cbook.mkdirs implementation a lot better than the non-recursive
version in os... thanks for t
On Thu, Nov 20, 2008 at 10:24 AM, Joshua Lippai <[EMAIL PROTECTED]> wrote:
> Hey,
>
> I'm working on a project for which I would like to dump data into a
> file in a specified directory (that doesn't necessarily exist yet). I
> know matplotlib.mlab.save(fname, X) will only work if I want to save
>
Hey,
I'm working on a project for which I would like to dump data into a
file in a specified directory (that doesn't necessarily exist yet). I
know matplotlib.mlab.save(fname, X) will only work if I want to save
data from an array/list to a file in the current working directory. Is
there an easy w
On Thu, Nov 20, 2008 at 8:06 AM, Søren Nielsen
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a canvas with two subplot.. I want to be able to hide on of the
> subplots by pushing a button and letting the remaining subplot fill the
> entire canvas.
>
> If I use the set_visible(True) parameter I correc
Hi,
I have a canvas with two subplot.. I want to be able to hide on of the
subplots by pushing a button and letting the remaining subplot fill the
entire canvas.
If I use the set_visible(True) parameter I correctly remove one of the
subplots.. but the remaining subplot does not fill the canvas..
Dear ALL,
In due time, I intend to compile as many suggestions and tips as
possible to eventually create a "How-To" list for the superb Basemap
module, like the very useful one which is on the Matplotlib home page.
HTH
Cheers,
2008/11/20 John Hunter <[EMAIL PROTECTED]>:
> On Thu, Nov 20, 2008 a
On Thu, Nov 20, 2008 at 1:21 PM, John Hunter <[EMAIL PROTECTED]> wrote:
> There is a recipe on the web site for automatically shifting the left
> side of the subplot over to make room for the ylabels
>
>
> http://matplotlib.sourceforge.net/faq/howto_faq.html#automatically-make-room-for-tick-label
Sorry! Forgot to send to the list since the reply-to isn't set properly...
Thanks very much for your reply!
On Thu, Nov 20, 2008 at 1:12 PM, Darren Dale <[EMAIL PROTECTED]> wrote:
> I think I know what causes this, I saw something similar in the Qt backends
> a while back. When the mouse cursor e
On Thu, Nov 20, 2008 at 7:12 AM, Darren Dale <[EMAIL PROTECTED]> wrote:
> You can use the subplot_adjust button on the toolbar for some degree of
> customization. But in general, it can be a somewhat time consuming to get
> the layout just right. I think it would be difficult for mpl to determine
On Thursday 20 November 2008 06:43:48 am Robin wrote:
> Hi,
>
> I think matplotlib is a terrific tool, and it is a major component of
> the open source toolset that has allowed me to stop using Matlab.
>
> But, whenever it comes to producing publication plots, there are a few
> things I always find
Hrafnkell Pálsson wrote:
>
>
>> This will turn off the rendering of both the background rectangle as
>> well as all the ticks and their associated labels, ticklines and
>> gridlines. Perhaps Jeff can advise you vis-a-vis the basemap api what
>> the equivalent is
>>
>>
>
> Ok, I tested your
Mauro Cavalcanti wrote:
> Dear ALL,
>
> Another (this time possibly quite silly) question: how can I make a
> Basemap cover entirely the display area of the GUI backend (ie.,
> without the top, bottom, left, right spaces)?
>
> I tried something like:
>
> self.figure = Figure()
> self.figure.subplot
Dear Eric,
Thanks for your reply. This is surely not good news -- maybe an
automatic shrinking mechanism could be added in a future version of
Matplotlib (this would be useful not only with maps, but with other
plots as well)?
Regards,
2008/11/20 Eric Firing <[EMAIL PROTECTED]>:
> Mauro Cavalcan
Hi,
I think matplotlib is a terrific tool, and it is a major component of
the open source toolset that has allowed me to stop using Matlab.
But, whenever it comes to producing publication plots, there are a few
things I always find challenging - and I'm wondering if I'm doing
things wrong.
First
Hello,
It seems to me there is a bug in matplotlib 0.98.3 (or at least a
change from previous version).
>>> matplotlib.cbook.is_scalar('foo')
False
I would expect this to be True (otherwise,
matplotlib.cbook.flatten(['foo']) enters an infinite recursive loop).
It used to be (0.98.0):
r
40 matches
Mail list logo