Skip to content

Commit 4ed8dab

Browse files
committed
Python: remove useMathText from ScalarFormatter; not needed with correct system fonts installed
1 parent 774d968 commit 4ed8dab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Utilities/Python/fdsplotlib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ def plot_to_fig(x_data,y_data,**kwargs):
11261126
ax.xaxis.set_major_formatter(ticker.LogFormatterSciNotation(base=10))
11271127
else:
11281128
ax.xaxis.set_major_locator(ticker.MaxNLocator(nbins=detault_nticks, min_n_ticks=4))
1129-
sf = ticker.ScalarFormatter(useMathText=True)
1129+
sf = ticker.ScalarFormatter()
11301130
sf.set_powerlimits((-3, 4))
11311131
ax.xaxis.set_major_formatter(sf)
11321132

@@ -1152,7 +1152,7 @@ def plot_to_fig(x_data,y_data,**kwargs):
11521152
ax.yaxis.set_major_formatter(ticker.LogFormatterSciNotation(base=10))
11531153
else:
11541154
ax.yaxis.set_major_locator(ticker.MaxNLocator(nbins=detault_nticks, min_n_ticks=4))
1155-
sf = ticker.ScalarFormatter(useMathText=True)
1155+
sf = ticker.ScalarFormatter()
11561156
sf.set_powerlimits((-3, 4))
11571157
ax.yaxis.set_major_formatter(sf)
11581158

0 commit comments

Comments
 (0)