[Scilab-users] How to plot3D with log axis

Claus Futtrup cfuttrup at gmail.com
Thu Jan 21 20:23:27 CET 2016


Hi Samuel, et al.

>>a.log_flags  =  "nln";

 >>... But what should I do in a 3D plot ???
 >??? The same. each character of "nln" means "*n*ormal" or "*l*ogarithmic"

That's my big ??? as well. Why didn't it work for plot3D ???

Samuel - I'm willing to send my script to you + a handful of datafiles 
... then you can check for yourself.

Best regards,
Claus

On 20-01-2016 20:47, Samuel Gougeon wrote:
> Hello,
>
> Le 20/01/2016 20:33, Claus Futtrup a écrit :
>> Hi there
>>
>> I have a bunch of data which I'm trying to plot in a 3D plot. 
>> Background - it's impedance measurements of a loudspeaker, measured 
>> at different input voltages. I have:
>>
>> voltage = [0.1 0.4 0.7 1.0];
>> f = a vector of frequencies (from 1.4 Hz to 20000 Hz ... I have a 
>> total of 27000 data points in this vector)
>> m = a matrix of magnitude values, dimension matches frequency f and 
>> voltage.
>>
>> The frequency axis should be plotted on a logarithmic plot. Otherwise 
>> I get the strangest looking plot (basically just a dashed line with 
>> the axes - no graphs).
>>
>> I solved this by plotting:
>> plot3d(voltage,log10(f),m',alpha=35,theta=45,flag=[2,2,3]);
>> When I plot a 2D plot, I can simply write something like
>> a.log_flags  =  "nln";
>> ... But what should I do in a 3D plot ???
> ??? The same. each character of "nln" means "*n*ormal" or 
> "*l*ogarithmic", the first char for x, the second for y, the third for z.
> So, unless i did not catch what you mean, just assign to a.log_flags 
> the n|l modes that you want.
>
> HTH
> Samuel
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20160121/0aa2adf7/attachment.htm>


More information about the users mailing list