Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/matplotlib/ticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,10 @@ class FormatStrFormatter(Formatter):

The format string should have a single variable format (%) in it.
It will be applied to the value (not the position) of the tick.

Negative numeric values will use a dash not a unicode minus,
use mathtext to get a unicode minus by wrappping the format specifier
with $ (e.g. "$%g$").
"""
def __init__(self, fmt):
self.fmt = fmt
Expand Down