[Matplotlib-users] changes to clabel/ContourLabeler/ContourSet API

2008-07-24 Thread David Kaplan
Hi,

This is just a warning email that we are planning changes to the names
of the attributes in the ContourLabeler class (used by ContourSet
objects to add labels to contours).  Attribute names like .cl_xy will
become .labelXYs, etc.  If there is anyone out there whose code will be
broken by changing the names of these attributes, please let us know so
that we can build a bit of backwards compatibility into the next
release.

Thanks,
David

-- 
**
David M. Kaplan
Charge de Recherche 1
Institut de Recherche pour le Developpement
Centre de Recherche Halieutique Mediterraneenne et Tropicale
av. Jean Monnet
B.P. 171
34203 Sete cedex
France

Phone: +33 (0)4 99 57 32 27
Fax: +33 (0)4 99 57 32 95
http://www.ur097.ird.fr/team/dkaplan/index.html
**


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Wind Barb plots

2008-07-24 Thread Scott Sinclair
Nice!

>>> Ryan May <[EMAIL PROTECTED]> 07/24/08 4:55 AM >>>
To anyone interested (especially the meteorologists out there), 
Matplotlib SVN trunk now has support for doing wind barb plots.
Please find our Email Disclaimer here: http://www.ukzn.ac.za/disclaimer/

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Border appearance

2008-07-24 Thread "Jonathan Hayward http://JonathansCorner.com"
Taking a step back:

What should I be digging into so I'll have the concepts and tools to
manipulate features like color and thickness of borders on a bar chart and
on a pie graph and any parts that may have a border, whether the shadow on a
pie graph is on the lower left or upper right, etc.?

I'm looking at the
tutorial; I'd welcome
suggestions or clarifications about what I should be reading.

On Tue, Jul 22, 2008 at 4:57 PM, John Hunter <[EMAIL PROTECTED]> wrote:

> On Tue, Jul 22, 2008 at 4:28 PM, Jonathan Hayward
> http://JonathansCorner.com <[EMAIL PROTECTED]> wrote:
> > On the two routines I'm modifying from examples, boundaries and borders
> are
> > generally a hefty black.
> >
> > How can I control color and/or thickness and/or turn off items like
> > boundaries that are drawn in black?
>
> There are two borders in question, the figure border and the axes
> border.  Both are rectangle instances.  You can control the figure
> border with the figurePatch instance
>
> fig.figurePatch.set_edgecolor('white')
> fig.figurePatch.set_linewidth(0.5)
>
> and similarly for the axes axesFrame instance
>
> ax = axes([left, bottom, width, height])
> ax.axesFrame.set_edgecolor('red')
> ax.axesFrame.set_linewidth(0.5)
>
> You can make the frame invisible in a few different ways:
>
>  * set the edgecolor to be the same as the face color
>  * set the linewidth to 0
>  * set the visible property to False (ax.axesFrame.set_visible(False))
>
> JDH
>



-- 
-- Jonathan Hayward, [EMAIL PROTECTED]

** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com

++ Would you like to curl up with one of my hardcover books?
++ You can now get my books from http://CJSHayward.com
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Border appearance

2008-07-24 Thread John Hunter
On Thu, Jul 24, 2008 at 10:22 AM, Jonathan Hayward http://JonathansCorner.com
> I'm looking at the tutorial ; I'd welcome suggestions or clarifications
> about what I should be reading.

The tutorial is a good start, as is the user's guide

http://matplotlib.sourceforge.net/users_guide_0.98.1.pdf

