This is a small patch to enable get_gridlines to be able to get the grid lines for the minor ticks as well.
1052c1052
< def get_gridlines(self):
···
def get_gridlines(self,minor=False):
1054c1054,1055
< ticks = self.get_major_ticks()
if minor: ticks = self.get_minor_ticks()
else: ticks = self.get_major_ticks()
–
Daniel Hyams
dhyams@…149…
Thanks for the contribution. Can you regenerate using: diff -u
so we can easily apply to the tree?
Thanks,
Ryan
···
On Wed, Aug 18, 2010 at 9:25 AM, Daniel Hyams <dhyams@...149...> wrote:
This is a small patch to enable get_gridlines to be able to get the grid
lines for the minor ticks as well.
1052c1052
< def get_gridlines(self):
---
def get\_gridlines\(self,minor=False\):
1054c1054,1055
< ticks = self.get_major_ticks()
---
if minor: ticks = self\.get\_minor\_ticks\(\)
else: ticks = self\.get\_major\_ticks\(\)
--
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
Sure:
— axis.py 2010-08-18 09:59:25.000000000 -0400
+++ axis.py.orig 2010-08-18 09:58:13.000000000 -0400
@@ -1049,12 +1049,9 @@
def _get_offset_text(self):
raise NotImplementedError(‘Derived must override’)
- def get_gridlines(self,minor=False):
‘Return the grid lines as a list of Line2D instance’
return cbook.silent_list(‘Line2D gridline’, [tick.gridline for tick in ticks])
def get_label(self):
···
On Wed, Aug 18, 2010 at 1:05 PM, Ryan May <rmay31@…149…> wrote:
On Wed, Aug 18, 2010 at 9:25 AM, Daniel Hyams <dhyams@…149…> wrote:
This is a small patch to enable get_gridlines to be able to get the grid
lines for the minor ticks as well.
1052c1052
< def get_gridlines(self):
def get_gridlines(self,minor=False):
1054c1054,1055
< ticks = self.get_major_ticks()
if minor: ticks = self.get_minor_ticks()
else: ticks = self.get_major_ticks()
Thanks for the contribution. Can you regenerate using: diff -u
so we can easily apply to the tree?
Thanks,
Ryan
–
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
–
Daniel Hyams
dhyams@…149…