mpl.pyplot.FuncFormatter¶
-
class
mpl.pyplot.FuncFormatter(func)[source]¶ User defined function for formatting
The function should take in two inputs (tick value x and position pos) and return a string
Methods¶
__init__(func) |
|
create_dummy_axis(**kwargs) |
|
fix_minus(s) |
Some classes may want to replace a hyphen for minus with the proper unicode symbol (U+2212) for typographical correctness. |
format_data(value) |
|
format_data_short(value) |
return a short string version |
get_offset() |
|
set_axis(axis) |
|
set_bounds(vmin, vmax) |
|
set_data_interval(vmin, vmax) |
|
set_locs(locs) |
|
set_view_interval(vmin, vmax) |