Skip to content

Commit 953bb01

Browse files
authored
Merge pull request #14867 from rmcdermo/master
Python: better horizontal alignment for revision string on plots in f…
2 parents cd5c2a2 + 89b1ec5 commit 953bb01

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
@@ -511,7 +511,7 @@ def get_version_string(filename):
511511
file1.close()
512512
return version_str
513513

514-
def add_version_string(ax, version_str, plot_type='linear', scale_x=0.60, scale_y=1.02,
514+
def add_version_string(ax, version_str, plot_type='linear', scale_x=1.00, scale_y=1.02,
515515
font_name='Times', font_size=10):
516516
"""
517517
Adds a version string to a matplotlib plot.
@@ -553,7 +553,7 @@ def add_version_string(ax, version_str, plot_type='linear', scale_x=0.60, scale_
553553
x_pos = x_lim[0] + scale_x * (x_lim[1] - x_lim[0])
554554
y_pos = y_lim[0] + scale_y * (y_lim[1] - y_lim[0])
555555

556-
ax.text(x_pos, y_pos, version_str, fontsize=font_size, fontname=font_name, verticalalignment='bottom')
556+
ax.text(x_pos, y_pos, version_str, fontsize=font_size, fontname=font_name, verticalalignment='bottom', horizontalalignment='right')
557557

558558

559559

0 commit comments

Comments
 (0)