On 03/13/2012 09:17 AM, John Hunter wrote:
>
>
> On Tue, Mar 13, 2012 at 1:20 PM, Federico Ariza
> <ariza.feder...@gmail.com <mailto:ariza.feder...@gmail.com>> wrote:
>
>     Hi
>
>     That is exactly what I am doing, but I thought it was kept somewhere.
>
>     I like the idea of upstream modification of relim.
>
>
> It would be trivial to add a kwarg to relim:
>
> include_invisible=True
>
> which defaults to the current behavior.
>      def relim(self, include_invisible=True):
> """
>          Recompute the data
>          limits based on current artists.  If you want to exclude
>          invisible artists from the calculation, set
>          `include_invisible=False`
>
>          At present, :class:`~matplotlib.collections.Collection`
>          instances are not supported.
> """
>          # Collections are deliberately not supported (yet); see
>          # the TODO note in artists.py.
>          self.dataLim.ignore(True)
>          self.ignore_existing_data_limits = True
>          for line in self.lines:
>     if include_invisible or line.get_visible():
>                  self._update_line_limits(line)
>
>          for p in self.patches:
>     if include_invisible or p.get_visible():
>                  self._update_patch_limits(p)
>
>
> But include_invisible isn't the most intuitive name...

visible_only=False is shorter.

Eric
>
> JDH
>
>
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
>
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to