Skip to content

Commit 587affd

Browse files
committed
Found more ‘{0}’ -> ‘{}’ instances.
1 parent 9ea38a7 commit 587affd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plotly/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def __str__(self):
6969
NON_UNIQUE_COLUMN_MESSAGE = (
7070
"Yikes, plotly grids currently "
7171
"can't have duplicate column names. Rename "
72-
"the column \"{}\" and try again."
72+
"the column \"{0}\" and try again."
7373
)
7474
## Would Cause Server Errors ##
7575

plotly/matplotlylib/mpltools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def prep_ticks(ax, index, ax_type, props):
386386
for i in range(1, len(dticks) - 1)]):
387387
dtick = tickvalues[1] - tickvalues[0]
388388
else:
389-
warnings.warn("'linear' {}-axis tick spacing not even, "
389+
warnings.warn("'linear' {0}-axis tick spacing not even, "
390390
"ignoring mpl tick formatting.".format(ax_type))
391391
raise TypeError
392392
except (IndexError, TypeError):
@@ -413,7 +413,7 @@ def prep_ticks(ax, index, ax_type, props):
413413
math.log10(props['ylim'][1])]
414414
else:
415415
axis_dict = dict(range=None, type='linear')
416-
warnings.warn("Converted non-base10 {}-axis log scale to 'linear'"
416+
warnings.warn("Converted non-base10 {0}-axis log scale to 'linear'"
417417
"".format(ax_type))
418418
else:
419419
return dict()

0 commit comments

Comments
 (0)