alandefreitas / matplotplusplus

Matplot++: A C++ Graphics Library for Data Visualization 📊🗾
https://alandefreitas.github.io/matplotplusplus/
MIT License
4.11k stars 313 forks source link

unable to set plot title #312

Open jasonbeach opened 1 year ago

jasonbeach commented 1 year ago

Bug category

Describe the bug

When setting the title of a figure I get the following output at my terminal:

gnuplot> set multiplot title "{/:Bold My experiment}" font 'Arial,56' textcolor 'black'
                                                                      ^
         line 0: only valid in the context of an auto-layout command

gnuplot> set multiplot title "{/:Bold My experiment}" font 'Arial,56' textcolor 'black'
                                                                      ^
         line 0: only valid in the context of an auto-layout command

and no title is displayed in figure. Steps to Reproduce

Happens when I build the second example code here (as well as my own code): https://alandefreitas.github.io/matplotplusplus/appearance/figure-object/

Library is pulled into my project via CMake FetchContent. Library builds fine although I tend to compile with pretty high warnings (-Wall -Wextra -pedantic -Wcast-align -Wshadow) and the -Wshadow produces a lot of warnings...separate issue.

Platform

Environment Details: