r""" Return the list of minor `.Tick`\s. .. warning:: Ticks are not guaranteed to be persistent. Various operations can create, delete and modify the Tick instances. There is an imminent risk that changes to individual ticks will not
(self, numticks=None)
| 1816 | return self.majorTicks[:numticks] |
| 1817 | |
| 1818 | def get_minor_ticks(self, numticks=None): |
| 1819 | r""" |
| 1820 | Return the list of minor `.Tick`\s. |
| 1821 | |
| 1822 | .. warning:: |
| 1823 | |
| 1824 | Ticks are not guaranteed to be persistent. Various operations |
| 1825 | can create, delete and modify the Tick instances. There is an |
| 1826 | imminent risk that changes to individual ticks will not |
| 1827 | survive if you work on the figure further (including also |
| 1828 | panning/zooming on a displayed figure). |
| 1829 | |
| 1830 | Working on the individual ticks is a method of last resort. |
| 1831 | Use `.set_tick_params` instead if possible. |
| 1832 | """ |
| 1833 | if numticks is None: |
| 1834 | numticks = len(self.get_minorticklocs()) |
| 1835 | |
| 1836 | while len(self.minorTicks) < numticks: |
| 1837 | # Update the new tick label properties from the old. |
| 1838 | tick = self._get_tick(major=False) |
| 1839 | self.minorTicks.append(tick) |
| 1840 | self._copy_tick_props(self.minorTicks[0], tick) |
| 1841 | |
| 1842 | return self.minorTicks[:numticks] |
| 1843 | |
| 1844 | def grid(self, visible=None, which='major', **kwargs): |
| 1845 | """ |