Prev: Simulation Time
Next: Creating a matrix of strings?
From: Tomaz on 16 Apr 2010 03:35 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 16 Apr 2010 04:52 "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 16 Apr 2010 06:49 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.
|
Pages: 1 Prev: Simulation Time Next: Creating a matrix of strings? |