Re: [Matplotlib-users] How Clear Points Without Wiping Everything?

2012-02-02 Thread Benjamin Root
On Thu, Feb 2, 2012 at 6:25 PM, Jerzy Karczmarczuk < jerzy.karczmarc...@unicaen.fr> wrote: > Benjamin Root on my suggestion that one can use del instead of remove : > > There are methods for ax that properly handle removal of types of artists > that have been attached to an axes. The above appr

Re: [Matplotlib-users] How Clear Points Without Wiping Everything?

2012-02-02 Thread Jerzy Karczmarczuk
Benjamin Root on my suggestion that one can use del instead of remove : There are methods for ax that properly handle removal of types of artists that have been attached to an axes. The above approach assumes that no other collections have been plotted that you wanted to keep. The approach I

Re: [Matplotlib-users] How Clear Points Without Wiping Everything?

2012-02-02 Thread Benjamin Root
On Thu, Feb 2, 2012 at 3:52 PM, Jerzy Karczmarczuk < jerzy.karczmarc...@unicaen.fr> wrote: > Benjamin Root : > > Just about any mpl plotting function (plot(), scatter(), hist(), etc.) > > returns an object. Most of the time, users do not save the result > > into a variable, but if you want to do

Re: [Matplotlib-users] How Clear Points Without Wiping Everything?

2012-02-02 Thread Jerzy Karczmarczuk
Benjamin Root : > Just about any mpl plotting function (plot(), scatter(), hist(), etc.) > returns an object. Most of the time, users do not save the result > into a variable, but if you want to do advanced tricks, you will need > to save those returns. Sorry for a shameless attempt to add som

Re: [Matplotlib-users] How Clear Points Without Wiping Everything?

2012-02-02 Thread Benjamin Root
On Thu, Feb 2, 2012 at 3:04 PM, G Jones wrote: > Note there is a typo. Ben assigned the output to "pts" but then referenced > "res". > > Good catch! Ben Root -- Keep Your Developer Skills Current with LearnDevNow! The mo

Re: [Matplotlib-users] How Clear Points Without Wiping Everything?

2012-02-02 Thread G Jones
Note there is a typo. Ben assigned the output to "pts" but then referenced "res". On Thu, Feb 2, 2012 at 12:59 PM, Benjamin Root wrote: > On Thu, Feb 2, 2012 at 2:54 PM, Jim St.Cyr wrote: > >> On 2/2/2012 3:41 PM, Benjamin Root wrote: >> >> On Wed, Feb 1, 2012 at 4:07 PM, Jim St.Cyr wrote: >>

Re: [Matplotlib-users] How Clear Points Without Wiping Everything?

2012-02-02 Thread Benjamin Root
On Thu, Feb 2, 2012 at 2:54 PM, Jim St.Cyr wrote: > On 2/2/2012 3:41 PM, Benjamin Root wrote: > > On Wed, Feb 1, 2012 at 4:07 PM, Jim St.Cyr wrote: > >> Hello- >> >> Scenario: >> >> Basemap used to display the East Coast of the US and the Atlantic Ocean. >> Shapelib is used read a shapefile the

Re: [Matplotlib-users] How Clear Points Without Wiping Everything?

2012-02-02 Thread Jim St.Cyr
On 2/2/2012 3:41 PM, Benjamin Root wrote: On Wed, Feb 1, 2012 at 4:07 PM, Jim St.Cyr > wrote: Hello- Scenario: Basemap used to display the East Coast of the US and the Atlantic Ocean. Shapelib is used read a shapefile the contents of is pumped into a

Re: [Matplotlib-users] How Clear Points Without Wiping Everything?

2012-02-02 Thread Benjamin Root
On Wed, Feb 1, 2012 at 4:07 PM, Jim St.Cyr wrote: > Hello- > > Scenario: > > Basemap used to display the East Coast of the US and the Atlantic Ocean. > Shapelib is used read a shapefile the contents of is pumped into a PyPlot > subplot hosted Line Collection which overlays the ocean with a grid >

[Matplotlib-users] How Clear Points Without Wiping Everything?

2012-02-01 Thread Jim St.Cyr
Hello- Scenario: Basemap used to display the East Coast of the US and the Atlantic Ocean. Shapelib is used read a shapefile the contents of is pumped into a PyPlot subplot hosted Line Collection which overlays the ocean with a grid PyPlot text is used to label each grid with it's designator. Wh