some of the user's guide is dated, and the neww docs we are working on
(still in beta) are at
http://matplotlib.sourceforge.net/doc/html/index.html.  The
screenshots (http://matplotlib.sourceforge.net/screenshots.html) and
examples (http://matplotlib.sourceforge.net/examples/) are good places
to go for inspiration.  You will probably also want to read the artist
tutorial at http://matplotlib.sourceforge.net/doc/html/users/artists.html

Good luck!

JDH

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Border appearance

2008-07-24 Thread "Jonathan Hayward http://JonathansCorner.com"
Thank you; on to digging...

On Thu, Jul 24, 2008 at 10:29 AM, John Hunter <[EMAIL PROTECTED]> wrote:

> On Thu, Jul 24, 2008 at 10:22 AM, Jonathan Hayward
> http://JonathansCorner.com
> > I'm looking at the tutorial ; I'd welcome suggestions or clarifications
> > about what I should be reading.
>
> The tutorial is a good start, as is the user's guide
>
> http://matplotlib.sourceforge.net/users_guide_0.98.1.pdf
>
> some of the user's guide is dated, and the neww docs we are working on
> (still in beta) are at
> http://matplotlib.sourceforge.net/doc/html/index.html.  The
> screenshots (http://matplotlib.sourceforge.net/screenshots.html) and
> examples (http://matplotlib.sourceforge.net/examples/) are good places
> to go for inspiration.  You will probably also want to read the artist
> tutorial at http://matplotlib.sourceforge.net/doc/html/users/artists.html
>
> Good luck!
>
> JDH
>



-- 
-- Jonathan Hayward, [EMAIL PROTECTED]

** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com

++ Would you like to curl up with one of my hardcover books?
++ You can now get my books from http://CJSHayward.com
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Tick marks around bar chart

2008-07-24 Thread "Jonathan Hayward http://JonathansCorner.com"
How do I control and/or remove the black tick marks on a bar chart? I've
turned off most of the other black material on boundaries, but these ones
are still there (see attached image).

-- 
-- Jonathan Hayward, [EMAIL PROTECTED]

** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com

++ Would you like to curl up with one of my hardcover books?
++ You can now get my books from http://CJSHayward.com
<>-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Tick marks around bar chart

2008-07-24 Thread John Hunter
On Thu, Jul 24, 2008 at 11:53 AM, Jonathan Hayward
http://JonathansCorner.com <[EMAIL PROTECTED]> wrote:
> How do I control and/or remove the black tick marks on a bar chart? I've
> turned off most of the other black material on boundaries, but these ones
> are still there (see attached image).

You can make the tick lines invisible like so

for line in ax.get_xticklines() + ax.get_yticklines():
line.set_visible(False)

This is presuming you want ticklabels but not lines.  If you are
willing to dispense with both, it is easier to simply

  ax.set_xticks([])
  ax.set_yticks([])

The various properties of the tick are discussed at the end of the
artist tutorial
http://matplotlib.sourceforge.net/doc/html/users/artists.html

JDH

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Tick marks around bar chart

2008-07-24 Thread "Jonathan Hayward http://JonathansCorner.com"
Thank you!

On Thu, Jul 24, 2008 at 12:40 PM, John Hunter <[EMAIL PROTECTED]> wrote:

> On Thu, Jul 24, 2008 at 11:53 AM, Jonathan Hayward
> http://JonathansCorner.com <[EMAIL PROTECTED]> wrote:
> > How do I control and/or remove the black tick marks on a bar chart? I've
> > turned off most of the other black material on boundaries, but these ones
> > are still there (see attached image).
>
> You can make the tick lines invisible like so
>
> for line in ax.get_xticklines() + ax.get_yticklines():
>line.set_visible(False)
>
> This is presuming you want ticklabels but not lines.  If you are
> willing to dispense with both, it is easier to simply
>
>  ax.set_xticks([])
>  ax.set_yticks([])
>
> The various properties of the tick are discussed at the end of the
> artist tutorial
> http://matplotlib.sourceforge.net/doc/html/users/artists.html
>
> JDH
>



-- 
-- Jonathan Hayward, [EMAIL PROTECTED]

** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com

++ Would you like to curl up with one of my hardcover books?
++ You can now get my books from http://CJSHayward.com
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Wind Barb plots

2008-07-24 Thread Ryan May
J
James Boyle wrote:
> Ryan,
> 
> This looks really great. It is good to see a meteorological addition.
> Way back when I implemented this in GKS, I was tripped up by the fact 
> that the barbs point in the direction of low pressure. This means the 
> side of the shaft that the barbs are on changes in going from the N Hem 
> to S Hem. It was easy to add a switch to make this easy to do but my 
> advisor chastised me for not catching it initially.
> I am not a leading edge type so your SVN commit might already account 
> for this.
> 
> Does the code allow for projection/transformations to play nice with 
> Jeff's Basemap?
(Bringing this back to the list...)

Jim,

Thanks.  I didn't think to add an option of flipping the barbs, but 
you're right, I should.  I got bit by that quite a few years ago in 
senior synoptic, so I am oh so familiar with people being stickler's for 
it.  I'll add the option, hopefully in time for the release.

As far as basemap goes, it should play fine.  Jeff's added a 
corresponding barbs method to basemap, so it should all just work. Now 
making it smart enough to flip just the barbs that are in the S. Hem. is 
going to take just a little bit of thought to get correct (without 
having *too* much more code.

Thanks,

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users