From: Tomaz on
Hi all!

I want to do some adjustments to histogram plot before saving it to disc (I want to manipulate it with help of commands and not GUI).
When I use following:
hist (column,x);
histogram is nicely displayed and I reach it with help of gcf:
saveas(gcf, sprintf ('Graph%d.jpg', i), 'jpg')

However, if I want to get its handle (to manipulate font used for title later on), the figure is basically empty.
h = hist (column,x);

What am I doing wrong? Why is there no plot when I fetch its handle?
From: Cris Luengo on
"Tomaz " <tomaz.bartolj(a)gmail.com> wrote in message <hq93v9$7mr$1(a)fred.mathworks.com>...
> Hi all!
>
> I want to do some adjustments to histogram plot before saving it to disc (I want to manipulate it with help of commands and not GUI).
> When I use following:
> hist (column,x);
> histogram is nicely displayed and I reach it with help of gcf:
> saveas(gcf, sprintf ('Graph%d.jpg', i), 'jpg')
>
> However, if I want to get its handle (to manipulate font used for title later on), the figure is basically empty.
> h = hist (column,x);
>
> What am I doing wrong? Why is there no plot when I fetch its handle?

help hist
From: ImageAnalyst on
h = hist (column,x); does not fetch its handle, it returns the
counts. Then you can plot it (h) with the bar() command, which will
give you much more control over how the chart appears.