Skip to content

Commit c383b5a

Browse files
wjdragonalandefreitas
authored andcommitted
Fix "set title" command string when saving image
- force appending of escaped double quote after font weight detection
1 parent 3fd7593 commit c383b5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/matplot/core/axes_type.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ namespace matplot {
7070
if (title_enhanced_ && iequals(title_font_weight_, "italic")) {
7171
cmd += "}";
7272
}
73+
cmd += "\"";
7374
if (parent_->backend_->supports_fonts()) {
74-
cmd += "\" font \"" + escape(font()) + "," +
75+
cmd += " font \"" + escape(font()) + "," +
7576
std::to_string(unsigned(font_size() *
7677
title_font_size_multiplier_)) +
7778
"\"";

0 commit comments

Comments
 (0)