histogram - Octave plot breaks when setting axis scale to log -


i trying plot histogram following script:

for = 1:100     edges(i) = * 10; end  [n] = histc(x, edges); bar(edges, n, 'histc'); 

when try set axis log scale using

set(gca, 'xscale', 'log') 

i following message

warning: opengl_renderer: data values greater float capacity.  (1) scale data, or (2) use gnuplot 

the data histogram (x vector) column mq135 of csv file: https://github.com/pedroscaff/sensor-platform-data-analysis/blob/master/data/prenzl-tempelh.csv

i couldn't find way change scale of axis log, ideas on might cause issue? message pretty clear values, not make sense me , plotting histogram using plot.ly worked out of box.

thanks!

are sure want xscale log , not yscale? uses hist yscale set log

base_url = "https://github.com/pedroscaff/sensor-platform-data-analysis/raw/master/data" fn = "prenzl-tempelh.csv"; if (! exist (fn, "file"))   urlwrite (fullfile (base_url, fn), fn); endif  # skipp headerline, extract mq135 mq135 = csvread (fn, 1, 0)(:, 2); hist (mq135, 0:20:1000); xlabel ("mq-135 gas sensor raw data?") set(gca, 'yscale', 'log') set(gca, "xtick", 0:100:1000) grid on print ("out.png"); 

gives

hist plot, yscale log


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -