flexible plot titles

Hey all,

I am new in using GAUSS.

I need to develop a loop that creates a histogram from existing data and the title of the respective histogram has to flexible. So my code was as follows:

for i(1,5,1);

    varnames = {"a", "b", "c", "d", "e"};

    //declare plot structure
    struct plotControl myplot;

    //Initialize plot structure
    myplot = plotGetDefaults("bar");

    //Change existing titles to personalized ones
    plotSetTitle(&myplot, varnames[1,i]);

    plotHistp(myplot, data[.,i], 10);

endfor;

The problem is that the plotSetTitle function apparently does not accept non-string values for the title. Do you have any recommendation about how I could possibly change this?

 

Many thanks!


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.

Try GAUSS for 30 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy