File tree 3 files changed +4
-4
lines changed 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2385,7 +2385,7 @@ def _setup_new_guiapp():
2385
2385
"matplotlib" )
2386
2386
2387
2387
2388
- def format_approx (number , precision ):
2388
+ def _format_approx (number , precision ):
2389
2389
"""
2390
2390
Format the number with at most the number of decimals given as precision.
2391
2391
Remove trailing zeros and possibly the decimal point.
Original file line number Diff line number Diff line change @@ -744,7 +744,7 @@ def verify_pre_post_state(obj):
744
744
745
745
746
746
def test_format_approx ():
747
- f = cbook .format_approx
747
+ f = cbook ._format_approx
748
748
assert f (0 , 1 ) == '0'
749
749
assert f (0 , 2 ) == '0'
750
750
assert f (0 , 3 ) == '0'
Original file line number Diff line number Diff line change 29
29
30
30
import numpy as np
31
31
32
- from matplotlib .cbook import format_approx
32
+ from matplotlib .cbook import _format_approx
33
33
34
34
35
35
# token types
@@ -271,7 +271,7 @@ def fontmatrix(array):
271
271
array [::2 ] = newmatrix [0 :3 , 0 ]
272
272
array [1 ::2 ] = newmatrix [0 :3 , 1 ]
273
273
return (
274
- '[%s]' % ' ' .join (format_approx (x , 6 ) for x in array )
274
+ '[%s]' % ' ' .join (_format_approx (x , 6 ) for x in array )
275
275
).encode ('ascii' )
276
276
277
277
def replace (fun ):
You can’t perform that action at this time.
0 commit comments