Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Dflt autodateformat#5698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Dflt autodateformat#5698
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,27 @@ | ||
Configuration (rcParams) | ||
------------------------ | ||
+----------------------------+--------------------------------------------------+ | ||
| Parameter | Description | | ||
+============================+==================================================+ | ||
|`date.autoformatter.year` | foramt string for 'year' scale dates | | ||
+----------------------------+--------------------------------------------------+ | ||
|`date.autoformatter.month` | format string for 'month' scale dates | | ||
+----------------------------+--------------------------------------------------+ | ||
|`date.autoformatter.day` | format string for 'day' scale dates | | ||
+----------------------------+--------------------------------------------------+ | ||
|`date.autoformatter.hour` | format string for 'hour' scale times | | ||
+----------------------------+--------------------------------------------------+ | ||
|`date.autoformatter.minute` | format string for 'minute' scale times | | ||
+----------------------------+--------------------------------------------------+ | ||
|`date.autoformatter.second` | format string for 'second' scale times | | ||
+----------------------------+--------------------------------------------------+ | ||
|`svg.hashsalt` | see note | | ||
+----------------------------+--------------------------------------------------+ | ||
``svg.hashsalt`` | ||
```````````````` | ||
If ``svg.hashsalt`` is ``None`` (which it is by default), the svg backend uses ``uuid4`` to generate the hash salt. | ||
If it is not ``None``, it must be a string that is used as the hash salt instead of ``uuid4``. | ||
This allows for deterministic SVG output. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -4,7 +4,7 @@ | ||
""" | ||
from __future__ import print_function, absolute_import | ||
from string import Template | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Weird that I've never used this, but it seems like the right tool for the job... | ||
# This needs to be the very first thing to use distribute | ||
from distribute_setup import use_setuptools | ||
use_setuptools() | ||
@@ -230,8 +230,9 @@ def run(self): | ||
default_backend = setupext.options['backend'] | ||
with open('matplotlibrc.template') as fd: | ||
template = fd.read() | ||
template = Template(template) | ||
with open('lib/matplotlib/mpl-data/matplotlibrc', 'w') as fd: | ||
fd.write(template.safe_substitute(TEMPLATE_BACKEND=default_backend)) | ||
# Build in verbose mode if requested | ||
if setupext.options['verbose']: | ||