gnuplot - Data values greater than float capacity - plotting in Octave -
I have a very simple octave script and I'm just trying to plot some values but I get an error :
WARNING: gl-render: data value greater than float capability. (1) Scale data, or (2) Use Gnuplot
The script is:
a = 0.2; Z = 160; L = 8; W = 31.12; X = 0; G = 9.81; K = 0.785; Rho = 1025; T = 0:10 eta_0 = - (1 / g) * exp (0) * cos (k * x-w * t); U_x = a * w * exp (k * z) * cos (k * x-w * t); W_x = a * w * exp (k * z) * sin (k * x-w * t); P_d = -rho * a * g * exp (k * z) * cos (k * x-w * t); Endow plot (T, ata_0); Hold on the plot (t, u_x); Hold on the plot (T, W_X); Hold on plot (t, p_d);
After finding me online, I'm not getting anything useful about this error and I'm new to eighth and use of Gnuplot, so it is not certain that in fact gnuplot's How to use I am using Ubuntu 12.04. Any advice or help will really be appreciated.
Otherwise, you will get only one data point, not the curve:
T = 0:10 eta_0 (t) = - (1 / g) * exp (0) * * Xw * t for cos (k); U_x (t) = a * w * exp (k * z) * cos (k * x-w * t); W_x (t) = a * w * exp (k * z) * sin (k * x-w * t); P_d (t) = -rho * a * g * exp (k * z) * cos (k * x-w * t);
Or better (to use vector operations, for loop without):
t = 0:10; Eta_0 = - (1 / g) * APP (0) * cos (k * x-w * t); U_x = a * w * exp (k * z) * cos (k * x-w * t); W_x = a * w * exp (k * z) * sin (k * x-w * t); P_d = -rho * a * g * exp (k * z) * cos (k * x-w * t);
The conspiracies you are trying to plot are very large (~ 7e57), which is probably the source of error using the gnuplot
graphics toolkit Try adding graphics_toolkit ('gnuplot')
at the beginning of your code and see if it works better or not. I tried to do it in Oct. 3.8 and it works fine, giving me the following plot:
Comments
Post a Comment