| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6d161d6 commit 27b1a36
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,25 +1,27 @@ | |||
| 1 | 1 | Configuration (rcParams) | |
| 2 | 2 | ------------------------ | |
| 3 | 3 | ||
| 4 | - +----------------------------+--------------------------------------------------+ | ||
| 5 | - | Parameter | Description | | ||
| 6 | - +============================+==================================================+ | ||
| 7 | - |`date.autoformatter.year` | foramt string for 'year' scale dates | | ||
| 8 | - +----------------------------+--------------------------------------------------+ | ||
| 9 | - |`date.autoformatter.month` | format string for 'month' scale dates | | ||
| 10 | - +----------------------------+--------------------------------------------------+ | ||
| 11 | - |`date.autoformatter.day` | format string for 'day' scale dates | | ||
| 12 | - +----------------------------+--------------------------------------------------+ | ||
| 13 | - |`date.autoformatter.hour` | format string for 'hour' scale times | | ||
| 14 | - +----------------------------+--------------------------------------------------+ | ||
| 15 | - |`date.autoformatter.minute` | format string for 'minute' scale times | | ||
| 16 | - +----------------------------+--------------------------------------------------+ | ||
| 17 | - |`date.autoformatter.second` | format string for 'second' scale times | | ||
| 18 | - +----------------------------+--------------------------------------------------+ | ||
| 19 | - |`scatter.marker` | default marker for scatter plot | | ||
| 20 | - +----------------------------+--------------------------------------------------+ | ||
| 21 | - |`svg.hashsalt` | see note | | ||
| 22 | - +----------------------------+--------------------------------------------------+ | ||
| 4 | + +---------------------------------+--------------------------------------------------+ | ||
| 5 | + | Parameter | Description | | ||
| 6 | + +=================================+==================================================+ | ||
| 7 | + |`date.autoformatter.year` | foramt string for 'year' scale dates | | ||
| 8 | + +---------------------------------+--------------------------------------------------+ | ||
| 9 | + |`date.autoformatter.month` | format string for 'month' scale dates | | ||
| 10 | + +---------------------------------+--------------------------------------------------+ | ||
| 11 | + |`date.autoformatter.day` | format string for 'day' scale dates | | ||
| 12 | + +---------------------------------+--------------------------------------------------+ | ||
| 13 | + |`date.autoformatter.hour` | format string for 'hour' scale times | | ||
| 14 | + +---------------------------------+--------------------------------------------------+ | ||
| 15 | + |`date.autoformatter.minute` | format string for 'minute' scale times | | ||
| 16 | + +---------------------------------+--------------------------------------------------+ | ||
| 17 | + |`date.autoformatter.second` | format string for 'second' scale times | | ||
| 18 | + +---------------------------------+--------------------------------------------------+ | ||
| 19 | + |`date.autoformatter.microsecond` | format string for 'microsecond' scale times | | ||
| 20 | + +---------------------------------+--------------------------------------------------+ | ||
| 21 | + |`scatter.marker` | default marker for scatter plot | | ||
| 22 | + +---------------------------------+--------------------------------------------------+ | ||
| 23 | + |`svg.hashsalt` | see note | | ||
| 24 | + +---------------------------------+--------------------------------------------------+ | ||
| 23 | 25 | ||
| 24 | 26 | Added ``svg.hashsalt`` key to rcParams | |
| 25 | 27 | ``````````````````````````````````````` | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -634,7 +634,9 @@ class AutoDateFormatter(ticker.Formatter): | |||
| 634 | 634 | 1.0: rcParams['date.autoformat.day'], | |
| 635 | 635 | 1. / HOURS_PER_DAY: rcParams['date.autoformat.hour'], | |
| 636 | 636 | 1. / (MINUTES_PER_DAY): rcParams['date.autoformat.minute'], | |
| 637 | - 1. / (SEC_PER_DAY): rcParams['date.autoformat.second']} | ||
| 637 | + 1. / (SEC_PER_DAY): rcParams['date.autoformat.second'], | ||
| 638 | + 1. / (MUSECONDS_PER_DAY): rcParams['date.autoformat.microsecond'], | ||
| 639 | + } | ||
| 638 | 640 | ||
| 639 | 641 | ||
| 640 | 642 | The algorithm picks the key in the dictionary that is >= the | |
@@ -693,7 +695,9 @@ def __init__(self, locator, tz=None, defaultfmt='%Y-%m-%d'): | |||
| 693 | 695 | 1. / (MINUTES_PER_DAY): | |
| 694 | 696 | rcParams['date.autoformatter.minute'], | |
| 695 | 697 | 1. / (SEC_PER_DAY): | |
| 696 | - rcParams['date.autoformatter.second']} | ||
| 698 | + rcParams['date.autoformatter.second'], | ||
| 699 | + 1. / (MUSECONDS_PER_DAY): | ||
| 700 | + rcParams['date.autoformatter.microsecond']} | ||
| 697 | 701 | ||
| 698 | 702 | def __call__(self, x, pos=None): | |
| 699 | 703 | locator_unit_scale = float(self._locator._get_unit()) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1097,7 +1097,8 @@ def validate_hist_bins(s): | |||
| 1097 | 1097 | 'date.autoformatter.day': ['%Y-%m-%d', six.text_type], | |
| 1098 | 1098 | 'date.autoformatter.hour': ['%H:%M', six.text_type], | |
| 1099 | 1099 | 'date.autoformatter.minute': ['%H:%M:%S', six.text_type], | |
| 1100 | - 'date.autoformatter.second': ['%H:%M:%S.%f', six.text_type], | ||
| 1100 | + 'date.autoformatter.second': ['%H:%M:%S', six.text_type], | ||
| 1101 | + 'date.autoformatter.microsecond': ['%H:%M:%S.%f', six.text_type], | ||
| 1101 | 1102 | ||
| 1102 | 1103 | #legend properties | |
| 1103 | 1104 | 'legend.fancybox': [True, validate_bool], | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -355,7 +355,8 @@ backend : $TEMPLATE_BACKEND | |||
| 355 | 355 | # date.autoformatter.day : %Y-%m-%d | |
| 356 | 356 | # date.autoformatter.hour : %H:%M | |
| 357 | 357 | # date.autoformatter.minute : %H:%M:%S | |
| 358 | - # date.autoformatter.second : %H:%M:%S.%f | ||
| 358 | + # date.autoformatter.second : %H:%M:%S | ||
| 359 | + # date.autoformatter.microsecond : %H:%M:%S.%f | ||
| 359 | 360 | ||
| 360 | 361 | ### TICKS | |
| 361 | 362 | # see http://matplotlib.org/api/axis_api.html#matplotlib.axis.Tick | |
| Back | FazBrowse Home | New Git URL |
0 commit comments