Graph title longer than one line

Good afternoon.

How can I split a graph title into 2 rows when the title is too long?

Additionally, if I am putting together some graphs into a plotLayout, how can add a common tittle to all the graphs?

 

 

1 Answer



0



You can use html to add a "newline" (or line break) to your title using plotSetTitle. For example:

struct plotControl myPlot;
myPlot = plotGetDefaults("xy");
plotSetTitle(&myPlot, "This is the first line<br/>Now we are on the second");
x = { 1, 2, 3 };
plotXY(myPlot, x, x);

You can use plotAddTextBox to add a common title to a set of tiled graphs.

aptech

1,773

Your Answer

1 Answer

0

You can use html to add a "newline" (or line break) to your title using plotSetTitle. For example:

struct plotControl myPlot;
myPlot = plotGetDefaults("xy");
plotSetTitle(&myPlot, "This is the first line<br/>Now we are on the second");
x = { 1, 2, 3 };
plotXY(myPlot, x, x);

You can use plotAddTextBox to add a common title to a set of tiled graphs.


You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.