How to view in-built GA plotting functions side by side?
1 view (last 30 days)
Show older comments
Hi fellow Matlab-ers!
I am using the command line GA from the Global Optimization Toolbox. I am using two plotting functions, @gaplotrange, and @gaplotbestindiv. This plots one on top, and one on the bottom (like subplot(2,1,)), and I would like to set it to be side by side (like subplot(1,2,)).
I have created my own plotting functions by slightly adjusting their code, and I tried to include a subplot inside them, which resulted in only the second called plot function being displayed, though it was displayed correctly (subplot(1,2,2)).
I have also delved into the file 'gadsplot.m' which appeared to be the one responsible for setting up these plots. I tried changing the ordering of the subplots, to no avail. My last ditch attempt was to hard code the subplots as desired, but this hasn't worked either.
So, I was wondering if there is a simple way to do this, or if not, does anyone know which file and what I would have to change to get this to work?
Thanks in advance, Callum.
2 Comments
Rakesh Kumar
on 12 Feb 2015
You can change the code in gadsplot.m where rows and cols are calculated.
How about a layout (1,2) instead of (2,1)? I can interchange rows and cols in that function.
Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!