help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bar plot with logarithmic scale on y-axis


From: Matthias Brennwald
Subject: Bar plot with logarithmic scale on y-axis
Date: Mon, 24 Mar 2014 10:17:09 +0100

Hi All

I’d like to plot my data in a bar chart with log scale on the y-axis. Here’s 
what I tried:

> h = bar ([1:10]',rand(10,1));
> set (gca,'yscale','log’);

The first command produces the expected bar chart. The second command scales 
the y-axis as expected, but the bars in the plot get screwed up. Can someone 
please help me with this?

I am using Octave 3.6.4 installed via MacPorts on Mac OS X 10.9. The graphics 
backend is gnuplot.

Thanks
Matthias


reply via email to

[Prev in Thread] Current Thread [Next in Thread]