@@ -640,7 +640,10 @@ def redraw_yaxis(self):
640640 # Updates the fontsize of the x-axis ticklabels of sideview.
641641 self .ax .tick_params (axis = 'x' , labelsize = axes_label_size )
642642 # Updates the fontsize of plot title and x-axis title of sideview.
643- self .ax .set_title ("vertical flight profile" , fontsize = plot_title_size , horizontalalignment = "left" , x = 0 )
643+ title = self .ax .get_title ()
644+ if title == "" :
645+ title = "vertical flight profile"
646+ self .ax .set_title (title , fontsize = plot_title_size , horizontalalignment = "left" , x = 0 )
644647 self .ax .set_xlabel ("lat/lon" , fontsize = plot_title_size )
645648
646649 for ax , typ in zip ((self .ax , self .ax2 ), (vaxis , vaxis2 )):
@@ -1121,7 +1124,10 @@ def set_settings(self, settings):
11211124 als = (self .linearview_size_settings ["axes_label_size" ] if self .settings_dict ["axes_label_size" ] == "default"
11221125 else int (self .settings_dict ["axes_label_size" ]))
11231126 self .ax .tick_params (axis = 'both' , labelsize = als )
1124- self .ax .set_title ("Linear flight profile" , fontsize = pts , horizontalalignment = 'left' , x = 0 )
1127+ title = self .ax .get_title ()
1128+ if title == "" :
1129+ title = "Linear flight profile"
1130+ self .ax .set_title (title , fontsize = pts , horizontalalignment = 'left' , x = 0 )
11251131 self .draw ()
11261132
11271133
@@ -1458,7 +1464,10 @@ def set_map_appearance(self, settings_dict):
14581464
14591465 # Updates plot title size as selected from combobox labelled plot title size.
14601466 ax .set_autoscale_on (False )
1461- ax .set_title ("Top view" , fontsize = self .tov_pts , horizontalalignment = "left" , x = 0 )
1467+ title = self .ax .get_title ()
1468+ if title == "" :
1469+ title = "Top View"
1470+ ax .set_title (title , fontsize = self .tov_pts , horizontalalignment = "left" , x = 0 )
14621471
14631472 # Updates graticule ticklabels/labels fontsize if draw_graticule is True.
14641473 if settings ["draw_graticule" ]:
0 commit comments